Instructions to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF 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 kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-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 kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: llama cli -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: llama cli -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
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 kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: ./llama-cli -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
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 kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP # Run inference directly in the terminal: ./build/bin/llama-cli -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
Use Docker
docker model run hf.co/kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
- LM Studio
- Jan
- vLLM
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
- Ollama
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with Ollama:
ollama run hf.co/kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
- Unsloth Desktop
- Pi
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with Docker Model Runner:
docker model run hf.co/kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
- Lemonade
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
Run and chat with the model
lemonade run user.Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF-Q4_0_ROCMFP
List all available models
lemonade list
- Hermes Agent
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
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:8080/v1 hermes config set model.default kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP
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:8080/v1 \ --custom-model-id "kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP" \ --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"
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:8080/v1
hermes config set model.default kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFPRun Hermes
hermesLeanstral-1.5-119B-A6B โ ROCmFP4 STRIX_LEAN (text-only GGUF) โ AMD Ryzen AI Max+ 395 / Strix Halo / gfx1151
ROCmFP4 Strix-Lean quant of mistralai/Leanstral-1.5-119B-A6B for AMD Radeon / Ryzen AI Max+ (gfx1151) inference via the public charlie12345/ROCmFPX llama.cpp fork.
| Field | Value |
|---|---|
| Base model | mistralai/Leanstral-1.5-119B-A6B |
| License | Apache-2.0 (derivative redistributable) |
| Architecture | deepseek2 (DeepSeek-V3 MLA + MoE) |
| MoE | 128 routed experts / 4 active + 1 shared (~6.5B active / 119B total) |
| This file | Text-only LM GGUF (vision / Pixtral projector dropped) |
| Quant | Q4_0_ROCMFP4_STRIX_LEAN |
| Size | ~59.0 GiB (60420 MiB reported by quantizer, 4.26 BPW) |
| Source weights | Community BF16 sahilchachra/Leanstral-1.5-119B-A6B-BF16 (dequantized from Mistral FP8) |
Mistral ships Leanstral FP8-native without HF-format weights or an official GGUF. This quant is converted from the community BF16 transformers dump, then quantized with ROCmFP4 Strix-Lean kernels.
Files
| File | Notes |
|---|---|
Leanstral-1.5-119B-A6B-Q4_0_ROCMFP4_STRIX_LEAN.gguf |
Text-only deepseek2 GGUF |
SHA256SUMS |
Basename-only checksums |
Text-only note
The base model includes a Pixtral vision tower + multimodal projector. This GGUF is language-model only (vision tensors omitted at convert time). It is not a multimodal / vision checkpoint. A text-only deepseek2 GGUF of this model family is a known-good pattern (e.g. public Q4_K_M text-only releases).
Runtime (Ryzen AI Max+ 395 / gfx1151)
export LD_LIBRARY_PATH=/path/to/ROCmFPX/build/bin:/opt/rocm/lib
export HSA_OVERRIDE_GFX_VERSION=11.5.1
export GGML_HIP_ENABLE_UNIFIED_MEMORY=1
./llama-server \
--host 127.0.0.1 --port 8099 \
-ngl 999 -fa on -dio --no-warmup --jinja \
--ctx-size 65536 \
--cache-type-k q8_0 --cache-type-v q8_0 \
--parallel 1 \
--temp 1.0 --top-p 0.95 --min-p 0.05 \
--model Leanstral-1.5-119B-A6B-Q4_0_ROCMFP4_STRIX_LEAN.gguf
Critical flags
-diois mandatory on large unified-memory loads. The mmap path can hang around ~120GB RSS with GTT stuck at 0.- Use a ROCmFP4-capable build of charlie12345/ROCmFPX (or equivalent) that implements
Q4_0_ROCMFP4_STRIX_LEAN. - Load one ~60GB model at a time on 128GB unified memory.
Convert / quantize recipe
# 1) Convert HF BF16 โ F16 GGUF (text-only / deepseek2)
# Config must resolve as DeepseekV3ForCausalLM text path.
# MoE experts ship pre-stacked as gate_up_proj / down_proj;
# split gate_up as (n_exp, 2*n_ff, n_embd) โ gate + up.
python convert_hf_to_gguf.py /path/to/leanstral-bf16 \
--outtype f16 \
--outfile Leanstral-1.5-119B-A6B-F16.gguf
# 2) Quantize Strix-Lean
./llama-quantize \
Leanstral-1.5-119B-A6B-F16.gguf \
Leanstral-1.5-119B-A6B-Q4_0_ROCMFP4_STRIX_LEAN.gguf \
Q4_0_ROCMFP4_STRIX_LEAN 8
Verify: general.architecture == deepseek2.
A/B โ ROCmFP4 STRIX_LEAN vs Q4_K_M (same machine / flags)
Hardware: Ryzen AI Max+ 395 (gfx1151), ROCm, 128GB unified memory.
Server flags identical: -ngl 999 -fa on -dio --no-warmup --jinja --ctx-size 65536 --cache-type-k q8_0 --cache-type-v q8_0 --parallel 1.
Baseline: public-style Q4_K_M text-only GGUF (~68 GiB). Gen cap 256 tokens.
| Prompt size (actual tokens) | Metric | STRIX_LEAN (this) | Q4_K_M | ฮ |
|---|---|---|---|---|
| ~7.6K (7616) | Prefill tok/s | 449.9 | 439.2 | +2.4% |
| ~7.6K (7616) | Decode tok/s | 37.41 | 36.85 | +1.5% |
| ~23.1K (23081) | Prefill tok/s | 184.3 | 182.2 | +1.2% |
| ~23.1K (23081) | Decode tok/s | 23.70 | 25.83 | โ8.2% |
| โ | File size | ~59 GiB | ~68 GiB | ~โ13% |
Lean 4 quality spot-check
Both quants produce coherent Lean 4 for:
โ n : Nat, n + 0 = nโ both emit valid Lean (induction /simp/ Mathlib-style).- Harder: commutativity of
Nataddition โ both produce structured induction sketches; neither was formally typechecked here.
Did we lose anything?
- Size: clear win for STRIX_LEAN.
- Decode: essentially flat at
8K context; **8% slower at ~23K** vs Q4_K_M on this run. - Prefill: slight STRIX_LEAN edge (not the usual โ12/โ14% tradeoff seen on some other models).
- Quality: no obvious collapse; treat as comparable for Lean-agent use, with Q4_K_M slightly more concise on the easy lemma in this spot-check.
If your workload is decode-heavy at long context, keep Q4_K_M. If you want a smaller footprint on Strix unified memory with comparable short-context decode, this quant is a reasonable option.
SHA256
See SHA256SUMS (basename only).
Links
- Base: https://huggingface.co/mistralai/Leanstral-1.5-119B-A6B
- BF16 source used for convert: https://huggingface.co/sahilchachra/Leanstral-1.5-119B-A6B-BF16
- Runtime fork: https://github.com/charlie12345/ROCmFPX
Acknowledgements
This build would not exist without the work below. Please star and follow these projects โ the quantisation format used here is their engineering, not mine.
ROCmFPX โ maintained by
charlie12345 / caf
The ROCmFP4 / ROCmFPX tensor formats (ggml types 100โ106) exist only in this fork.
Every ROCmFP4 file in this repository was produced with its llama-quantize, and
runs on its runtime. The fork also credits collaborators ciru-ai, Tom Turney,
PlunderStruck and Aydan S., and acknowledges AMD for hardware support.
Licensed MIT, based on upstream llama.cpp.
llama.cpp โ ggml-org and contributors The inference engine, GGUF format and conversion tooling everything here is built on.
AMD ROCm The compute platform these builds target โ ROCm 7.2.4 on gfx1151 / Radeon 8060S.
Base model authors โ see base_model in the metadata above; all model weights,
licences and capabilities are theirs. This repository contributes quantisation and
measurement only.
If you use these files, please credit ROCmFPX alongside this repository.
- Downloads last month
- 248
4-bit
Model tree for kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF
Base model
mistralai/Leanstral-2603
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf kingjones777/Leanstral-1.5-119B-A6B-ROCmFP4-STRIX_LEAN-GGUF:Q4_0_ROCMFP