Run this model with HF Jobs
Run Maxenith/MAX-9B-Q4_K_M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Maxenith/MAX-9B-Q4_K_M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Maxenith/MAX-9B-Q4_K_M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Maxenith/MAX-9B-Q4_K_M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Maxenith/MAX-9B-Q4_K_M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maxenith/MAX-9B-Q4_K_M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Maxenith/MAX-9B-Q4_K_M")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Maxenith/MAX-9B-Q4_K_M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Maxenith/MAX-9B-Q4_K_M 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 Maxenith/MAX-9B-Q4_K_M:Q4_K_M # Run inference directly in the terminal: llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M # Run inference directly in the terminal: llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
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 Maxenith/MAX-9B-Q4_K_M:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
Use Docker
docker model run hf.co/Maxenith/MAX-9B-Q4_K_M:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Maxenith/MAX-9B-Q4_K_M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Maxenith/MAX-9B-Q4_K_M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maxenith/MAX-9B-Q4_K_M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Maxenith/MAX-9B-Q4_K_M:Q4_K_M
- SGLang
How to use Maxenith/MAX-9B-Q4_K_M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Maxenith/MAX-9B-Q4_K_M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maxenith/MAX-9B-Q4_K_M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Maxenith/MAX-9B-Q4_K_M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Maxenith/MAX-9B-Q4_K_M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Maxenith/MAX-9B-Q4_K_M with Ollama:
ollama run hf.co/Maxenith/MAX-9B-Q4_K_M:Q4_K_M
- Unsloth Desktop
- Pi
How to use Maxenith/MAX-9B-Q4_K_M with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
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": "Maxenith/MAX-9B-Q4_K_M:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Maxenith/MAX-9B-Q4_K_M with Docker Model Runner:
docker model run hf.co/Maxenith/MAX-9B-Q4_K_M:Q4_K_M
- Lemonade
How to use Maxenith/MAX-9B-Q4_K_M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Maxenith/MAX-9B-Q4_K_M:Q4_K_M
Run and chat with the model
lemonade run user.MAX-9B-Q4_K_M-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Maxenith/MAX-9B-Q4_K_M with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
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 Maxenith/MAX-9B-Q4_K_M:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Maxenith/MAX-9B-Q4_K_M with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M
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 "Maxenith/MAX-9B-Q4_K_M:Q4_K_M" \ --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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M# Run inference directly in the terminal:
llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_MBuild 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 Maxenith/MAX-9B-Q4_K_M:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_MUse Docker
docker model run hf.co/Maxenith/MAX-9B-Q4_K_M:Q4_K_M๐ฅ FP16/BF16 Base Version: Maxenith/MAX-9B (Full precision)
โ ๏ธ Note: This is the Q4_K_M quantized version. Use the base version if you need full precision.
MAX-9B
Apache License 2.0
MAX-9B is a reasoning-focused language model developed by Maxenith. It is fine-tuned from Qwen/Qwen3.5-9B on Open Thoughts reasoning data.
On GSM8K it reaches higher accuracy than its base model while using about 54% fewer generated tokens.
Evaluation: GSM8K (full test set)
MAX-9B was compared against its base model on the complete GSM8K test set (1,319 questions) under identical conditions.
| Model | Accuracy | 95% margin | Avg. generated tokens | Unfinished reasoning |
|---|---|---|---|---|
| MAX-9B | 94.3% | ยฑ1.2 | 982 | 34 |
| Qwen3.5-9B (base) | 89.1% | ยฑ1.7 | 2,141 | 88 |
- Accuracy difference: +5.2 points (combined noise about ยฑ2.1).
- MAX-9B generated about 54% fewer tokens on average.
- On the 1,215 questions where both models finished reasoning: MAX-9B 98.0% vs base 95.9%. This is the more conservative comparison, since it removes the effect of answers cut off by the token limit.
Setup (identical for both models)
- Dataset:
openai/gsm8k,main,testsplit, all 1,319 questions - Thinking mode enabled, greedy decoding, bf16
- Same system prompt for both:
You are a helpful assistant. - User prompt: question +
Solve this step by step and put the final answer after the word 'Answer:'. - Token limit: 2,048 new tokens first; questions whose reasoning was cut off were re-run with 8,192 new tokens
- Answer extraction: number after
Answer:in the text following</think>; unfinished reasoning counts as incorrect
Reproduce
Run gsm8k_full_final.py. Per-question outputs of both models are in results_MAX-9B.json and results_Original.json.
Evaluation: MATH-500
MAX-9B on all 500 problems of MATH-500 (HuggingFaceH4/MATH-500). Per-question outputs are in evals/.
| Setting | Accuracy | Unfinished reasoning |
|---|---|---|
| Token limit 10,000 | 435/500 = 87.0% | 55 |
| Unfinished questions re-run with limit 16,000 | 461/500 = 92.2% (95% margin about ยฑ2.4) | 27 |
- On questions where reasoning finished: 435/445 = 97.8% (first run), 461/473 = 97.5% (after re-run). This excludes unfinished answers, which tend to be the hardest, so it overstates overall accuracy.
- Average generated tokens in the first run: 3126.
| Level | Correct | Accuracy |
|---|---|---|
| 1 | 42/43 | 97.7% |
| 2 | 89/90 | 98.9% |
| 3 | 98/105 | 93.3% |
| 4 | 117/128 | 91.4% |
| 5 | 115/134 | 85.8% |
Setup: thinking mode enabled, greedy decoding, bf16, single run. System prompt: You are a helpful assistant.. User prompt: problem followed by Please reason step by step, and put your final answer within \boxed{}.. Answer = last \boxed{} after </think>, compared with math-verify; unfinished reasoning counts as incorrect.
Caveats: no base-model comparison under the same settings was run. No decontamination check against MATH-500 was performed (Open Thoughts contains math data). Greedy decoding can cause repetition loops; 27 questions remained unfinished even at 16,000 tokens.
Files: evals/math500_max9b.json (first run), evals/math500_rerun16k.json (re-run of unfinished questions).
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Maxenith/MAX-9B"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "If 3 pens cost 12 dollars, how much do 7 pens cost?"}]
text = tok.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True, enable_thinking=True
)
inputs = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=2048)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Training data
MAX-9B was fine-tuned on Open Thoughts reasoning data. GSM8K was not intentionally used for training. A formal decontamination check against the GSM8K test set has not been performed.
Limitations
-
- Greedy decoding can cause repetition loops in reasoning models, which may inflate the number of unfinished answers for either model. Results with the recommended sampling settings and multiple seeds have not been run yet.
- Differences of a few points are within noise on benchmarks of this size.
Data Contamination Audit
MAX-9B was evaluated for normalized exact question-text overlap against its three declared fine-tuning source repositories.
Audit summary
- Benchmark: GSM8K (1,319 test questions)
- Benchmark: MATH-500 (500 test questions)
- Training-source records scanned: 557,007
- Normalized exact question-text matches: 2
| Training source | Records scanned | Matches |
|---|---|---|
| OpenR1-Math-220k | 93,733 | 1 |
| Mixture-of-Thoughts | 349,317 | 1 |
| OpenThoughts-114k | 113,957 | 0 |
The matching process applied Unicode NFKC normalization, lowercasing, whitespace normalization, and punctuation removal.
Important limitations
- Full source repositories were scanned, not necessarily the exact selected 5,000 samples used from each source.
- Matches are not automatically confirmed training contamination.
- This audit does not cover base-model pretraining data.
- Semantic paraphrases and near-duplicates were not evaluated.
- Identity Adapter v5 was not independently audited.
The detailed report and match records are available in evals/.
This audit reports observed overlap within the examined datasets; it does not establish that MAX-9B is entirely contamination-free.
Detailed report: Contamination Audit
Machine-readable results: Audit JSON {END}
- Downloads last month
- 261
4-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M# Run inference directly in the terminal: llama cli -hf Maxenith/MAX-9B-Q4_K_M:Q4_K_M