Text Generation
Transformers
Safetensors
Tatar
llama
tatar
turkic
qypchaq
from-scratch
literary
base-model
text-generation-inference
Instructions to use yasalma/TATlit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yasalma/TATlit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yasalma/TATlit")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yasalma/TATlit") model = AutoModelForCausalLM.from_pretrained("yasalma/TATlit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yasalma/TATlit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yasalma/TATlit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasalma/TATlit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yasalma/TATlit
- SGLang
How to use yasalma/TATlit 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 "yasalma/TATlit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasalma/TATlit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "yasalma/TATlit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yasalma/TATlit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yasalma/TATlit with Docker Model Runner:
docker model run hf.co/yasalma/TATlit
Add benchmark tables (external BPB, held-out BPB, TatBLiMP)
#1
by ilchats - opened
README.md
CHANGED
|
@@ -38,9 +38,49 @@ The tokenizer is SentencePiece-based; pass `use_fast=False` so tokenization matc
|
|
| 38 |
Two stages. Stage 1 pretrains on a Cyrillic-Qypchaq pool (Tatar 43 / Kazakh 30 / Kyrgyz 16 / Bashkir 10 / smaller siblings ~1 percent) under target-capped sampling. Stage 2 specializes on pure, register-weighted literary Tatar with an anti-memorization regime that keeps verbatim reproduction low.
|
| 39 |
|
| 40 |
## Results
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
## Limitations
|
| 46 |
Base model, no instruction following, no encyclopedic knowledge. Softest axis is the person/possessive system inside izafet.
|
|
|
|
| 38 |
Two stages. Stage 1 pretrains on a Cyrillic-Qypchaq pool (Tatar 43 / Kazakh 30 / Kyrgyz 16 / Bashkir 10 / smaller siblings ~1 percent) under target-capped sampling. Stage 2 specializes on pure, register-weighted literary Tatar with an anti-memorization regime that keeps verbatim reproduction low.
|
| 39 |
|
| 40 |
## Results
|
| 41 |
+
|
| 42 |
+
TATlit is compared against three Tatar-specialized baselines (Goldfish-tat 125M, Tweety-7B-tatar, mGPT-1.3B-tatar) and four frontier models from 31B to 120B (Gemma-4-31B, Llama-4-Scout, Qwen3-32B, gpt-oss-120b), each measured with the same harness per benchmark.
|
| 43 |
+
|
| 44 |
+
**Byte-per-byte on external public sets** (FLORES, BOUQuET, UD), lower is better.
|
| 45 |
+
|
| 46 |
+
| Model | Params | FLORES | BOUQuET | UD |
|
| 47 |
+
|---|---|---|---|---|
|
| 48 |
+
| **TATlit** | **478M** | **.740** | **.777** | **.502** |
|
| 49 |
+
| Tweety-7B | 7B | .757 | .800 | .544 |
|
| 50 |
+
| Gemma-4-31B | 31B | .772 | .939 | .691 |
|
| 51 |
+
| Goldfish-tat | 125M | .778 | .801 | **.502** |
|
| 52 |
+
| mGPT-1.3B | 1.3B | .950 | 1.186 | .880 |
|
| 53 |
+
| gpt-oss-120b | 120B | 1.092 | 1.164 | 1.099 |
|
| 54 |
+
| Qwen3-32B | 32B | 1.144 | 1.423 | 1.159 |
|
| 55 |
+
| Llama-4-Scout | 109B | 1.222 | 1.498 | 1.080 |
|
| 56 |
+
|
| 57 |
+
**Byte-per-byte on in-house held-out sets** (literary, periodical), lower is better.
|
| 58 |
+
|
| 59 |
+
| Model | Params | Held-out lit | Held-out per |
|
| 60 |
+
|---|---|---|---|
|
| 61 |
+
| **TATlit** | **478M** | **.732** | **.701** |
|
| 62 |
+
| Gemma-4-31B | 31B | .790 | .705 |
|
| 63 |
+
| Tweety-7B | 7B | .810 | .778 |
|
| 64 |
+
| Goldfish-tat | 125M | .929 | .874 |
|
| 65 |
+
| Llama-4-Scout | 109B | 1.084 | .995 |
|
| 66 |
+
| Qwen3-32B | 32B | 1.105 | .979 |
|
| 67 |
+
| mGPT-1.3B | 1.3B | 1.199 | 1.094 |
|
| 68 |
+
| gpt-oss-120b | 120B | 2.181 | 1.857 |
|
| 69 |
+
|
| 70 |
+
**TatBLiMP, morphological acceptability**, higher is better.
|
| 71 |
+
|
| 72 |
+
| Model | Params | acc | acc_norm |
|
| 73 |
+
|---|---|---|---|
|
| 74 |
+
| **TATlit** | **478M** | **.975** | **.958** |
|
| 75 |
+
| Goldfish-tat | 125M | .974 | **.958** |
|
| 76 |
+
| Tweety-7B | 7B | .956 | .915 |
|
| 77 |
+
| Gemma-4-31B | 31B | .924 | .839 |
|
| 78 |
+
| Llama-4-Scout | 109B | .889 | .806 |
|
| 79 |
+
| Qwen3-32B | 32B | .811 | .708 |
|
| 80 |
+
| gpt-oss-120b | 120B | .803 | .677 |
|
| 81 |
+
| mGPT-1.3B | 1.3B | .736 | .639 |
|
| 82 |
+
|
| 83 |
+
On the school-knowledge benchmark TUMLU-mini the model sits near chance (0.297 against a 0.25 random baseline), which is expected for a base model with no encyclopedic training.
|
| 84 |
|
| 85 |
## Limitations
|
| 86 |
Base model, no instruction following, no encyclopedic knowledge. Softest axis is the person/possessive system inside izafet.
|