Unseen1980 commited on
Commit
5e9572f
·
verified ·
1 Parent(s): ceb9938

instruct README.md

Browse files
Files changed (1) hide show
  1. hf/instruct/README.md +72 -0
hf/instruct/README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: transformers
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - daedalus
7
+ - cpu-inference
8
+ - gguf
9
+ - q4_0
10
+ ---
11
+
12
+ # daedalus-150m
13
+
14
+ A 160.5M-parameter causal LM built for the best quality-per-token-per-second on **CPU** inference, exported to GGUF Q4_0 for llama.cpp.
15
+
16
+ ## What this model is trying to beat
17
+
18
+ > Beat Pythia-160M, OPT-125M and GPT-neo-125M on quality; target MobileLLM-125M as a stretch; concede SmolLM2-135M on quality while beating it decisively on CPU decode.
19
+
20
+ This bar was fixed before any result landed. Numbers below are reported against it whether or not they clear it.
21
+
22
+ ## Architecture
23
+
24
+ | | |
25
+ |---|---|
26
+ | exported as | `Lfm2ForCausalLM` |
27
+ | parameters | 160,488,960 (122,740,224 non-embedding) |
28
+ | blocks | 18 (`ccccAccAcAcAcAccAc` -- `c` = gated short conv, `A` = GQA attention) |
29
+ | hidden size | 768 |
30
+ | SwiGLU inner dim | 2048 |
31
+ | heads | 12 query / 4 KV, head_dim 64, QK-norm |
32
+ | RoPE theta | 1,000,000 |
33
+ | context | 2048 |
34
+ | tied embeddings | True |
35
+ | tokenizer | [`HuggingFaceTB/SmolLM2-135M`](https://huggingface.co/HuggingFaceTB/SmolLM2-135M), reused byte-identical, vocab 49,152 |
36
+
37
+ ## Training
38
+
39
+ - run: `post-sft`
40
+ - Muon lr 0.002 on 2D hidden matrices; AdamW lr 3e-05 on embeddings/head/norms
41
+ - WSD schedule, linear decay to zero over the final 45% of the run
42
+
43
+ ## Evaluation
44
+
45
+ _Not yet measured for this export._
46
+
47
+ ## Q4_0 quantization
48
+
49
+ - fp16 perplexity **217.8803** vs Q4_0 **263.4498**
50
+ - delta **20.915%**
51
+ - passes the <1.0% threshold: **False**
52
+ - llama.cpp CPU decode at 64 threads, by context depth:
53
+ - depth **0**: **118.0 tok/s** (+/- 3.8)
54
+ - depth **512**: **103.3 tok/s** (+/- 3.4)
55
+ - depth **2048** (the trained context): **97.5 tok/s** (+/- 2.4)
56
+
57
+ ## Checkpoints and how to continue training
58
+
59
+ Checkpoints are pushed to the private Hub model repo **`Unseen1980/daedalus-checkpoints`**: weights-only bf16 rolling copies every ~2 h under `rolling/<run>/weights.pt`, plus a milestone with full Muon + AdamW optimizer state at the WSD decay-start step on its own revision.
60
+
61
+ _No milestone record was found beside this checkpoint, so no branch point is published for it._
62
+
63
+ ## Deviations from the blueprint
64
+
65
+ Each was costed and approved rather than silently dropped; see `DAEDALUS-BLUEPRINT-v6.md` and issue #4.
66
+
67
+ - **No distillation** from SmolLM2-1.7B during decay. 288 GB of top-16 logits does not fit the disk and the online-teacher variant cost ~$29 of a $94.66 budget; its own evidence was only "+1-3 points plausible".
68
+ - **Corpus stops at ~14.2B tokens, not 45B.** Training repeats a balanced corpus rather than seeing 45B unique tokens; at this scale repetition up to ~4 epochs costs little against fresh tokens, and mixture balance mattered more than raw size.
69
+ - **Document-aligned packing not implemented** -- sequences may cross document boundaries.
70
+ - **NoPE skipped** -- it breaks GGUF export.
71
+ - **Single seed** for the hero run, so no seed-sigma is reported.
72
+ - **`everyday-conversations` contributes ~0.00%** of pretraining instead of its 2% share (the whole dataset is 0.4M tokens, which the 4-epoch cap reduces to nothing); dialogue enters at the `post` SFT stage instead.