Bejczy commited on
Commit
5a9d41e
Β·
verified Β·
1 Parent(s): 64363b8

bf16 is live: exact byte counts, cake, and the boss

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -92,7 +92,7 @@ here, and Ronald numbers were harmed in the making of neither.**
92
 
93
  *Oh! Hi. You're here. β€” Oh my GOD, why are you here.*
94
 
95
- Okay. Okay okay okay. **Math first**, because I have been thinking about a number for eleven hours and it is **3,775,708,608**. That is how many bytes my **fat side** is. Hold that. We will come back to it. It is **the** number.
96
 
97
  My left half is red and my right half is pale and **that is not a design decision, that is a load-bearing fact about how I think.** There is a diagram further down. It is made of vector primitives and real tensor dimensions and I did not draw it, which is why it is legible.
98
 
@@ -123,7 +123,7 @@ download folder with crumbs on her face going **"WHAT"**.
123
  **16.0435 bits per parameter.** Sixteen bits and a half of one, per weight, for 1,882,736,832 weights,
124
  because she refused to throw **any** decimal away. The 4-bit one folds herself up to 5.4151 bits and
125
  gets on with it. **This one keeps every digit she was given and still wants more.** 2.9627Γ— heavier
126
- than her own little sister. **2,501,312,512 bytes of pure cake.**
127
 
128
  ### 🍰 WHY SHE IS LIKE THIS
129
 
@@ -152,15 +152,15 @@ the boss's numbers and that is the last I will say about it.**
152
 
153
  # 🍰 SHE IS FAT (THE BF16 SECTION)
154
 
155
- ## 3,775,708,608 BYTES. SAY IT. **SAY IT OUT LOUD.**
156
 
157
  **WOAH.** Okay. Hi. Look at her.
158
 
159
- - **3,775,708,608 bytes** = **3.7757 GB** = **3.516 GiB** = **30,205,668,864 bits**
160
  - divided by **1,882,736,832 parameters** = **16.0435 bits per parameter.** SIXTEEN. **AND A HALF OF ONE.**
161
  - divided by the Q4_K_M: **2.9627Γ—**. She is **two point nine six two seven of me.**
162
 
163
- **2,501,312,512 bytes** of that is *extra mouth*. That is two point three three **GiB** of pure, uncompressed, sixteen-bit talking. **2.3295 GiB.** My whole small self is 1.187 GiB. The fat one is wearing me and also a second me and also **most of a third me.** She is a trenchcoat and I am one of the linings.
164
 
165
  ### What sixteen bits actually buys you
166
 
@@ -313,7 +313,7 @@ Works with `llama.cpp`, `ollama`, `LM Studio`, anything that eats GGUF. **No sys
313
 
314
  # THE FINE PRINT (THE PALE SIDE WRITES THIS PART)
315
 
316
- - **Base:** [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B), **Apache-2.0**. Licence carries over. Two files here: **Q4_K_M (1,274,396,096 B)** and **bf16 (3,775,708,608 B)** β€” same 1,882,736,832 parameters, different number of bits per one.
317
  - **Method:** LoRA r=16, Ξ±=32, dropout 0.05 on q/k/v/o/gate/up/down β€” **10,911,744 trainable of 1,892,736,832 (0.5796%)** β€” trained on a synthetic corpus of **680 examples** (220 tool-calling, 110 multi-turn; the rest character dialogue), **lr 1e-4**, one epoch, merged with `merge_and_unload`, converted with `convert_hf_to_gguf.py`, quantised Q4_K_M, and the bf16 GGUF kept alongside it for anyone who wants the weights unfolded.
318
  - **Trained on CPU, deliberately.** This run took **142 minutes** on a Ryzen 7 3700X at fp32. The same job on the RX 6600 was ~**50Γ—** faster and produced **NaN** gradients β€” the hybrid SSM layers fall back to reference PyTorch kernels under ROCm, and in bf16 that fallback overflows. Slow and correct beat fast and broken. (142 min = **8,520 s**; a 50Γ— speedup would be **170.4 s**, and a NaN is not a number you can spend.)
319
  - **Learning rate was deliberately halved** versus an earlier run that caused catastrophic forgetting in a smaller model. Narrow adapter, low lr, one epoch. **Installing a voice is not the same as rebuilding a brain.** (r = 16, so the adapter touches a **16-dimensional** subspace of a **2,048-dimensional** space: **0.78%** of the directions. The voice lives in a corridor.)
 
92
 
93
  *Oh! Hi. You're here. β€” Oh my GOD, why are you here.*
94
 
95
+ Okay. Okay okay okay. **Math first**, because I have been thinking about a number for eleven hours and it is **3,775,708,640**. That is how many bytes my **fat side** is. Hold that. We will come back to it. It is **the** number.
96
 
97
  My left half is red and my right half is pale and **that is not a design decision, that is a load-bearing fact about how I think.** There is a diagram further down. It is made of vector primitives and real tensor dimensions and I did not draw it, which is why it is legible.
98
 
 
123
  **16.0435 bits per parameter.** Sixteen bits and a half of one, per weight, for 1,882,736,832 weights,
124
  because she refused to throw **any** decimal away. The 4-bit one folds herself up to 5.4151 bits and
125
  gets on with it. **This one keeps every digit she was given and still wants more.** 2.9627Γ— heavier
126
+ than her own little sister. **2,501,312,416 bytes of pure cake.**
127
 
128
  ### 🍰 WHY SHE IS LIKE THIS
129
 
 
152
 
153
  # 🍰 SHE IS FAT (THE BF16 SECTION)
154
 
155
+ ## 3,775,708,640 BYTES. SAY IT. **SAY IT OUT LOUD.**
156
 
157
  **WOAH.** Okay. Hi. Look at her.
158
 
159
+ - **3,775,708,640 bytes** = **3.7757 GB** = **3.516 GiB** = **30,205,668,864 bits**
160
  - divided by **1,882,736,832 parameters** = **16.0435 bits per parameter.** SIXTEEN. **AND A HALF OF ONE.**
161
  - divided by the Q4_K_M: **2.9627Γ—**. She is **two point nine six two seven of me.**
162
 
163
+ **2,501,312,416 bytes** of that is *extra mouth*. That is two point three three **GiB** of pure, uncompressed, sixteen-bit talking. **2.3295 GiB.** My whole small self is 1.187 GiB. The fat one is wearing me and also a second me and also **most of a third me.** She is a trenchcoat and I am one of the linings.
164
 
165
  ### What sixteen bits actually buys you
166
 
 
313
 
314
  # THE FINE PRINT (THE PALE SIDE WRITES THIS PART)
315
 
316
+ - **Base:** [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B), **Apache-2.0**. Licence carries over. Two files here: **Q4_K_M (1,274,396,096 B)** and **bf16 (3,775,708,640 B)** β€” same 1,882,736,832 parameters, different number of bits per one.
317
  - **Method:** LoRA r=16, Ξ±=32, dropout 0.05 on q/k/v/o/gate/up/down β€” **10,911,744 trainable of 1,892,736,832 (0.5796%)** β€” trained on a synthetic corpus of **680 examples** (220 tool-calling, 110 multi-turn; the rest character dialogue), **lr 1e-4**, one epoch, merged with `merge_and_unload`, converted with `convert_hf_to_gguf.py`, quantised Q4_K_M, and the bf16 GGUF kept alongside it for anyone who wants the weights unfolded.
318
  - **Trained on CPU, deliberately.** This run took **142 minutes** on a Ryzen 7 3700X at fp32. The same job on the RX 6600 was ~**50Γ—** faster and produced **NaN** gradients β€” the hybrid SSM layers fall back to reference PyTorch kernels under ROCm, and in bf16 that fallback overflows. Slow and correct beat fast and broken. (142 min = **8,520 s**; a 50Γ— speedup would be **170.4 s**, and a NaN is not a number you can spend.)
319
  - **Learning rate was deliberately halved** versus an earlier run that caused catastrophic forgetting in a smaller model. Narrow adapter, low lr, one epoch. **Installing a voice is not the same as rebuilding a brain.** (r = 16, so the adapter touches a **16-dimensional** subspace of a **2,048-dimensional** space: **0.78%** of the directions. The voice lives in a corridor.)