|
Download README.md from nathaninline/Edge0-145B-fold-Basalt: direct link, hf CLI and curl.
- Browser
- Download file 3.63 kB
-
https://huggingface.co/nathaninline/Edge0-145B-fold-Basalt/resolve/main/README.md
- Command line
-
hf download hf://nathaninline/Edge0-145B-fold-Basalt/README.md
-
curl -L -o README.md https://huggingface.co/nathaninline/Edge0-145B-fold-Basalt/resolve/main/README.md
3.63 kB
| license: other | |
| license_name: edge0-community-model-1.0 | |
| license_link: LICENSE | |
| base_model: Edge0/Edge0-145B-q3k | |
| tags: | |
| - basalt | |
| - qwen4exp | |
| - mixture-of-experts | |
| - experimental | |
| # Edge0-145B, folded for Basalt (experimental) | |
| An unofficial conversion of [Edge0/Edge0-145B-q3k](https://huggingface.co/Edge0/Edge0-145B-q3k) into a single `.basalt` file that the [Basalt](https://github.com/jesdga95/basalt) engine loads without any engine change. | |
| **Read this first: quality is clearly lower than the original.** This file exists to show that the conversion is possible and to let people measure it. For real use, prefer the original Edge0 pack on its own engine, or an official Flash-Next Basalt pack. | |
| ## What was done | |
| Edge0-145B is a latent MoE: each routed expert works at width 1792 between a shared input projection D and a shared output projection U (8 groups per layer). Basalt only knows classic Flash-Next experts (2560 -> 640 -> 2560). Because D and U are linear, each expert can be folded back to the classic shape exactly: | |
| - `gate_folded = gate * diag(1/s) * D_g` | |
| - `up_folded = up * diag(1/s) * D_g` | |
| - `down_folded = U_g * down` | |
| with `g` the expert group (`labels.bin`) and `s` the per-layer column scale (`scales/l{l}.f32`). The result has the exact shape of a Flash-Next model (48 layers, 512 experts per layer). | |
| The folded experts are then quantized again so the file fits a 16 GB GPU + 46 GB RAM machine. Per layer, the formats are the ones of the official Unsloth UD-IQ2_XS Basalt pack (gate/up IQ2_XXS or IQ2_S, down IQ4_NL or Q2_0), with a neutral importance matrix. This second quantization, on top of the Q3_K of the original, is where the quality goes. | |
| Other parts: | |
| - everything outside the experts comes from the Edge0 skeleton GGUF, unchanged; | |
| - the n-gram table is the one of the official Flash-Next pack (measured identical to the Edge0 one, apart from quantization noise); | |
| - the MTP draft head is the Edge0 one; the vision tower comes from the official Flash-Next pack. | |
| ## Measurements | |
| One machine: RTX 5060 Ti 16 GB, 46 GB RAM, Basalt 0.3 (commit 46f1e3ffa), kv int8. Perplexity: wikitext-2 test, 100 chunks of 512 tokens, second half scored, through the Basalt `ppl_gate` tool. | |
| | | Flash-Next UD-IQ2_XS (official pack) | This file | Edge0-145B Q3_K on its own engine | | |
| |---|---|---|---| | |
| | Decode | 70 to 84 tok/s | 70 to 88 tok/s | 29 to 33 tok/s | | |
| | Prefill, 7K tokens | 1840 tok/s | 1870 tok/s | 850 tok/s | | |
| | Perplexity (lower is better) | 3.28 | 5.04 | not measured | | |
| The perplexity of the original Edge0 pack could not be measured with the same tool, so these numbers do not say how much of the loss comes from the folding quantization and how much from the model itself. | |
| ## Usage | |
| ``` | |
| basalt serve --model Edge0-145B-fold.basalt --kv int8 --expert-cache auto --prefill auto | |
| ``` | |
| SHA-256: `096796f31b512201d8a76852b23f7f07201d307a2994671615138b7da748bb83` | |
| The scripts used are in `tools/` (they contain local paths and are given as documentation). | |
| ## License and attribution | |
| This is a modified version (format conversion and requantization) of Edge0-145B, made by nathaninline, shared for noncommercial community use. It is not affiliated with or endorsed by Edge0, Qwen, or the Basalt authors. | |
| - Edge0-specific contributions: Edge0 Community Model License 1.0, see `LICENSE`, `NOTICE` and `release-scope.json` (copied unchanged from the original repository). | |
| - Base model: Qwen/Qwen3.8-Flash-Next, Qwen Community License 1.0, see `third-party/Qwen-LICENSE.txt`. | |
| Both sets of terms apply. Commercial use of the model itself needs separate permission from Edge0 and from Qwen. | |