Instructions to use Mike0021/pulpie-orange-small-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Mike0021/pulpie-orange-small-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Mike0021/pulpie-orange-small-gguf", filename="pulpie-orange-small-F16.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Mike0021/pulpie-orange-small-gguf 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 Mike0021/pulpie-orange-small-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Mike0021/pulpie-orange-small-gguf:Q4_K_M
Use Docker
docker model run hf.co/Mike0021/pulpie-orange-small-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Mike0021/pulpie-orange-small-gguf with Ollama:
ollama run hf.co/Mike0021/pulpie-orange-small-gguf:Q4_K_M
- Unsloth Studio
How to use Mike0021/pulpie-orange-small-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Mike0021/pulpie-orange-small-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Mike0021/pulpie-orange-small-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Mike0021/pulpie-orange-small-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Mike0021/pulpie-orange-small-gguf with Docker Model Runner:
docker model run hf.co/Mike0021/pulpie-orange-small-gguf:Q4_K_M
- Lemonade
How to use Mike0021/pulpie-orange-small-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Mike0021/pulpie-orange-small-gguf:Q4_K_M
Run and chat with the model
lemonade run user.pulpie-orange-small-gguf-Q4_K_M
List all available models
lemonade list
Clean up README formatting
Browse files
README.md
CHANGED
|
@@ -11,82 +11,77 @@ tags:
|
|
| 11 |
- pulpie
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# Pulpie Orange Small GGUF
|
| 15 |
|
| 16 |
-
GGUF conversion of
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|---|---:|---:|---:|
|
| 24 |
-
| `pulpie-orange-small-F16.gguf` | 431.40 | 2.550 | 0.06980780208435067 |
|
| 25 |
-
| `pulpie-orange-small-Q2_K.gguf` | 130.18 | 14.049 | |
|
| 26 |
-
| `pulpie-orange-small-Q3_K_M.gguf` | 143.15 | 11.036 | |
|
| 27 |
-
| `pulpie-orange-small-Q4_K_M.gguf` | 156.97 | 7.651 | |
|
| 28 |
-
| `pulpie-orange-small-Q5_K_M.gguf` | 168.91 | 2.640 | |
|
| 29 |
-
| `pulpie-orange-small-Q6_K.gguf` | 181.60 | 2.614 | |
|
| 30 |
-
| `pulpie-orange-small-Q8_0.gguf` | 232.89 | 2.630 | 0.0720623857818603 |
|
| 31 |
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Verification
|
| 35 |
|
| 36 |
-
|
| 37 |
-
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
<p _item_id="3">It includes storage notes and quality checks for shipment.</p>
|
| 42 |
-
</main></body></html>`
|
| 43 |
-
- Q8_0 extraction non-empty: `True`, main blocks: `3`, markdown: `<html><body>
|
| 44 |
-
<main><h1 _item_id="1">Orange harvest report</h1>
|
| 45 |
-
<p _item_id="2">The main article explains how growers sort oranges after harvest.</p>
|
| 46 |
-
<p _item_id="3">It includes storage notes and quality checks for shipment.</p>
|
| 47 |
-
</main></body></html>`
|
| 48 |
|
| 49 |
-
|
| 50 |
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
|
| 53 |
```bash
|
| 54 |
llama-embedding \
|
| 55 |
--model pulpie-orange-small-Q8_0.gguf \
|
| 56 |
-
--prompt
|
| 57 |
--pooling none \
|
| 58 |
--embd-normalize -1 \
|
| 59 |
--embd-output-format json
|
| 60 |
```
|
| 61 |
|
| 62 |
-
Each
|
| 63 |
|
| 64 |
-
`llama-cli` can load the files
|
| 65 |
|
| 66 |
-
## Python
|
| 67 |
|
| 68 |
```python
|
| 69 |
import json, re, subprocess
|
| 70 |
|
| 71 |
-
|
| 72 |
"llama-embedding", "-m", "pulpie-orange-small-Q8_0.gguf",
|
| 73 |
"-p", html_chunk,
|
| 74 |
"--pooling", "none",
|
| 75 |
"--embd-normalize", "-1",
|
| 76 |
"--embd-output-format", "json",
|
| 77 |
-
]
|
| 78 |
-
|
| 79 |
-
data = json.loads(re.search(r'\{
|
| 80 |
logits = [row["embedding"] for row in data["data"]]
|
| 81 |
```
|
| 82 |
|
| 83 |
-
## Conversion
|
| 84 |
|
| 85 |
-
|
| 86 |
|
| 87 |
-
-
|
| 88 |
-
-
|
| 89 |
-
-
|
| 90 |
-
-
|
| 91 |
|
| 92 |
-
Quantization was
|
|
|
|
| 11 |
- pulpie
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Pulpie Orange Small — GGUF
|
| 15 |
|
| 16 |
+
GGUF conversion of [feyninc/pulpie-orange-small](https://huggingface.co/feyninc/pulpie-orange-small), a 210M parameter EuroBERT token-classification model for Pulpie HTML main-content extraction.
|
| 17 |
|
| 18 |
+
## ⚠️ Not a language model
|
| 19 |
|
| 20 |
+
This is an **encoder classifier**, not a causal LM. The GGUF files expose per-token `other`/`main` classifier logits via `llama-embedding`, not `llama-cli` generation.
|
| 21 |
|
| 22 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
| Quant | Size | Notes |
|
| 25 |
+
|-------|------|-------|
|
| 26 |
+
| F16 | 431 MB | Full precision baseline |
|
| 27 |
+
| Q8_0 | 233 MB | 8-bit, verified accurate |
|
| 28 |
+
| Q6_K | 182 MB | |
|
| 29 |
+
| Q5_K_M | 169 MB | |
|
| 30 |
+
| Q4_K_M | 157 MB | |
|
| 31 |
+
| Q3_K_M | 143 MB | |
|
| 32 |
+
| Q2_K | 130 MB | Most aggressive quantization |
|
| 33 |
|
| 34 |
## Verification
|
| 35 |
|
| 36 |
+
| Variant | Max diff vs PyTorch | E2E extraction | Prediction agreement |
|
| 37 |
+
|---------|--------------------|-----------------|---------------------|
|
| 38 |
+
| F16 | 0.070 | ✅ 3 main blocks | 100% |
|
| 39 |
+
| Q8_0 | 0.072 | ✅ 3 main blocks | 100% |
|
| 40 |
+
| Q6_K – Q2_K | not tested | not tested | — |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
+
> **Note:** Only F16 and Q8_0 were numerically verified against the original PyTorch model. Lower quants (Q6_K → Q2_K) passed load + inference checks but output consistency was not validated. Use F16 or Q8_0 for production.
|
| 43 |
|
| 44 |
+
Full results: [`verification_report.json`](./verification_report.json)
|
| 45 |
+
|
| 46 |
+
## Usage
|
| 47 |
|
| 48 |
```bash
|
| 49 |
llama-embedding \
|
| 50 |
--model pulpie-orange-small-Q8_0.gguf \
|
| 51 |
+
--prompt "<html><body><p>Hello world</p></body></html><|sep|>" \
|
| 52 |
--pooling none \
|
| 53 |
--embd-normalize -1 \
|
| 54 |
--embd-output-format json
|
| 55 |
```
|
| 56 |
|
| 57 |
+
Each output row is `[other_logit, main_logit]`. Pulpie classifies at `<|sep|>` token positions and keeps blocks where `main_logit > other_logit`.
|
| 58 |
|
| 59 |
+
`llama-cli` can load the files but cannot generate — these GGUFs have no causal LM head.
|
| 60 |
|
| 61 |
+
## Python example
|
| 62 |
|
| 63 |
```python
|
| 64 |
import json, re, subprocess
|
| 65 |
|
| 66 |
+
out = subprocess.check_output([
|
| 67 |
"llama-embedding", "-m", "pulpie-orange-small-Q8_0.gguf",
|
| 68 |
"-p", html_chunk,
|
| 69 |
"--pooling", "none",
|
| 70 |
"--embd-normalize", "-1",
|
| 71 |
"--embd-output-format", "json",
|
| 72 |
+
], text=True)
|
| 73 |
+
|
| 74 |
+
data = json.loads(re.search(r'\{.*\}', out, re.S).group(0))
|
| 75 |
logits = [row["embedding"] for row in data["data"]]
|
| 76 |
```
|
| 77 |
|
| 78 |
+
## Conversion notes
|
| 79 |
|
| 80 |
+
Stock llama.cpp supports EuroBERT embeddings but not `EuroBertForTokenClassification`. A 103-line patch was applied to:
|
| 81 |
|
| 82 |
+
- Register `EuroBertForTokenClassification` in the HF converter
|
| 83 |
+
- Map `classifier.weight`/`classifier.bias` → GGUF `cls.output.*`
|
| 84 |
+
- Write classifier labels `["other", "main"]` with `embedding_length_out=2`
|
| 85 |
+
- Apply the classifier head in the EuroBERT runtime graph
|
| 86 |
|
| 87 |
+
Quantization was done with `llama-quantize` from the patched build.
|