IsValorum commited on
Commit
848ebcd
·
verified ·
1 Parent(s): aa8eee4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags: [llama.cpp, clover, clover_moe, prebuilt, cuda]
4
+ ---
5
+ # llama.cpp with Clover support (clover_moe)
6
+
7
+ Prebuilt Linux 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`.
8
+
9
+ 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.
10
+
11
+ | File | Description |
12
+ |---|---|
13
+ | `llama-clover-b4838ffb-linux-x64-cpu.tar.gz` | Portable CPU build |
14
+ | `llama-clover-b4838ffb-linux-x64-cuda12.tar.gz` | CUDA build, archs `80;86;89;90` |
15
+ | `llama-clover-b4838ffb-converter.tar.gz` | HF-to-GGUF converter, conversion code and gguf-py |
16
+ | `BUILD_INFO.json` | Compiler, flags and SHA256 |
17
+ | `SHA256SUMS` | Checksums |
18
+
19
+ ## Usage
20
+
21
+ ```bash
22
+ tar -xzf llama-clover-b4838ffb-linux-x64-cuda12.tar.gz
23
+ cd llama-clover-b4838ffb-linux-x64-cuda12
24
+ export LD_LIBRARY_PATH=$PWD/bin:$LD_LIBRARY_PATH
25
+ ./bin/llama-cli -m clover-bf16.gguf -ngl 99 -fa on -c 4096 -p "Hello"
26
+ ./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
27
+ ```
28
+
29
+ Conversion:
30
+
31
+ ```bash
32
+ tar -xzf llama-clover-b4838ffb-converter.tar.gz
33
+ python llama-clover-converter/llama.cpp/convert_hf_to_gguf.py Diffuspace/Clover-35B-A3B-Preview --outtype bf16 --outfile clover-bf16.gguf
34
+ ```
35
+
36
+ Quantization and importance matrix:
37
+
38
+ ```bash
39
+ ./bin/llama-quantize --allow-requantize clover-bf16.gguf clover-q8_0.gguf Q8_0
40
+ ./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
41
+ ```
42
+
43
+ The CUDA package requires a compatible NVIDIA driver and CUDA 12.x runtime. The CPU package is built with `GGML_NATIVE=OFF`. 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.