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
Card: compare against alloma-1B/3B on alloma's published protocol
Browse files
README.md
CHANGED
|
@@ -36,9 +36,37 @@ usage example below is correspondingly plain.
|
|
| 36 |
|
| 37 |
## Benchmarks
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
| Benchmark | Metric | **This model** | Previous release (LoRA broad) | Qwen3.5-2B-Instruct (stock) |
|
| 44 |
| --- | --- | ---: | ---: | ---: |
|
|
@@ -58,11 +86,20 @@ The weighted score combines all eight tasks (UzLiB 0.20, TUMLU 0.20, en→uz 0.1
|
|
| 58 |
news 0.10, MMLU-en 0.10, MMLU-uz 0.10, uz→en 0.05, sentiment 0.05), with BLEU
|
| 59 |
scaled to a 0–1 range.
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
Notes on reading these numbers honestly:
|
| 62 |
|
| 63 |
-
- **Translation is where the gain is largest** (en→uz
|
| 64 |
-
5.93 → 23.07). Much of that is the terminator fix: the
|
| 65 |
-
past the end of its answer, which BLEU punishes
|
|
|
|
| 66 |
- **TUMLU-Uzbek regressed** (0.3686 → 0.3214) and is this model's weakest task.
|
| 67 |
It is also near the 0.25 random baseline for 4-choice questions, so treat
|
| 68 |
Uzbek multi-subject knowledge as unreliable.
|
|
|
|
| 36 |
|
| 37 |
## Benchmarks
|
| 38 |
|
| 39 |
+
### Comparison with alloma-1B and alloma-3B
|
| 40 |
+
|
| 41 |
+
Run with the benchmark protocol published in the **alloma model card** — its
|
| 42 |
+
tasks, datasets and prompts, used verbatim — so the comparison does not depend
|
| 43 |
+
on prompt formats chosen by us. alloma's required APST apostrophe preprocessing
|
| 44 |
+
is applied to the alloma models. Full test splits, greedy decoding. COMET is
|
| 45 |
+
`Unbabel/wmt22-comet-da`. Higher is better throughout.
|
| 46 |
+
|
| 47 |
+
| Benchmark | **This model** (1.88B) | alloma-1B (1.24B) | alloma-3B (3.21B) |
|
| 48 |
+
| --- | ---: | ---: | ---: |
|
| 49 |
+
| Uzbek sentiment analysis | **93.09** | 58.05 | 81.53 |
|
| 50 |
+
| Uzbek news classification | **56.47** | 15.85 | 33.78 |
|
| 51 |
+
| MMLU (English) | **52.81** | 28.61 | 45.34 |
|
| 52 |
+
| BLEU uz→en | 21.04 | 16.10 | **24.62** |
|
| 53 |
+
| COMET uz→en | 81.06 | 80.08 | **85.14** |
|
| 54 |
+
| BLEU en→uz | 9.85 | 8.70 | **14.54** |
|
| 55 |
+
| COMET en→uz | 83.82 | 81.20 | **86.80** |
|
| 56 |
+
|
| 57 |
+
Read this honestly, in both directions:
|
| 58 |
+
|
| 59 |
+
- This model beats **alloma-1B on every metric**, and beats the ~1.7x larger
|
| 60 |
+
**alloma-3B on classification and English knowledge** by wide margins
|
| 61 |
+
(sentiment +11.6, news +22.7, MMLU +7.5).
|
| 62 |
+
- **alloma-3B is clearly better at translation**, in both directions and on both
|
| 63 |
+
BLEU and COMET. If translation quality is your priority, alloma-3B is the
|
| 64 |
+
stronger choice, and alloma-8B stronger still.
|
| 65 |
+
|
| 66 |
+
### Full public suite
|
| 67 |
+
|
| 68 |
+
Our own eight-task Uzbek suite, vLLM backend, full test splits, greedy decoding.
|
| 69 |
+
Shown against this model's predecessor and the stock instruct model.
|
| 70 |
|
| 71 |
| Benchmark | Metric | **This model** | Previous release (LoRA broad) | Qwen3.5-2B-Instruct (stock) |
|
| 72 |
| --- | --- | ---: | ---: | ---: |
|
|
|
|
| 86 |
news 0.10, MMLU-en 0.10, MMLU-uz 0.10, uz→en 0.05, sentiment 0.05), with BLEU
|
| 87 |
scaled to a 0–1 range.
|
| 88 |
|
| 89 |
+
The alloma models are deliberately **not** listed in this second table. They were
|
| 90 |
+
measured on it (alloma-1B 0.2242, alloma-3B 0.2666), but those runs fail the
|
| 91 |
+
suite's own output-validity gate: alloma-3B produced unparseable answers on 44.1%
|
| 92 |
+
of sentiment items and 28.7% of TUMLU items under our prompt formats, versus
|
| 93 |
+
0.0% invalid for this model. Those scores measure compliance with our prompt
|
| 94 |
+
templates, not model capability, so quoting them as a head-to-head result would
|
| 95 |
+
overstate this model. The alloma-protocol table above is the fair comparison.
|
| 96 |
+
|
| 97 |
Notes on reading these numbers honestly:
|
| 98 |
|
| 99 |
+
- **Translation is where the gain over the previous release is largest** (en→uz
|
| 100 |
+
BLEU 4.05 → 9.90, uz→en 5.93 → 23.07). Much of that is the terminator fix: the
|
| 101 |
+
previous checkpoint ran past the end of its answer, which BLEU punishes
|
| 102 |
+
severely.
|
| 103 |
- **TUMLU-Uzbek regressed** (0.3686 → 0.3214) and is this model's weakest task.
|
| 104 |
It is also near the 0.25 random baseline for 4-choice questions, so treat
|
| 105 |
Uzbek multi-subject knowledge as unreliable.
|