Text Generation
Transformers
Safetensors
GGUF
English
qwen2
25M
text-generation-inference
CodeSoft commited on
Commit
01d9432
·
verified ·
1 Parent(s): 3bd4fd9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md CHANGED
@@ -1,3 +1,81 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ model_name: Sorbet-v2-25M
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - qwen2
7
+ - 25M
8
+ language:
9
+ - en
10
+ datasets:
11
+ - epfml/FineWeb-HQ
12
+ - HuggingFaceTB/finemath
13
+ - mlfoundations/dclm-baseline-1.0-parquet
14
+ library_name: transformers
15
  ---
16
+
17
+ # Sorbet-v2-25M
18
+
19
+ ~25M-parameter Qwen2-style decoder LM, warm-started from Sorbet-25M and continued-trained in two legs totaling ~12hrs on a single RTX 5060 Ti (16GB). Scores at or above Sorbet-25M on every benchmark below while cutting validation perplexity by ~6%.
20
+
21
+ ## Architecture
22
+
23
+ Identical to Sorbet-25M: stock Qwen2 throughout, no custom code paths, natively supported by both `transformers` and `llama.cpp`.
24
+
25
+ | | |
26
+ |---|---|
27
+ | Params | 25,185,920 (~87% non-embedding) |
28
+ | Layers / hidden | 14 / 384 |
29
+ | Attention | GQA 6 heads / 2 KV heads, RoPE θ=100k |
30
+ | FFN | 1024 (SwiGLU) |
31
+ | Context | 4096 |
32
+ | Vocab | 8,192 custom byte-level BPE (tied embeddings) |
33
+ | Precision | bf16 |
34
+
35
+ ## Training
36
+
37
+ v2 continues the v1 checkpoint through two training runs:
38
+
39
+ | Leg | Data mix (tokens) | LR schedule |
40
+ |---|---|---|
41
+ | cpt2 | fineweb-edu 70% / infiwebmath 10% / DCLM-baseline 20%, 0.8B tok | cosine, 8-bit AdamW |
42
+ | **v2-final** | FineWeb-HQ 65% / DCLM-baseline 20% / FineMath-4+ 15%, 1.7B tok | cosine peak 1e-4, fp32 AdamW |
43
+
44
+ Block-shuffled at 131,072 tok/step.
45
+
46
+ ## Benchmarks
47
+
48
+ All numbers zero-shot via lm-evaluation-harness, bf16, identical settings across checkpoints.
49
+
50
+ | Task | n | Random | acc | acc_norm |
51
+ |---|---|---|---|---|
52
+ | HellaSwag | 10,042 | 25% | 26.55 ±0.44 | 26.63 ±0.44 |
53
+ | ARC-easy | 2,376 | ~25% | 30.30 ±0.94 | 29.92 ±0.94 |
54
+ | ARC-challenge | 1,172 | ~25% | 18.60 ±1.14 | 22.44 ±1.22 |
55
+ | PIQA | 1,838 | 50% | 54.52 ±1.16 | 53.32 ±1.16 |
56
+ | ArithMark-3.0 | 1,000 | 25% | 32.90 ±1.48 | 33.00 ±1.49 |
57
+
58
+ Notes:
59
+ - Every score is at or above the Sorbet-25M baseline within error bars.
60
+ - ArithMark-3.0 (`AxiomicLabs/Arithmark-3.0`) remains the strongest relative result (+8 pts over random), consistent with the math share of the pretraining mix.
61
+ - ARC-challenge raw accuracy sits below chance due to a length bias in unnormalized scores; acc_norm is the meaningful metric there.
62
+
63
+ ## Usage
64
+
65
+ ```python
66
+ from transformers import AutoModelForCausalLM, AutoTokenizer
67
+
68
+ repo = "CodeSoft/sorbet-v2-25m"
69
+ model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16").to("cuda")
70
+ tok = AutoTokenizer.from_pretrained(repo, subfolder="tokenizer")
71
+ ids = tok("Once upon a time", return_tensors="pt").input_ids.cuda()
72
+ print(tok.decode(model.generate(ids, max_new_tokens=64)[0]))
73
+ ```
74
+
75
+ ## Limitations
76
+
77
+ Expect shallow world knowledge and weak performance on knowledge-heavy benchmarks due to the model's small parameter count and limited training budget.
78
+
79
+ ## License
80
+
81
+ Apache-2.0.