Remek commited on
Commit
bc4f975
·
verified ·
1 Parent(s): 2764aee

README: measured quality and speed (draft)

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -46,6 +46,18 @@ basal-serve --model Remek/basal-1.5-4.5B-GGUF --mode llamacpp --llamacpp-url htt
46
  - `tokenizer_config.json`
47
  - `README.md`
48
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  ## Notes
50
 
51
  - `--model` points at this folder (or repo) for the tokenizer, the chat template and `CALIBRATION.json`; the GGUF file itself is served by Ollama or llama.cpp.
 
46
  - `tokenizer_config.json`
47
  - `README.md`
48
 
49
+ ## Quality and speed of this port
50
+
51
+ Measured on Apple M4 Pro (10+4 CPU, 20 GPU cores), 24 GB, macOS 15.7 against the PyTorch reference (`torch-bf16`) on 500 held-out development decisions (both option orders, calibrated): basal-1.5-4.5B (source tag M15C_45); reference torch 2.14 bf16 on MPS; mlx 0.32.3 / mlx-lm 0.32.0, Ollama 0.35.0, llama.cpp 0.5.0 (b11146). Shipped files: mlx-8bit-linux / mlx-fp4-linux are the uploaded -MLX-8bit / -MLX-fp4 exports (made on the Modal Linux CPU container; no latency run, same format as the Mac exports mlx-8bit / mlx-fp4, which carry the latency); gguf-* are the uploaded -GGUF files (Q4_K_M with importance matrix)..
52
+
53
+ | engine | argmax agreement | accuracy | mean abs. prob. diff. | ECE | 1 question / state | 5 questions / state |
54
+ |---|---|---|---|---|---|---|
55
+ | torch-bf16 | 1.000 | 0.934 | 0.0000 | 0.033 | 823 ms | 4157 ms |
56
+ | gguf-q8_0-llamacpp | 0.994 | 0.936 | 0.0024 | 0.035 | 432 ms | 1699 ms |
57
+ | gguf-q8_0-ollama | 0.994 | 0.936 | 0.0024 | 0.035 | 453 ms | 1804 ms |
58
+ | gguf-q4_k_m-llamacpp | 0.970 | 0.926 | 0.0137 | 0.031 | 458 ms | 1801 ms |
59
+ | gguf-q4_k_m-ollama | 0.970 | 0.926 | 0.0137 | 0.031 | 504 ms | 1833 ms |
60
+
61
  ## Notes
62
 
63
  - `--model` points at this folder (or repo) for the tokenizer, the chat template and `CALIBRATION.json`; the GGUF file itself is served by Ollama or llama.cpp.