tarekfurthy commited on
Commit
0bb451e
·
verified ·
1 Parent(s): abb13ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -1
README.md CHANGED
@@ -38,4 +38,20 @@ garbage.
38
  - Perplexity is not quality. Downstream tasks degrade more than wikitext suggests.
39
  - No fine-tuning was used.
40
  - llama.cpp's stock TQ1_0 quantizer is unusable for this model: its absmax scale sends ~92% of
41
- weights to zero and yields ppl 5178. The learned per-block scale is what makes the format work.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  - Perplexity is not quality. Downstream tasks degrade more than wikitext suggests.
39
  - No fine-tuning was used.
40
  - llama.cpp's stock TQ1_0 quantizer is unusable for this model: its absmax scale sends ~92% of
41
+ weights to zero and yields ppl 5178. The learned per-block scale is what makes the format work.
42
+
43
+ ## Requirements -- you MUST use the companion fork
44
+ The model stores a rotation tensor `trnr.rot` that upstream llama.cpp does not know about. The
45
+ companion fork **trnr.cpp** adds it: one commit over llama.cpp at 16f090f, which is a
46
+ `trnr.rot` ggml tensor plus one graph line in `src/models/olmoe.cpp`. **On stock llama.cpp the
47
+ model loads and then produces garbage**, because the expert input never gets rotated.
48
+
49
+ - fork: <your URL, or "not published yet -- trnr_rot.patch below is the whole fork">
50
+ - `trnr_rot.patch` (4 KB) is in this repo -- apply it to a clean checkout:
51
+ `git clone ... && cd llama.cpp && git checkout 16f090f && git apply trnr_rot.patch`
52
+ - or use the prebuilt patched tree shipped as `trnr.cpp.tar.gz`
53
+ - build: `cmake -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=OFF && cmake --build build -C Release -j --target llama-cli llama-perplexity`
54
+
55
+ Sanity check after building: this model must give ppl ~3.08x fp16 (28.23) on wikitext-2-raw at
56
+ 8x512 tokens. If it gives thousands, the rotation tensor is not being read -- you are on stock
57
+ llama.cpp or the patch did not apply.