Text Classification
GGUF
English
pollard-weights
pollard
llama.cpp
imatrix
qwen3_5
quantized
mixed-precision
measured-allocation
decision-model
systemone
structured-output
conversational
Instructions to use PollardWeights/clef-flash-Pollard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use PollardWeights/clef-flash-Pollard with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS # Run inference directly in the terminal: llama cli -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS # Run inference directly in the terminal: llama cli -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama cli -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Use Docker
docker model run hf.co/PollardWeights/clef-flash-Pollard:IQ2_XXS
- Llama new
- LM Studio
- Jan
- Ollama
How to use PollardWeights/clef-flash-Pollard with Ollama:
ollama run hf.co/PollardWeights/clef-flash-Pollard:IQ2_XXS
- Unsloth Desktop
- Pi
How to use PollardWeights/clef-flash-Pollard with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "PollardWeights/clef-flash-Pollard:IQ2_XXS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use PollardWeights/clef-flash-Pollard with Docker Model Runner:
docker model run hf.co/PollardWeights/clef-flash-Pollard:IQ2_XXS
- Lemonade
How to use PollardWeights/clef-flash-Pollard with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull PollardWeights/clef-flash-Pollard:IQ2_XXS
Run and chat with the model
lemonade run user.clef-flash-Pollard-IQ2_XXS
List all available models
lemonade list
- Hermes Agent
How to use PollardWeights/clef-flash-Pollard with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default PollardWeights/clef-flash-Pollard:IQ2_XXS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use PollardWeights/clef-flash-Pollard with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf PollardWeights/clef-flash-Pollard:IQ2_XXS
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "PollardWeights/clef-flash-Pollard:IQ2_XXS" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add README.md
Browse files
README.md
CHANGED
|
@@ -1,142 +1,160 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
base_model: Cloudflare/clef-flash
|
| 4 |
-
base_model_relation: quantized
|
| 5 |
-
quantized_by: PollardWeights
|
| 6 |
-
pipeline_tag: text-classification
|
| 7 |
-
language:
|
| 8 |
-
- en
|
| 9 |
-
tags:
|
| 10 |
-
- pollard-weights
|
| 11 |
-
- pollard
|
| 12 |
-
- gguf
|
| 13 |
-
- llama.cpp
|
| 14 |
-
- imatrix
|
| 15 |
-
- qwen3_5
|
| 16 |
-
-
|
| 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 |
-
- **~9.5 GB RAM / VRAM** -> **`Q6_K`** (7.46 GB). *(needs a current llama.cpp)*
|
| 57 |
-
- **~7.4 GB RAM / VRAM** -> **`IQ4_XS`** (5.
|
| 58 |
-
- **~
|
| 59 |
-
- **~
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
| 67 |
-
|
|
| 68 |
-
| `clef-flash-Pollard-
|
| 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 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Cloudflare/clef-flash
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
quantized_by: PollardWeights
|
| 6 |
+
pipeline_tag: text-classification
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
+
tags:
|
| 10 |
+
- pollard-weights
|
| 11 |
+
- pollard
|
| 12 |
+
- gguf
|
| 13 |
+
- llama.cpp
|
| 14 |
+
- imatrix
|
| 15 |
+
- qwen3_5
|
| 16 |
+
- quantized
|
| 17 |
+
- mixed-precision
|
| 18 |
+
- measured-allocation
|
| 19 |
+
- decision-model
|
| 20 |
+
- systemone
|
| 21 |
+
- structured-output
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# clef-flash -- Pollard
|
| 25 |
+
|
| 26 |
+
> ### Pollard shrank this model: **18.15 GB (f16) -> 3.35 GB** -- **82% smaller, 5.4x down**.
|
| 27 |
+
> The smallest rung here; larger, higher-fidelity rungs are listed below.
|
| 28 |
+
>
|
| 29 |
+
> | format | this model's size |
|
| 30 |
+
> |---|---:|
|
| 31 |
+
> | f16 | 18.15 GB |
|
| 32 |
+
> | Q8_0 | ~9.62 GB |
|
| 33 |
+
> | Q6_K | 7.46 GB |
|
| 34 |
+
> | Q4_K_M | ~5.26 GB |
|
| 35 |
+
> | **PollardMix (this repo's IQ2_XXS)** | **3.35 GB** |
|
| 36 |
+
|
| 37 |
+
Pollard builds of [Cloudflare/clef-flash](https://huggingface.co/Cloudflare/clef-flash) made with [Pollard Weights](https://github.com/WestWaters/pollard-weights) -- a ladder of **measured-allocation** quants (bits placed by per-layer sensitivity, not a uniform crush).
|
| 38 |
+
|
| 39 |
+
**Standard GGUF, but you need a recent llama.cpp.** This model's architecture (`clef`) is implemented upstream, so any build new enough to carry it runs these files -- llama.cpp itself, and Ollama or LM Studio once they ship a runtime with it. An older build will refuse them with `unknown model architecture`. The quants are ordinary K-quants.
|
| 40 |
+
|
| 41 |
+
## Model details
|
| 42 |
+
|
| 43 |
+
| | |
|
| 44 |
+
|---|---|
|
| 45 |
+
| Parameter count | ~9.1B |
|
| 46 |
+
| Architecture | `clef` |
|
| 47 |
+
| Input support | text, image |
|
| 48 |
+
| imatrix | **yes** -- see [calibration](#imatrix-calibration) |
|
| 49 |
+
| Measured | **decision fidelity vs f16** through `/v1/systemone` -- [table below](#decision-fidelity) (perplexity does not apply: a decision model answers with probabilities, not text) |
|
| 50 |
+
|
| 51 |
+
## Which file should I choose?
|
| 52 |
+
|
| 53 |
+
Every rung is the **same weights**, sized to a different RAM budget by the measured allocation. Pick the largest one that fits your machine with room for context:
|
| 54 |
+
|
| 55 |
+
- **~9.5 GB RAM / VRAM** -> **`Uniform-Q6_K`** (7.46 GB). *(needs a current llama.cpp)* uniform allocation
|
| 56 |
+
- **~9.5 GB RAM / VRAM** -> **`Q6_K`** (7.46 GB). *(needs a current llama.cpp)* measured allocation
|
| 57 |
+
- **~7.4 GB RAM / VRAM** -> **`IQ4_XS`** (5.43 GB). *(needs a current llama.cpp)* measured allocation
|
| 58 |
+
- **~7.4 GB RAM / VRAM** -> **`Uniform-IQ4_XS`** (5.40 GB). *(needs a current llama.cpp)* uniform allocation
|
| 59 |
+
- **~6.6 GB RAM / VRAM** -> **`Uniform-IQ3_S`** (4.58 GB). *(needs a current llama.cpp)* uniform allocation
|
| 60 |
+
- **~6.5 GB RAM / VRAM** -> **`IQ3_S`** (4.48 GB). *(needs a current llama.cpp)* measured allocation
|
| 61 |
+
- **~5.4 GB RAM / VRAM** -> **`Uniform-IQ2_XXS`** (3.36 GB). *(needs a current llama.cpp)* uniform allocation
|
| 62 |
+
- **~5.3 GB RAM / VRAM** -> **`IQ2_XXS`** (3.35 GB). *(needs a current llama.cpp)* measured allocation
|
| 63 |
+
|
| 64 |
+
## Available files
|
| 65 |
+
|
| 66 |
+
| file | size | agrees with f16 | option KL | notes |
|
| 67 |
+
|---|---:|---:|---:|---|
|
| 68 |
+
| `clef-flash-Pollard-IQ2_XXS.gguf` | 3.35 GB | 100% | 0.030 | measured allocation |
|
| 69 |
+
| `clef-flash-Pollard-Uniform-IQ2_XXS.gguf` | 3.36 GB | 100% | 0.032 | uniform allocation |
|
| 70 |
+
| `clef-flash-Pollard-IQ3_S.gguf` | 4.48 GB | 100% | 0.0082 | measured allocation |
|
| 71 |
+
| `clef-flash-Pollard-Uniform-IQ3_S.gguf` | 4.58 GB | 100% | 0.0033 | uniform allocation |
|
| 72 |
+
| `clef-flash-Pollard-Uniform-IQ4_XS.gguf` | 5.40 GB | 100% | 0.00048 | uniform allocation |
|
| 73 |
+
| `clef-flash-Pollard-IQ4_XS.gguf` | 5.43 GB | 100% | 0.0019 | measured allocation |
|
| 74 |
+
| `clef-flash-Pollard-Uniform-Q6_K.gguf` | 7.46 GB | 100% | 4.5e-05 | uniform allocation |
|
| 75 |
+
| `clef-flash-Pollard-Q6_K.gguf` | 7.46 GB | 100% | 6.2e-05 | measured allocation |
|
| 76 |
+
|
| 77 |
+
## Decision fidelity
|
| 78 |
+
|
| 79 |
+
This is a **decision model**: it answers typed questions (choice / score / yes-no) with a probability per option, so it is measured on its decisions, not on text. Each rung and the f16 answered the same 20 typed questions through llama-server's `/v1/systemone`, read the same way ([pollard-decision](https://github.com/WestWaters/pollard-weights)).
|
| 80 |
+
|
| 81 |
+
| file | size | agrees with f16 | option KL vs f16 | mean prob. drift | accuracy |
|
| 82 |
+
|---|---:|---:|---:|---:|---:|
|
| 83 |
+
| `clef-flash-Pollard-Uniform-Q6_K.gguf` | 7.46 GB | 100% | 4.5e-05 | 0.0007 | 100% |
|
| 84 |
+
| `clef-flash-Pollard-Q6_K.gguf` | 7.46 GB | 100% | 6.2e-05 | 0.0009 | 100% |
|
| 85 |
+
| `clef-flash-Pollard-IQ4_XS.gguf` | 5.43 GB | 100% | 0.0019 | 0.0037 | 100% |
|
| 86 |
+
| `clef-flash-Pollard-Uniform-IQ4_XS.gguf` | 5.40 GB | 100% | 0.00048 | 0.0023 | 100% |
|
| 87 |
+
| `clef-flash-Pollard-Uniform-IQ3_S.gguf` | 4.58 GB | 100% | 0.0033 | 0.0065 | 100% |
|
| 88 |
+
| `clef-flash-Pollard-IQ3_S.gguf` | 4.48 GB | 100% | 0.0082 | 0.0114 | 100% |
|
| 89 |
+
| `clef-flash-Pollard-Uniform-IQ2_XXS.gguf` | 3.36 GB | 100% | 0.032 | 0.0330 | 100% |
|
| 90 |
+
| `clef-flash-Pollard-IQ2_XXS.gguf` | 3.35 GB | 100% | 0.030 | 0.0343 | 100% |
|
| 91 |
+
|
| 92 |
+
_Agrees = the rung picks the same option as the f16. Option KL = how far its option probabilities moved from the f16's (0 = identical); it is the number that separates the rungs._
|
| 93 |
+
|
| 94 |
+
## Two sets: measured and uniform
|
| 95 |
+
|
| 96 |
+
This repo ships the same four sizes built two ways.
|
| 97 |
+
|
| 98 |
+
- **`clef-flash-Pollard-<rung>.gguf` -- measured allocation (the Pollard build).** A sensitivity profile was measured on the original weights (every one of the 32 layers, including the 24 Gated DeltaNet linear-attention layers), and bits were placed by it: the layers the model is most sensitive to keep more precision, the rest carry the compression. imatrix over the full Calib 3.0 corpus. Profile included: `clef-flash-Pollard.sensitivity.json`, imatrix `clef-flash-Pollard.imatrix`.
|
| 99 |
+
- **`clef-flash-Pollard-Uniform-<rung>.gguf` -- uniform allocation.** Same rung types, same imatrix-calibrated quants, one precision per role across all layers (no sensitivity profile; imatrix from a 200-chunk slice of the same corpus, `clef-flash-Pollard-Uniform.imatrix`). Shipped as a second option and as the baseline the measured set is compared against.
|
| 100 |
+
|
| 101 |
+
In both sets the decision head (`dec.*`, the stack that produces the answers) is held at Q6_K. Both are measured the same way in the tables above.
|
| 102 |
+
|
| 103 |
+
## Multimodal
|
| 104 |
+
|
| 105 |
+
Vision needs the projector shipped alongside: **`mmproj-clef-flash-BF16.gguf`** -- download it too and pass it with `--mmproj`. It is **not quantized**; it is small and the text ladder is where the size lives.
|
| 106 |
+
|
| 107 |
+
```bash
|
| 108 |
+
llama-server -m clef-flash-Pollard-IQ2_XXS.gguf --mmproj mmproj-clef-flash-BF16.gguf -ngl 99
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
## Download a specific file
|
| 112 |
+
|
| 113 |
+
```bash
|
| 114 |
+
pip install -U "huggingface_hub[cli]"
|
| 115 |
+
hf download PollardWeights/clef-flash-Pollard \
|
| 116 |
+
--include "clef-flash-Pollard-IQ2_XXS.gguf" --local-dir ./
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
## How to run
|
| 120 |
+
|
| 121 |
+
This model's architecture (`clef`) needs a llama.cpp new enough to carry it. A decision model is served on **`/v1/systemone`** (no chat or completions):
|
| 122 |
+
|
| 123 |
+
```bash
|
| 124 |
+
llama-server -m clef-flash-Pollard-IQ2_XXS.gguf -ngl 99 --port 8080
|
| 125 |
+
curl http://127.0.0.1:8080/v1/systemone -H "Content-Type: application/json" -d '{
|
| 126 |
+
"state": "Customer message: I was charged twice for my order last week and nobody has replied.",
|
| 127 |
+
"questions": {
|
| 128 |
+
"route": {"type": "choice", "instructions": "Which team should handle this?",
|
| 129 |
+
"criteria": {"billing": null, "shipping": null, "technical": null}},
|
| 130 |
+
"angry": {"type": "noul", "instructions": "Is the customer angry?"},
|
| 131 |
+
"urgency": {"type": "score", "instructions": "How urgent is this?",
|
| 132 |
+
"criteria": ["can wait", "this week", "today", "right now"]}
|
| 133 |
+
}
|
| 134 |
+
}'
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
Each answer carries the probability of every option. Some decision models evaluate the whole prompt in one batch, so a long `state` may need a larger `--ubatch-size`.
|
| 138 |
+
|
| 139 |
+
## imatrix (calibration)
|
| 140 |
+
|
| 141 |
+
The importance matrix (`clef-flash-Pollard.imatrix`, included) was computed on a mixed-domain corpus so the matrix sees every register the model serves.
|
| 142 |
+
|
| 143 |
+
## ARM / AVX
|
| 144 |
+
|
| 145 |
+
llama.cpp repacks weights into an interleaved layout at load time for faster inference on ARM and AVX machines -- no special file needed, online repacking covers these quants. The old `Q4_0_4_4/4_8/8_8` variants are not required.
|
| 146 |
+
|
| 147 |
+
## Errata
|
| 148 |
+
|
| 149 |
+
- `general.architecture` is `clef`, which upstream llama.cpp added recently. A build older than that support refuses these files with `unknown model architecture` -- update llama.cpp rather than looking for a different quant. Checked with `pollard-ggufcheck`, which reads the architecture and the tensor types out of the header and asks upstream what it implements.
|
| 150 |
+
- Measured allocation places bits by per-layer sensitivity under a size budget.
|
| 151 |
+
- Single machine; replication invited.
|
| 152 |
+
|
| 153 |
+
## Credits & license
|
| 154 |
+
|
| 155 |
+
- Base model: [`Cloudflare/clef-flash`](https://huggingface.co/Cloudflare/clef-flash)
|
| 156 |
+
- Quantization tooling: [llama.cpp](https://github.com/ggml-org/llama.cpp) (ggml-org)
|
| 157 |
+
- Method + tooling: [Pollard Weights](https://github.com/WestWaters/pollard-weights) -- *measure first, no claim before a number.*
|
| 158 |
+
- License: `apache-2.0`, inherited from the base model.
|
| 159 |
+
|
| 160 |
+
*Built with [Pollard Weights](https://github.com/WestWaters/pollard-weights) -- frontier models, small hardware, no compromise.*
|