Commit 7ca5843
feat(gguf-converter): add GGUF → TRI converter specification
- Create specs/tri/gguf_to_tri.vibee as single source of truth
- Support F32/F16/BF16/Q4/Q5/Q6/Q8/TQ1/TQ2 tensor types
- Add parallel quantization via thread pool
- Fix Zig syntax errors (packed keyword, while loop)
- Add 10 unit tests for converter
- Update docs with GGUF converter info
Compression ratios:
- F32 → Ternary: 16x
- F16 → Ternary: 8x
- Q8 → Ternary: 4x
- Q4 → Ternary: 2x
Co-authored-by: Ona <no-reply@ona.com>1 parent 4431189 commit 7ca5843
5 files changed
Lines changed: 941 additions & 58 deletions
File tree
- docs
- specs/tri
- src/vibeec
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
163 | 180 | | |
164 | 181 | | |
165 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 | | |
42 | 51 | | |
43 | 52 | | |
| |||
0 commit comments