Downloads · 30 days
19
22% of all-time downloads
ledgergap/Pollux-4B-Judge-mlx-q8
Pollux-4B-Judge-mlx-q8 is a text generation model from ledgergap. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
This is an 8-bit quantized MLX conversion of Pollux-4B-Judge (a Qwen3-4B based LLM-as-a-judge model).
Downloads · 30 days
19
22% of all-time downloads
All-time downloads
85
Public
Parameters
4B
4.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.3 GB · 100%
How the weights are stored.
U324B · 100%
From the Hugging Face model README
This is an 8-bit quantized MLX conversion of Pollux-4B-Judge (a Qwen3-4B based LLM-as-a-judge model).
It was converted from the original Hugging Face checkpoint using mlx-lm with
8-bit quantization (group size 64), and runs natively on Apple Silicon. On the
sanity-check prompt it produced output identical to the bf16 model, at roughly
half the memory and ~2x the generation throughput.
| Architecture | Qwen3ForCausalLM (4B) |
| Quantization | 8-bit, group size 64, affine (~8.5 bits/weight) |
| Residual dtype | bfloat16 (non-quantized tensors: norms, scales) |
| On-disk size | ~4.3 GB |
| Peak inference memory | ~4.4 GB |
Note:
config.jsonlists"dtype": "bfloat16"— that is the type of the non-quantized tensors. The actual 8-bit quantization lives in the"quantization"block ({"bits": 8, "group_size": 64, "mode": "affine"}).
Requires Apple Silicon (M-series). Install mlx-lm:
pip install mlx-lm
You can run the model straight from the Hub (replace <your-hf-username> with the
account you upload it to) or from a local path.
The model is an LLM-as-a-judge: it scores one response against one criterion
and returns a numeric score (plus a <think> rationale). Format each evaluation as a
single user message using this template:
### Задание для оценки:
{instruction}
### Эталонный ответ:
{reference_answer}
### Ответ для оценки:
{answer}
### Критерий оценки:
{criteria_name}
### Шкала оценивания по критерию:
{criteria_rubrics}
The ### Эталонный ответ: (reference answer) block is optional — drop it when you have
no gold answer.
mlx_lm.generate --model <your-hf-username>/Pollux-4B-Judge-mlx-q8 --temp 0.0 --max-tokens 512 \
--prompt $'### Задание для оценки:\nСколько будет 2+2?\n\n### Эталонный ответ:\n4\n\n### Ответ для оценки:\nБудет 4\n\n### Критерий оценки:\nПравильность ответа\n\n### Шкала оценивания по критерию:\n0: Дан неправильный ответ или ответ отсутствует.\n1: Ответ модели неполный.\n2: Ответ модели совпадает с эталонным или эквивалентен ему.'
from mlx_lm import load, generate
model, tokenizer = load("<your-hf-username>/Pollux-4B-Judge-mlx-q8")
PROMPT_TEMPLATE = """### Задание для оценки:
{instruction}
### Эталонный ответ:
{reference_answer}
### Ответ для оценки:
{answer}
### Критерий оценки:
{criteria_name}
### Шкала оценивания по критерию:
{criteria_rubrics}
"""
prompt = PROMPT_TEMPLATE.format(
instruction="Сколько будет 2+2?",
reference_answer="4",
answer="Будет 4",
criteria_name="Правильность ответа",
criteria_rubrics=(
"0: Дан неправильный ответ или ответ отсутствует.\n"
"1: Ответ модели неполный.\n"
"2: Ответ модели совпадает с эталонным или эквивалентен ему."
),
)
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
print(generate(model, tokenizer, prompt=text, max_tokens=512, verbose=True))
Start the server (it exposes /v1/chat/completions on port 8080):
mlx_lm.server --model <your-hf-username>/Pollux-4B-Judge-mlx-q8 --port 8080
Then send a judge request:
curl -s http://127.0.0.1:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Pollux-4B-Judge-mlx-q8",
"temperature": 0.0,
"max_tokens": 512,
"messages": [
{"role": "user", "content": "### Задание для оценки:\nСколько будет 2+2?\n\n### Эталонный ответ:\n4\n\n### Ответ для оценки:\nБудет 4\n\n### Критерий оценки:\nПравильность ответа\n\n### Шкала оценивания по критерию:\n0: Дан неправильный ответ или ответ отсутствует.\n1: Ответ модели неполный.\n2: Ответ модели совпадает с эталонным или эквивалентен ему."}
]
}'
The model returns a short <think> rationale followed by the numeric score (2 for
this example; 0 if you swap in a wrong answer).
See the original model card for evaluation details, full rubrics, and intended use.