Text Generation
Transformers
Safetensors
Turkish
llama
instruct
chat
conversational
fine-tuned
slm
tr-llm
Ahiska
text-generation-inference
Instructions to use AhiskaAI/AhiskaAI-308m-Instruct-v0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AhiskaAI/AhiskaAI-308m-Instruct-v0.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AhiskaAI/AhiskaAI-308m-Instruct-v0.2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AhiskaAI/AhiskaAI-308m-Instruct-v0.2") model = AutoModelForCausalLM.from_pretrained("AhiskaAI/AhiskaAI-308m-Instruct-v0.2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AhiskaAI/AhiskaAI-308m-Instruct-v0.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AhiskaAI/AhiskaAI-308m-Instruct-v0.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AhiskaAI/AhiskaAI-308m-Instruct-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AhiskaAI/AhiskaAI-308m-Instruct-v0.2
- SGLang
How to use AhiskaAI/AhiskaAI-308m-Instruct-v0.2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AhiskaAI/AhiskaAI-308m-Instruct-v0.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AhiskaAI/AhiskaAI-308m-Instruct-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AhiskaAI/AhiskaAI-308m-Instruct-v0.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AhiskaAI/AhiskaAI-308m-Instruct-v0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AhiskaAI/AhiskaAI-308m-Instruct-v0.2 with Docker Model Runner:
docker model run hf.co/AhiskaAI/AhiskaAI-308m-Instruct-v0.2
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,19 +4,18 @@ language:
|
|
| 4 |
- tr
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
- slm
|
| 8 |
-
-
|
| 9 |
-
- causal-lm
|
| 10 |
-
- pre-trained
|
| 11 |
- tr-llm
|
| 12 |
-
-
|
| 13 |
-
- AhiskaTurks
|
| 14 |
-
- MeskhetianTurks
|
| 15 |
-
- AhıskaTürkleri
|
| 16 |
library_name: transformers
|
| 17 |
-
|
| 18 |
---
|
| 19 |
|
|
|
|
| 20 |
# AhiskaAI-308m-IT-v0.2
|
| 21 |
|
| 22 |
AhiskaAI-308m-IT-v0.2 is the instruction-tuned version of our 308M parameter Small Language Model. Fine-tuned on 16,000+ curated Turkish instruction-response pairs, it is designed to provide stronger conversational ability and improved instruction following while remaining efficient enough to run on consumer hardware.
|
|
|
|
| 4 |
- tr
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
tags:
|
| 7 |
+
- instruct
|
| 8 |
+
- chat
|
| 9 |
+
- conversational
|
| 10 |
+
- fine-tuned
|
| 11 |
- slm
|
| 12 |
+
- llama
|
|
|
|
|
|
|
| 13 |
- tr-llm
|
| 14 |
+
- Ahiska
|
|
|
|
|
|
|
|
|
|
| 15 |
library_name: transformers
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
+
|
| 19 |
# AhiskaAI-308m-IT-v0.2
|
| 20 |
|
| 21 |
AhiskaAI-308m-IT-v0.2 is the instruction-tuned version of our 308M parameter Small Language Model. Fine-tuned on 16,000+ curated Turkish instruction-response pairs, it is designed to provide stronger conversational ability and improved instruction following while remaining efficient enough to run on consumer hardware.
|