Instructions to use Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use Abiray/flint-40B-A2.5B-Q4_K_M-GGUF with Ollama:
ollama run hf.co/Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use Abiray/flint-40B-A2.5B-Q4_K_M-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/flint-40B-A2.5B-Q4_K_M-GGUF: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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Abiray/flint-40B-A2.5B-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
- Lemonade
How to use Abiray/flint-40B-A2.5B-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.flint-40B-A2.5B-Q4_K_M-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Abiray/flint-40B-A2.5B-Q4_K_M-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 Abiray/flint-40B-A2.5B-Q4_K_M-GGUF: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:8080/v1 hermes config set model.default Abiray/flint-40B-A2.5B-Q4_K_M-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Abiray/flint-40B-A2.5B-Q4_K_M-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Abiray/flint-40B-A2.5B-Q4_K_M-GGUF: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:8080/v1 \ --custom-model-id "Abiray/flint-40B-A2.5B-Q4_K_M-GGUF: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"
Flint (40B-A2.5B) - Q4_K_M GGUF
This repository provides the Q4_K_M GGUF quantization of RecursiveSI/flint
Flint is a state-of-the-art Mixture-of-Experts (MoE) model built specifically for coding agents, autonomous codebase exploration, bug fixing, and structured tool calling.
Model Specifications
| Parameter | Specification |
|---|---|
| Developer | Recursive Superintelligence, Inc. |
| Architecture | Mixture-of-Experts (MoE) Decoder-only Transformer (flint) |
| Total Parameters | 39.8 Billion |
| Active Parameters / Token | ~2.5 Billion |
| Layers | 49 total (2 dense + 47 MoE layers) |
| Experts | 256 routed experts (top-6 active) + 1 shared expert |
| Context Length | Up to 262,144 tokens (hybrid sliding-window + global attention) |
| Quantization Type | Q4_K_M (4-bit k-quant medium) |
| Original Precision | BF16 |
| License | Apache 2.0 |
Files Included
| Filename | Quant Type | Size | Description |
|---|---|---|---|
flint-40B-A2.5B-Q4_K_M.gguf |
Q4_K_M | ~24 GB | Standard medium 4-bit k-quantization offering optimal balance between perplexity and RAM/VRAM footprint. |
Requirements & Compatibility
Important: Flint introduces a new architecture layout. Ensure your
llama.cppbuild includes support for theflintmodel architecture (PR #30928 or any release containing Flint support).
Hardware Recommendations
- RAM / VRAM: At least 28 GB โ 32 GB of combined system RAM or VRAM to hold the model and KV cache during inference.
- CPU / GPU Offload: Thanks to the sparse MoE structure (only ~2.5B active parameters per token), token generation speeds remain fast even when partially or completely offloaded to CPU threads.
Usage
1. Running with llama-cli
# Direct CLI test
llama-cli \
-m flint-40B-A2.5B-Q4_K_M.gguf \
-p "<|im_start|>user\nWrite a Python script to find all palindromic substrings in a given string.<|im_end|>\n<|im_start|>assistant\n" \
-n 1024 \
-t 16 \
--temp 1.0 \
--top-p 0.95 \
--top-k 20
2. OpenAI-Compatible Server (llama-server)
Start the local API server:
llama-server \
-m flint-40B-A2.5B-Q4_K_M.gguf \
-c 32768 \
--host 0.0.0.0 \
--port 8080 \
-ngl 99
Query the server using the standard OpenAI client:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key="not-needed")
response = client.chat.completions.create(
model="flint",
messages=[
{"role": "system", "content": "You are Flint, an expert coding agent."},
{"role": "user", "content": "How do I optimize a PostgreSQL query using composite indexes?"}
],
temperature=1.0,
top_p=0.95,
max_tokens=4096
)
print(response.choices[0].message.content)
Recommended Generation Parameters
For optimal coding and agentic reasoning performance, use the upstream recommended sampling settings:
- Temperature:
1.0 - Top-P:
0.95 - Top-K:
20 - Reasoning Budget: For difficult problems or agent traces, allow at least
16384to32768max tokens.
Acknowledgments & Credits
- Base model developed by Recursive Superintelligence, Inc.
- Quantized using llama.cpp
- Downloads last month
- 2,450
4-bit
Model tree for Abiray/flint-40B-A2.5B-Q4_K_M-GGUF
Base model
RecursiveSI/flint