Correct platform note, Windows compatibility and usage, archive names
Browse files
README.md
CHANGED
|
@@ -1,120 +1,132 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
library_name: llama.cpp
|
| 4 |
-
base_model: Diffuspace/Clover-35B-A3B-Preview
|
| 5 |
-
base_model_relation: quantized
|
| 6 |
-
language:
|
| 7 |
-
- en
|
| 8 |
-
tags:
|
| 9 |
-
- llama.cpp
|
| 10 |
-
- gguf
|
| 11 |
-
- clover
|
| 12 |
-
- clover_moe
|
| 13 |
-
- prebuilt
|
| 14 |
-
- runtime
|
| 15 |
-
- linux
|
| 16 |
-
- x86-64
|
| 17 |
-
-
|
| 18 |
-
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
-
|
| 25 |
-
-
|
| 26 |
-
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
>
|
| 37 |
-
>
|
| 38 |
-
|
| 39 |
-
>
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
| 51 |
-
|
|
| 52 |
-
|
|
| 53 |
-
|
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
| `llama-clover-4838ffb-
|
| 63 |
-
| `
|
| 64 |
-
| `
|
| 65 |
-
| `
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
-
|
| 76 |
-
-
|
| 77 |
-
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
.
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: llama.cpp
|
| 4 |
+
base_model: Diffuspace/Clover-35B-A3B-Preview
|
| 5 |
+
base_model_relation: quantized
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- llama.cpp
|
| 10 |
+
- gguf
|
| 11 |
+
- clover
|
| 12 |
+
- clover_moe
|
| 13 |
+
- prebuilt
|
| 14 |
+
- runtime
|
| 15 |
+
- linux
|
| 16 |
+
- x86-64
|
| 17 |
+
- windows
|
| 18 |
+
- universal
|
| 19 |
+
- vulkan
|
| 20 |
+
- cpu
|
| 21 |
+
- cuda
|
| 22 |
+
- cuda12
|
| 23 |
+
- converter
|
| 24 |
+
- quantize
|
| 25 |
+
- imatrix
|
| 26 |
+
- diffusion
|
| 27 |
+
- block-diffusion
|
| 28 |
+
- moe
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# llama.cpp with Clover support (clover_moe)
|
| 32 |
+
|
| 33 |
+
**Prebuilt Clover runtime by IsValorum**
|
| 34 |
+
|
| 35 |
+
<p align="left">
|
| 36 |
+
<a href="https://ko-fi.com/isvalorum"><img src="https://ko-fi.com/img/githubbutton_sm.svg" alt="Support on Ko-fi" height="38"></a>
|
| 37 |
+
</p>
|
| 38 |
+
|
| 39 |
+
> [!IMPORTANT]
|
| 40 |
+
> **Independently computed using dedicated cloud compute clusters, funded 100% out-of-pocket.**
|
| 41 |
+
>
|
| 42 |
+
> If you consider these releases to be of high quality and they help you in your day-to-day workflow, consider [supporting on Ko-fi](https://ko-fi.com/isvalorum). Every contribution directly sustains future cloud compute hours and helps support my university studies.
|
| 43 |
+
|
| 44 |
+
Prebuilt Linux and Windows x86_64 binaries for [Diffuspace/Clover-35B-A3B-Preview](https://huggingface.co/Diffuspace/Clover-35B-A3B-Preview), built from llama.cpp PR [#31306](https://github.com/ggml-org/llama.cpp/pull/31306) at commit `4838ffb0c8ade92f34d9157deea38d92758ab824`.
|
| 45 |
+
|
| 46 |
+
Mainline llama.cpp does not load `clover_moe`. This build adds the converter, the runtime graph and the `draft-self` speculative mode. The PR is not merged upstream; pin this repository for reproducibility.
|
| 47 |
+
|
| 48 |
+
## Clover artifacts for this runtime
|
| 49 |
+
|
| 50 |
+
| Artifact | Size | Link |
|
| 51 |
+
|---|---|---|
|
| 52 |
+
| BF16 source | 69.38 GB | [Clover-35B-A3B-Preview-BF16-GGUF](https://huggingface.co/IsValorum/Clover-35B-A3B-Preview-BF16-GGUF) |
|
| 53 |
+
| Q8_0 | 36.91 GB | [Clover-35B-A3B-Preview-Q8_0-GGUF](https://huggingface.co/IsValorum/Clover-35B-A3B-Preview-Q8_0-GGUF) |
|
| 54 |
+
| 1.25M I-Matrix | 383,689,280 bytes | [Clover-35B-A3B-Preview-VAL-1.25M-I-Matrix-GGUF](https://huggingface.co/IsValorum/Clover-35B-A3B-Preview-VAL-1.25M-I-Matrix-GGUF) |
|
| 55 |
+
| APEX-I NanoPlus V2.1 | 12.56 GB / 11.70 GiB | [Clover-35B-A3B-Preview-APEX-I-NanoPlus-V2.1-GGUF](https://huggingface.co/IsValorum/Clover-35B-A3B-Preview-APEX-I-NanoPlus-V2.1-GGUF) |
|
| 56 |
+
| APEX-I MiniPlus V2.1 | 14.75 GB / 13.74 GiB | [Clover-35B-A3B-Preview-APEX-I-MiniPlus-V2.1-GGUF](https://huggingface.co/IsValorum/Clover-35B-A3B-Preview-APEX-I-MiniPlus-V2.1-GGUF) |
|
| 57 |
+
|
| 58 |
+
## Files
|
| 59 |
+
|
| 60 |
+
| File | Description |
|
| 61 |
+
|---|---|
|
| 62 |
+
| `llama-clover-4838ffb-linux-x86_64-cpu.tar.gz` | Linux CPU build, `GGML_NATIVE=OFF` |
|
| 63 |
+
| `llama-clover-4838ffb-linux-x86_64-nvidia-cuda12.tar.gz` | CUDA 12 build, archs `80;86;89;90` |
|
| 64 |
+
| `llama-clover-4838ffb-converter-python.tar.gz` | HF-to-GGUF converter, conversion code and gguf-py |
|
| 65 |
+
| `llama-clover-4838ffb-windows-x86_64-nvidia-amd-universal-cuda12.8-vulkan-cpu.zip` | Windows x86_64 universal: Nvidia CUDA 12.8 sm_50-120, AMD/Intel Vulkan, any CPU. Tested with NanoPlus: CPU, CUDA -ngl 8, Vulkan Intel |
|
| 66 |
+
| `BUILD_INFO.json` | Compiler, flags and SHA256 per archive |
|
| 67 |
+
| `SHA256SUMS` | Checksums |
|
| 68 |
+
| `config.json` | Machine-readable build descriptor used by Hub download tracking |
|
| 69 |
+
|
| 70 |
+
## Compatibility
|
| 71 |
+
|
| 72 |
+
> [!NOTE]
|
| 73 |
+
> **Platform availability.** Prebuilt binaries cover Linux x86_64 (CPU, and NVIDIA CUDA 12 for sm_80/86/89/90) and Windows x86_64 (one universal package: NVIDIA CUDA 12.8 for sm_50-120, AMD and Intel GPUs through Vulkan 1.4.363, and any CPU, with AVX-512 disabled and per-CPU backends loaded at runtime). macOS is not published yet; build from the same branch and commit there.
|
| 74 |
+
|
| 75 |
+
- Model: `Diffuspace/Clover-35B-A3B-Preview` (`clover_moe`). Works with the BF16 and Q8_0 GGUFs and with third-party `clover_moe` GGUFs such as the IQ4_XS. It does not load the original safetensors.
|
| 76 |
+
- Linux x86_64: the CPU package runs on any Linux; the CUDA package requires an NVIDIA GPU and a CUDA 12.x runtime, with archs 80/86/89/90 (A100, H100/H200, L40S, RTX 4090, A10G). Blackwell 100/120 is not in this build.
|
| 77 |
+
- glibc: the Linux x86_64 archives require `GLIBC_2.38` or newer. Ubuntu 24.04 or equivalent is the safe baseline; older distributions need their own build from the branch.
|
| 78 |
+
- Windows x86_64: native, no WSL needed. The universal ZIP carries CUDA 12.8 for sm_50-120, Vulkan 1.4.363 for AMD and Intel, and per-CPU backends picked at runtime (AVX-512 disabled in this build). Extract it and run `set PATH=%~dp0bin;%PATH%` from the archive root. It ships the same tool set as the Linux archives, including `llama-speculative-simple`, `llama-quantize` and `llama-imatrix`.
|
| 79 |
+
- macOS: not published yet; use a Metal build of the PR or the third-party IQ4_XS Mac build.
|
| 80 |
+
- Frontends: not LM Studio or Ollama. Clover needs this `clover_moe` runtime until the PR merges upstream.
|
| 81 |
+
|
| 82 |
+
## Usage
|
| 83 |
+
|
| 84 |
+
All runtime archives are dynamically linked and ship `llama-cli`, `llama-server`, `llama-diffusion-cli`, `llama-quantize`, `llama-imatrix`, and `llama-perplexity`. Point the loader at the bundled libraries before running. The archive names changed in this build; the extract directories kept their old names.
|
| 85 |
+
|
| 86 |
+
CPU:
|
| 87 |
+
|
| 88 |
+
```bash
|
| 89 |
+
tar -xzf llama-clover-4838ffb-linux-x86_64-cpu.tar.gz
|
| 90 |
+
cd llama-clover-b4838ffb-linux-x64-cpu
|
| 91 |
+
export LD_LIBRARY_PATH=$PWD/bin:$LD_LIBRARY_PATH
|
| 92 |
+
./bin/llama-cli -m clover-bf16.gguf -c 4096 -p "Hello"
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
CUDA 12:
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
tar -xzf llama-clover-4838ffb-linux-x86_64-nvidia-cuda12.tar.gz
|
| 99 |
+
cd llama-clover-b4838ffb-linux-x64-cuda12
|
| 100 |
+
export LD_LIBRARY_PATH=$PWD/bin:$LD_LIBRARY_PATH
|
| 101 |
+
./bin/llama-cli -m clover-bf16.gguf -ngl 99 -fa on -c 4096 -p "Hello"
|
| 102 |
+
./bin/llama-speculative-simple -m clover-bf16.gguf --spec-type draft-self --spec-draft-n-max 15 -ctk bf16 -ctv bf16 -n 128 -c 2048 -b 256 -ub 256 -ngl 99
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
Windows x86_64 (universal ZIP, no separate runtime install):
|
| 106 |
+
|
| 107 |
+
```bat
|
| 108 |
+
set PATH=%~dp0bin;%PATH%
|
| 109 |
+
llama-completion.exe -m Clover-35B-A3B-Preview.APEX-I-NanoPlus-V2.1.gguf -p "hi" -n 1 -c 128 -b 16 -ub 16 -ngl 8 -no-cnv
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
Run both lines from the extracted archive root. Drop `-ngl 8` for CPU or Vulkan-only use; raise it to offload more layers on a large NVIDIA card.
|
| 113 |
+
|
| 114 |
+
## Conversion
|
| 115 |
+
|
| 116 |
+
```bash
|
| 117 |
+
tar -xzf llama-clover-4838ffb-converter-python.tar.gz
|
| 118 |
+
python llama-clover-converter/llama.cpp/convert_hf_to_gguf.py Diffuspace/Clover-35B-A3B-Preview --outtype bf16 --outfile clover-bf16.gguf
|
| 119 |
+
```
|
| 120 |
+
|
| 121 |
+
## Quantization and importance matrix
|
| 122 |
+
|
| 123 |
+
```bash
|
| 124 |
+
./bin/llama-quantize --allow-requantize clover-bf16.gguf clover-q8_0.gguf Q8_0
|
| 125 |
+
./bin/llama-imatrix -m clover-q8_0.gguf -f calibration.raw -o clover.imatrix.gguf --output-format gguf --process-output --no-ppl --no-escape -c 2048 -b 2048 -ub 2048 --chunks 611 -ngl 99
|
| 126 |
+
```
|
| 127 |
+
|
| 128 |
+
The APEX-I V2.1 releases were produced with this build: `llama-quantize --imatrix imatrix-1.25M.gguf --tensor-type-file <recipe> clover-bf16.gguf <output> Q4_0 64`. The recipes carry 853 lines, including the 120 block-diffusion tensors that must stay in `F32`.
|
| 129 |
+
|
| 130 |
+
## Notes
|
| 131 |
+
|
| 132 |
+
The CUDA packages require a compatible NVIDIA driver and CUDA 12.x runtime; the Windows package bundles its CUDA 12.8 libraries and uses the Vulkan loader from the GPU driver. llama.cpp is MIT licensed; the Clover support is PR #31306 by Maphist0; the Clover weights are Apache-2.0, Copyright DiffuSpace and the Qwen team.
|