Text Generation
Transformers
Safetensors
Uzbek
English
qwen3_5_text
qwen3.5
uzbek
conversational
translation
text-generation-inference
Instructions to use NeuronUz/NeuronAI-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeuronUz/NeuronAI-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NeuronUz/NeuronAI-2B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeuronUz/NeuronAI-2B") model = AutoModelForCausalLM.from_pretrained("NeuronUz/NeuronAI-2B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NeuronUz/NeuronAI-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeuronUz/NeuronAI-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeuronUz/NeuronAI-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NeuronUz/NeuronAI-2B
- SGLang
How to use NeuronUz/NeuronAI-2B 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 "NeuronUz/NeuronAI-2B" \ --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": "NeuronUz/NeuronAI-2B", "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 "NeuronUz/NeuronAI-2B" \ --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": "NeuronUz/NeuronAI-2B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use NeuronUz/NeuronAI-2B with Docker Model Runner:
docker model run hf.co/NeuronUz/NeuronAI-2B
Make training section concise
Browse files
README.md
CHANGED
|
@@ -133,29 +133,11 @@ on FLORES+ en->uz (0.8762 against alloma-3B's 0.8673) and on TUMLU-Uzbek, which
|
|
| 133 |
the weakest task for every model tested, ours included -- at 0.3257 it is close
|
| 134 |
enough to the 0.25 four-way chance level to treat as unsolved at this scale.
|
| 135 |
|
| 136 |
-
## Training
|
| 137 |
-
|
| 138 |
-
-
|
| 139 |
-
-
|
| 140 |
-
|
| 141 |
-
- LoRA targets: all linear layers
|
| 142 |
-
- Trainable adapter parameters: 67,276,800
|
| 143 |
-
- Training data: 152,152 grouped and globally deduplicated examples
|
| 144 |
-
- Validation data: 1,537 grouped examples
|
| 145 |
-
- Train/dev prompt-group overlap: 0
|
| 146 |
-
- Sequence length: 2,048
|
| 147 |
-
- Packing: disabled
|
| 148 |
-
- Epochs: 1
|
| 149 |
-
- Effective batch size: 32
|
| 150 |
-
- Learning rate: 1e-4, cosine schedule, 3% warmup
|
| 151 |
-
- Optimizer: AdamW, beta2 0.95, weight decay 0.01
|
| 152 |
-
- Precision: bf16 with selected recurrent parameters retained in fp32
|
| 153 |
-
- Loss: assistant turns only; `<|im_end|>` explicitly supervised
|
| 154 |
-
|
| 155 |
-
The training mixture is Uzbek-first and includes clean general assistant data,
|
| 156 |
-
translation, Uzbek language and literature, spelling and orthography, MMLU-style
|
| 157 |
-
tasks, classification, math, and English-retention examples. Training data is
|
| 158 |
-
not distributed in this model repository.
|
| 159 |
|
| 160 |
## Usage
|
| 161 |
|
|
|
|
| 133 |
the weakest task for every model tested, ours included -- at 0.3257 it is close
|
| 134 |
enough to the 0.25 four-way chance level to treat as unsolved at this scale.
|
| 135 |
|
| 136 |
+
## Training
|
| 137 |
+
|
| 138 |
+
One epoch of assistant-only LoRA fine-tuning (rank 64, alpha 128) on 152,152
|
| 139 |
+
Uzbek-first examples, using a 2,048-token context and effective batch size 32.
|
| 140 |
+
The adapter was merged into the Uzbek CPT + anneal checkpoint for release.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
## Usage
|
| 143 |
|