Run this model with HF Jobs

Run serda-dev/Jamba2-3B-Turkish on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/serda-dev/Jamba2-3B-Turkish. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/serda-dev/Jamba2-3B-Turkish on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/serda-dev/Jamba2-3B-Turkish. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/serda-dev/Jamba2-3B-Turkish. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
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 "serda-dev/Jamba2-3B-Turkish" \
    --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": "serda-dev/Jamba2-3B-Turkish",
		"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 "serda-dev/Jamba2-3B-Turkish" \
        --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": "serda-dev/Jamba2-3B-Turkish",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

Jamba2-3B-Turkish

Jamba2-3B-Turkish is a Turkish adaptation of AI21 Jamba2-3B. It was trained in two stages: continued pretraining (CPT) on 1 billion tokens, followed by full-parameter supervised fine-tuning (SFT).

This project follows my earlier work on Turkish Mamba models, including Mamba 370M Turkish. Here, the focus is on a hybrid Mamba/attention architecture rather than a purely Mamba-based model.

The repository contains the full BF16 weights of the final SFT checkpoint used in the October 14, 2026 evaluations, not an adapter. The previous release is available under the pre-sft-20261014 tag.

Summary

  • Status: research prototype. It is not an across-the-board improvement over the original Jamba2-3B.
  • CPT alone degraded benchmark scores (for example Belebele 49.0% → 28.8%); SFT recovered them.
  • Compared with the original Jamba2-3B, MMLU, Belebele and short-prompt math scores are slightly higher, while strict instruction following (46.7% → 31.7%) and 8-shot math (20.0% → 12.5%) are lower. The 95% intervals overlap for all five comparisons, so none is conclusive on its own; the two decreases are the larger gaps.
  • Speed at short context is comparable to similarly sized Transformer models. Long-context speed and quality were not evaluated.
  • Not yet evaluated: an SFT-only ablation without CPT, held-out Turkish perplexity, and long-context behavior (see Open questions). Because of the first two, these results do not show that CPT improved the model.
  • Intended use: Turkish assistant prototypes, research and further training. Not for production use.

Model and training

Property Value
Architecture JambaForCausalLM (hybrid Mamba/attention)
Parameters 3,039,823,232 (~3.04B)
Weights BF16, two safetensors shards, unquantized
Vocabulary 69,632; original ChatML template retained
CPT 1B tokens, 80% Turkish / 20% English
SFT data 63,083 training and 680 validation conversations
SFT schedule 2 epochs, 3,944 optimizer steps
Exported checkpoint checkpoint-3900, selected by validation loss
SFT method Full-parameter training, assistant-only loss, AdamW with 8-bit optimizer states
Learning rate / global batch size 1e-5 / 32 (microbatch 4 × accumulation 8)
SFT sequence length 2,048 tokens; longer conversations excluded
SFT hardware Single A100 SXM 80GB
End-of-turn token `<

The upstream AI21 model was already post-trained; this is not pretraining from scratch. The 8-bit optimizer states do not mean the model weights are quantized.

SFT datasets: Turkce-Atlas-Instruct (MIT), turkish_instructions (Apache-2.0), aya_dataset (Turkish subset, Apache-2.0), turkish-knowledge-sft (Apache-2.0), ultrachat_200k (English/multi-turn, MIT), and project-generated examples with verifiable formatting. Source counts, pinned revisions and preprocessing hashes are recorded in training/manifest.json. Synthetic responses are not guaranteed to be factually correct.

Turkish benchmarks

Results from October 14, 2026, using the same evaluation protocol for all five checkpoints. Rows are ordered as original → CPT → SFT, followed by two reference models.

Model MMLU Belebele Math (short prompt) Math (8-shot) Instruction following (strict)
Original Jamba2 (3B) 22.8% (205/900) 49.0% (441/900) 19.0% (38/200) 20.0% (40/200) 46.7% (56/120)
Jamba Turkish CPT (3B) 19.8% (178/900) 28.8% (259/900) 9.5% (19/200) 3.0% (6/200) 13.3% (16/120)
Jamba Turkish SFT (3B) (this model) 25.9% (233/900) 49.9% (449/900) 22.5% (45/200) 12.5% (25/200) 31.7% (38/120)
Qwen2.5 Instruct (3B) 40.8% (367/900) 67.0% (603/900) 7.5% (15/200) 42.0% (84/200) 41.7% (50/120)
Qwen3 Instruct 2507 (4B) 54.7% (492/900) 78.0% (702/900) 69.0% (138/200) 70.0% (140/200) 75.8% (91/120)

How to read these numbers:

  • Scores dropped after CPT and recovered after SFT. The data here show that SFT repaired the regression introduced by CPT; they do not show that CPT improved the model.
  • Compared with the original Jamba2, the SFT model's MMLU, Belebele and short-prompt math scores are numerically higher, but the Wilson intervals overlap and these differences should not be read as an improvement. Strict instruction following (46.7% → 31.7%) and 8-shot mathematics (20.0% → 12.5%) are lower. Their intervals (24.0–40.4% vs 38.0–55.6%, and 8.6–17.8% vs 15.0–26.1%) overlap only slightly, but a paired test is needed before calling either decrease significant.
  • All three Jamba models score close to chance level on TurkishMMLU, so this benchmark separates them poorly.
  • Qwen3 has approximately 32% more parameters (4.02B), while Qwen2.5 is comparable in size. No aggregate score is calculated across tasks.

Turkish benchmark and inference speed comparison

Evaluation protocol

  • MMLU: AYueksel/TurkishMMLU, available 900-question test subset, zero-shot option-letter logits. Not the full or 5-shot leaderboard protocol.
  • Belebele: facebook/belebele, all 900 questions from tur_Latn/test.
  • Math: malhajar/gsm8k-tr, the same 200 questions sampled with seed 20261014. Short prompts and Turkish translations of eight fixed GSM8K-CoT examples are reported separately. Results are sensitive to prompting; Qwen2.5 usually generated a single line with the short prompt.
  • IFEval: 120 deterministic, Turkish-compatible examples from bezir/IFEval_tr. Strict scoring requires every constraint to be satisfied. This is neither the full benchmark nor a factual accuracy test.
  • Greedy BF16 generation; output limits of 512 and 1,024 tokens for short-prompt and 8-shot math, and 2,048 for IFEval. The SFT model reached these limits in 15/200, 58/200 and 33/120 cases, respectively. Truncated outputs are scored as produced, so the 8-shot math result in particular may be depressed by truncation or repetition.
  • The original and CPT checkpoints had a mismatch between the chat EOS (519) and the previous generation EOS (2). This was corrected and all their generation evaluations were rerun. The final SFT checkpoint already uses EOS 519.
  • No exact matches were found between SFT data and the 2,120 original test prompts. Semantic overlap, paraphrases and contamination during pretraining cannot be ruled out.
  • Wilson 95% confidence intervals are available in JSON and CSV. All models were evaluated on the same questions, but the intervals are computed per model; no paired significance test has been run. Small score differences should not be treated as conclusive.

Inference speed

RTX 4090, BF16, Transformers SDPA, working Mamba CUDA kernels and cached decoding. Input length: 512 tokens; fixed output length: 128 tokens; batch size: 1. Median of three runs, excluding warm-up.

Model Parameters (B) Decode tok/s End-to-end tok/s TTFT (ms) VRAM (GiB) Batch 4 aggregate tok/s
Original Jamba2 (3B) 3.03 48.8 48.6 30.5 5.71 189.7
Jamba Turkish CPT (3B) 3.04 48.6 48.4 30.3 5.73 189.3
Jamba Turkish SFT (3B) (this model) 3.04 48.6 48.4 30.6 5.73 190.1
Qwen2.5 Instruct (3B) 3.09 51.0 50.8 30.2 5.81 199.2
Qwen3 Instruct 2507 (4B) 4.02 42.7 42.5 35.0 7.61 166.8

At this short context length the hybrid architecture shows no speed advantage over a similarly sized Transformer. Differences between the three Jamba rows are expected, since they share the same architecture. Any advantage of the hybrid design at long context was not measured here.

These measurements exclude network, download, compilation and tokenization time. They do not represent the maximum throughput of vLLM or other optimized inference servers. Tokenizer differences also mean that tokens per second are not directly equivalent to text throughput. Long-context quality was not evaluated.

Open questions and planned evaluations

The following have not been done yet, and no results for them are reported here:

  • SFT without CPT. Applying the same SFT recipe and data directly to the original Jamba2-3B, to isolate what CPT contributes.
  • Held-out Turkish perplexity for the original, CPT and SFT checkpoints, as a direct measure of what CPT was meant to improve. Chat-format benchmarks are an indirect proxy.
  • Long-context behavior: decode speed and memory as context length grows, and quality on long inputs, where the hybrid architecture is expected to matter most.
  • Paired significance tests (for example McNemar or bootstrap) for comparisons on the shared question sets.

Usage

Tested with PyTorch 2.5.1+cu121, Transformers 4.56.1, mamba-ssm 2.2.4 and causal-conv1d 1.5.0.post8. The CUDA kernels used in the speed tests require extensions compiled for the installed PyTorch/CUDA environment. The model uses the standard Transformers Jamba implementation; trust_remote_code=True is not required.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "serda-dev/Jamba2-3B-Turkish"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    attn_implementation="sdpa",
).eval()

messages = [
    {"role": "system", "content": "Sen Türkçe yanıt veren yardımcı bir asistansın."},
    {"role": "user", "content": "Fotosentezi kısaca açıkla."},
]
inputs = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)
with torch.inference_mode():
    outputs = model.generate(
        **inputs,
        max_new_tokens=256,
        do_sample=False,
        use_cache=True,
        eos_token_id=tokenizer.eos_token_id,
        pad_token_id=tokenizer.pad_token_id,
    )
print(tokenizer.decode(
    outputs[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True
))

Checkpoints and reproducibility

  • Upstream: ai21labs/AI21-Jamba2-3B, revision 525c6c8e1d9f5bddedfbdc1dbb0ade2df84230c9.
  • CPT: serda-dev/Jamba2-3B-Turkish-CPT-1B-20261007, revision 8b1a9c812791fa7930e64b9444b41519c023269e, checkpoints/final.
  • SFT source: serda-dev/Jamba2-3B-Turkish-SFT-20261013, revision 0b22f86c21610f620826067f573aa5ef2821e9cf, checkpoints/final. The private training backups require access; this public repository provides the same final weights.
  • The weights were copied to the repository root without modification. Source hashes are in training/checkpoint_hashes.json.
  • Evaluation manifest · Full benchmark report (Turkish) · SFT and evaluation code · CPT code

Limitations

The model can be used for Turkish assistant prototypes and further training. It may generate incorrect or fabricated information. The reported benchmarks are not a substitute for production reliability or safety evaluations. Long-context performance, tool use and coding ability were not evaluated in this comparison. Strict instruction following is lower than in the original Jamba2-3B.

License

The weights are released under Apache-2.0, following the upstream model. Some SFT sources contain model-generated text (for example UltraChat), so anyone building on this model should review the dataset licenses and any terms attached to the models that generated that data. Dataset license information is recorded in the training manifest.

Downloads last month
70
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for serda-dev/Jamba2-3B-Turkish

Finetuned
(2)
this model
Finetunes
1 model
Quantizations
1 model

Datasets used to train serda-dev/Jamba2-3B-Turkish