qwen35-4b-fineweb2-cmn
A 4B-parameter base language model with the Qwen3.5-4B text architecture, trained from scratch (random
initialization) on Mandarin Chinese web text from FineWeb-2
(cmn_Hani). It is not a fine-tune of Qwen3.5 and is unrelated to Qwen's own weights; only the architecture
and the tokenizer are reused.
This is a raw pretrained base model: no instruction tuning, no safety tuning, no data filtering beyond FineWeb-2's own. It continues text in the style of the Chinese web, including its spam, ads and boilerplate.
Training
| Architecture | Qwen3.5-4B text model: 32 layers (3 Gated DeltaNet : 1 gated attention), hidden 2560, FFN 9216, tied embeddings, 1 MTP layer (not used by transformers generation) |
| Tokenizer | Qwen3.5 (248,320 vocab), <|endoftext|> between documents |
| Data | 55 of the 370 FineWeb-2 cmn_Hani train shards, ~89.5B tokens |
| Tokens trained | 85B (≈ Chinchilla-optimal, ~20 tokens/parameter), single epoch |
| Context length | 4,096 |
| Batch | 512 × 4,096 = 2.1M tokens/step, 40,532 steps |
| Optimizer | AdamW, LR 3e-4 → 3e-5 cosine, 2,000 warmup steps, weight decay 0.1, grad clip 1.0, bf16 |
| Hardware | 8× NVIDIA B300, Megatron-Bridge 0.7.1 / Megatron-Core 0.20.1 (NeMo 26.10 container) |
Evaluation
Mean next-token cross-entropy (nats/token, lower is better) on FineWeb-2 cmn_Hani shard 000_00001, which was
not used for training. Each set is 48 × 4,096 tokens, documents joined with <|endoftext|>, same tokenizer for both models.
| Evaluation set | This model | Qwen3.5-4B-Base |
|---|---|---|
| Random documents from the shard | 2.623 | 3.475 |
| First documents of the shard | 3.230 | 3.183 |
| Last 0.2% of documents of the shard | 1.771 | 4.292 |
The end-of-training validation loss reported by Megatron was 2.377. That split is the last 0.2% of documents of each training shard, and FineWeb-2 shards are not uniformly shuffled: documents from large near-duplicate clusters (lots of spam and templated pages) come first and unique documents (much of it long-form web fiction) come last. So that number is optimistic; the random-document number above is the representative one.
This model fits raw Chinese web text closely, which is exactly what it was trained on. Qwen3.5 is trained on far more, heavily filtered data and is much stronger on downstream tasks; a lower loss here does not mean a better general model.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("izzcw/qwen35-4b-fineweb2-cmn")
model = AutoModelForCausalLM.from_pretrained("izzcw/qwen35-4b-fineweb2-cmn", dtype="bfloat16", device_map="auto")
ids = tok("北京是中国的", return_tensors="pt").to(model.device)
print(tok.decode(model.generate(**ids, max_new_tokens=64, do_sample=True, top_p=0.9)[0]))
Requires a transformers version with Qwen3.5 support.
License
Weights are released under Apache-2.0. The training data, FineWeb-2, is released under ODC-By 1.0 and is subject to CommonCrawl's terms of use.