请求加入做种队列,或现在用 pf download JRamirez-UAB/Flint-40B-A2.5B-EXL3-3.88bpw-24-48GB 获取(CLI 指南)。
Experimental. Read this card before installing. vLLM has no Flint model: this checkpoint loads only with our
flint_vllmplugin, theqwen38_exl3_visionplugin (EXL3 MoE kernels), exllamav3 and the OrcaSAQ2 plugin, installed as in Requirements & install, and it must be served with--compilation-config '{"cudagraph_mode":"PIECEWISE"}'(see Important notes). A plainpip install vllm, Transformers or SGLang cannot load it.
An unofficial community EXL3 quantization of RecursiveSI/flint, Recursive's mixture-of-experts model
for coding agents (39.8B parameters, about 2.5B active per token, 262,144-token context). It was made with exllamav3
1.6.5 and our Flint port for it: 3.88 bits per weight on average with a per-layer bit allocation, a 6-bit lm_head and BF16 token embeddings, 20.1 GB in
total. The calibration includes real sessions of our sysadmin agent (see Quantization recipe).
What it is good at, and what it is not (measured on 2026-10-26/27; details in Results):
License: Apache-2.0, inherited from RecursiveSI/flint. This is not an official release of Recursive.
Tested setup: NVIDIA L40S (48 GB, Ada) for capacity, the test battery, speculative decoding and the loop test; NVIDIA RTX PRO 6000 Blackwell Max-Q (96 GB) for the KL divergence and the BF16 tool-call control; NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB, power limit 300 W) for the long-context comparison against BF16; vLLM 0.31.0 + exllamav3 1.5.1 + the OrcaSAQ2 plugin (commit
7ddffb12, with the patch inpatches/) + ourqwen38_exl3_visionandflint_vllmplugins (2026-10-26/27). The 24 / 32 / 48 GB sizes were measured on a 48 GB GPU with the KV cache sized for each size and the VRAM peak checked against it (see Capacity per GPU size). Only this setup has been tested.
Our focus. We quantize and evaluate models for one use case: a local Linux system-administration agent (opencode with tool calling) for a university IT department, used in Spanish. The calibration of this checkpoint includes real sessions of that agent (described in Quantization recipe), and our quality checks (tool calls with the real opencode request, agent tasks with real command execution, long-context retrieval, long answers in Spanish) reflect that use. KL divergence is also reported on turboderp's public trace, so it can be compared and reproduced. Numbers for other domains or languages may differ.
Why we publish it although it is not our daily model: our service needs vision, which Flint does not have, and it needs a custom plugin and a non-default vLLM option. As a text-only agent it did very well on our tests, so it is here for anyone who wants to try it, with every problem we found written down.
| GPU size | Context per session | Full-context sessions | KV cache | Speculative decoding |
|---|---|---|---|---|
| 24 GB (Ada or newer) | 224,256 | 1 (pool of 224,994 tokens) | fp8, 3,425,236,418 B | none |
| 32 GB | 262,144 | 3 (pool of 788,164 tokens) | fp8, 11,897,059,409 B | none |
| 48 GB | 262,144 | 5 (pool of 1,700,099 tokens) | fp8, 25,662,429,593 B | none |
There is one revision (main). On 24 GB the full 262,144-token context does not fit; a uniform -hq 3 build (0.2 GB smaller) reached 257,024 tokens
there, but with 7–11 % higher KL divergence (see Known model behaviour and discarded options).
model-0000{1,2,3}-of-00003.safetensors, model.safetensors.index.json, config.json (quantization_config: exl3, 3.88 bits, head 6),
quantization_config.json (per-tensor storage), tokenizer.json, tokenizer_config.json, chat_template.jinja and generation_config.json
(temperature 1.0, top_p 0.95, top_k 20, the author's recommended sampling).plugin/flint_vllm/: our vLLM plugin with the Flint model (attention sinks, sliding window of 513, NoPE full-attention layers, sigmoid MoE router)
and the interm_div compensation of layers 46–48 (see Quantization recipe).plugin/qwen38_exl3_vision/: our vLLM plugin with the EXL3 MoE kernels used for Flint's routed experts.patches/orcasaq2-7ddffb12.diff: the changes our tested OrcaSAQ2 has on top of commit 7ddffb12.patches/exllamav3-1.6.5-architecture-flint.py: our Flint port for exllamav3 1.6.5 (used for the conversion and the KL divergence; not part of exllamav3).setup.sh: the install below as one script. LICENSE (Apache-2.0, from the base model), SHA256SUMS.KL divergence and perplexity against the BF16 original with exllamav3's qbench and our exllamav3 port (2026-10-27). Traces: our own Spanish sysadmin
trace, a trace built from real opencode sessions, and turboderp's public qbench_prompts_gen.json, re-tokenized with Flint's tokenizer. No session in the
calibration is in these traces, but the opencode trace shares opencode's system prompt with it; the public trace shares nothing with it.
| Trace | KLD mean | KLD median | KLD p90 | PPL BF16 | PPL EXL3 |
|---|---|---|---|---|---|
| Our sysadmin trace | 0.0350 | 0.0097 | 0.0881 | 3.6933 | 3.6928 |
| opencode sessions | 0.0255 | 0.0083 | 0.0659 | 4.5368 | 4.5056 |
| turboderp's public trace | 0.0254 | 0.0050 | 0.0694 | 2.6741 | 2.6857 |
How we got here (KL divergence on the sysadmin / opencode / public traces, all measured against the same BF16 logits):
| Build | Size | KLD |
|---|---|---|
-b 3.7, built-in calibration |
18.0 GB | 0.0651 / 0.0470 / 0.0459 |
-b 3.7 -hq 3, built-in calibration |
19.9 GB | 0.0430 / 0.0301 / 0.0305 |
-hq 3 + agent-session calibration |
19.9 GB | 0.0382 / 0.0272 / 0.0282 |
| per-layer recipe, built-in calibration | 20.1 GB | 0.0366 / 0.0271 / 0.0263 |
| per-layer recipe + agent-session calibration (this repo) | 20.1 GB | 0.0350 / 0.0255 / 0.0254 |
For comparison, our 27B dense quantizations at 3.5–3.85 bpw are around 0.016 on the public trace: with only 2.5B active parameters per token, Flint loses more at a similar bitrate.
The port was checked against the vLLM plugin with both in BF16 (top-1 token identical in 98.4–99.6 % of positions on three texts), and the EXL3 served by vLLM against exllamav3 running natively (same per-layer residuals).
Measured on an L40S with the KV cache sized for each GPU size; the VRAM limit of each size assumes the 460 MiB a real GPU of that size reserves for the driver.
KV fp8, cudagraph_mode PIECEWISE, --max-num-seqs 16 during the measurement. "Pool" is the GPU KV cache size vLLM reports at start-up; "full-context
sessions" = sessions that really ran at the same time without waiting. Measured with the per-layer recipe and the built-in calibration (2026-10-26), which
has the same tensors, bit rates and size as this checkpoint; not re-run with the final weights.
| GPU size | --max-model-len |
--kv-cache-memory-bytes |
KV pool (tokens) | Full-context sessions | VRAM peak | Really free at peak |
|---|---|---|---|---|---|---|
| 24 GB | 224,256 | 3,425,236,418 | 224,994 | 1 | 23,501 MiB | 615 MiB |
| 32 GB | 262,144 | 11,897,059,409 | 788,164 | 3 | 31,581 MiB | 727 MiB |
| 48 GB | 262,144 | 25,662,429,593 | 1,700,099 | 5 (vLLM's pool allows 6; the sixth waited) | 44,701 MiB | 907 MiB |
Same settings as the battery below (32 GB size, L40S). The BF16 original ran twice the same day as the control, on an RTX PRO 6000 Max-Q with a 131,072-token context.
| Test | This checkpoint | BF16 original (2 runs) |
|---|---|---|
| Tool calls, battery | 30/30 | 28/30, 30/30 |
| Tool calls, replay of the real opencode request (3 cases × 20) | 60/60 | 56/60, 59/60 |
262,144-token context, KV fp8 with the 48 GB size, --max-num-seqs 4, temperature 1.0 (top_p 0.95, top_k 20), PIECEWISE graphs, L40S, 2026-10-27.
Measured with the per-layer recipe and the built-in calibration (same size and format as this checkpoint); the tool calls of the final weights are in the
table above. The needle and the concurrent sessions are given 16,000 and 8,000 output tokens because the model always reasons (the battery's defaults,
4,000 and 200 without reasoning, gave a false 0/8).
| Test | Result |
|---|---|
| Smoke (short answer; 4 long Spanish answers, 8,000-token limit) | short answer OK; the 4 long answers finished (2,651–7,590 tokens); no CJK |
| Speed (decode, 1 / 2 / 4 / 8 requests) | 61.3 / 122.1 / 242.4 / 428.1 tok/s |
| Tool calls, real opencode request | battery 30/30; replay 54/60 (the final weights: 60/60, table above) |
Reasoning (48 problems, xhigh requested) |
44/48, 44,646 reasoning tokens (median 904), none cut |
| Needle (8 facts, 16,000 output tokens) | 64k 7/8 · 128k 8/8 · 241k 0/8 |
| Concurrent sessions (8 × 30k, 8,000 output tokens) | 2 of 8 returned all 8 facts |
| Agent tasks (opencode, 10 sysadmin tasks × 3 runs, temperature 1.0) | 8/10 · 7/10 · 7/10 = 22/30 |
| Games | 45/48 points, 3 of 4 run |
The chat template has no reasoning-effort setting: the xhigh the battery sends is ignored. Run-to-run noise in the replay and the agent tasks is large:
the same build can differ by several points between runs.
Needle with 8 facts, temperature 0 unless stated, 16,000 output tokens, PIECEWISE graphs, the answer and the reasoning captured (2026-10-26). Measured with an earlier 3.70 bpw build (built-in calibration, uniform bits); the last row compares with the BF16 original and shows the behaviour belongs to the model.
| Context | Text (seed) | GPU | Result |
|---|---|---|---|
| 128k | battery text | RTX PRO 6000 | 8/8 in the answer, 1,099–1,240 tokens |
| 128k | another text | L40S | 6/8 in the answer, 1,393 tokens |
| 128k | another text | RTX PRO 6000 | no answer: after 16,000 tokens it is still looking for the eighth fact (it found 7) |
| 241k | battery text | RTX PRO 6000 | no answer after 16,000 tokens |
| 239k, temperature 1.0, 20,000 tokens | another text | RTX PRO 6000 | EXL3 and BF16 original behave the same: both find 7 of 8 in the reasoning and use the whole budget deliberating about the missing one |
So the facts are mostly found, but the model does not give up on a fact it cannot find: it keeps re-reading in its reasoning instead of answering with what it has. The battery run of the per-layer recipe gave 7/8 at 64k, 8/8 at 128k and 0/8 at 241k.
L40S, 262,144-token context, --max-num-seqs 8, KV fp8, PIECEWISE graphs, per-layer recipe with the built-in calibration (2026-10-27). Flint has no MTP
head; EAGLE3 drafts were not tried.
| Variant | 1 / 2 / 4 / 8 requests (tok/s) | Acceptance length |
|---|---|---|
| none (Quick start) | 62.3 / 123.9 / 245.3 / 432.4 | – |
| n-gram, 4 tokens | 66.5 / 127.4 / 227.4 / 378.2 | 3.06 |
| n-gram, 8 tokens | 68.0 / 130.0 / 204.0 / 317.4 | 1.94 |
n-gram speculation helps a single request a little but is slower with 4 or 8; the Quick start uses none. With vLLM's default FULL CUDA graphs a single request decoded at about 93 tok/s on the earlier build, but FULL graphs break long contexts (see Important notes).
L40S, KV fp8, 2026-10-27, this checkpoint: 5 long Spanish sysadmin prompts × 6 runs per temperature, up to 16,000 tokens, top_p 0.95 and top_k 20; a loop = more than 30 % repeated word 8-grams; an empty answer = the reasoning used the whole budget.
| Temperature | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
|---|---|---|---|---|---|---|
| Loops / 30 | 0 | 0 | 0 | 0 | 0 | 0 |
| Answers that finished before 16,000 tokens / 30 | 30 | 30 | 30 | 30 | 30 | 30 |
| Empty answers / 30 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mean tokens per answer | 3,017 | 3,104 | 2,650 | 3,416 | 3,637 | 3,339 |
No loops at any temperature. Use the author's sampling, which is this repo's generation_config.json: temperature 1.0, top_p 0.95, top_k 20.
enable_thinking switch; requests that ask for no reasoning still get a reasoning block.
Do not send chat_template_kwargs: {"enable_thinking": false}: the model reasons anyway and vLLM's qwen3 parser then leaves the reasoning out of the
response, so a cut answer comes back completely empty. Budget the
output accordingly (the author recommends at least 32,768 tokens for hard problems) and keep the returned reasoning_content in the conversation history.--enforce-eager and cudagraph_mode PIECEWISE both fix it.-hq 3 (19.9 GB): fits 257,024 tokens on 24 GB instead of 224,256, but its KL divergence is 7–11 % higher with the same
calibration (table in Quantization quality); tool calls were the same.Before you install (checked on a clean Ubuntu 24.04 host with an A40, 2026-10-28):
uv venv --python 3.12 uses the system Python 3.12 when there is one, and Triton
compiles a small C helper every time vLLM starts; without the headers every vllm serve stops with
fatal error: Python.h: No such file or directory. On Debian/Ubuntu: sudo apt-get update && sudo apt-get install -y python3.12-dev build-essential.nvcc at start and fails with
Could not find nvcc and default cuda_home='/usr/local/cuda' doesn't exist).uv cache clean frees it), plus the model.EXL3 is not a native vLLM format and vLLM has no Flint model. One plugin is loaded through vLLM's vllm.general_plugins entry point:
uv venv --python 3.12 venv
uv pip install --python venv/bin/python vllm==0.31.0 --torch-backend=auto # torch 2.13.0
uv pip install --python venv/bin/python flashinfer-cubin==0.7.0.post1 flashinfer-jit-cache==0.7.0.post1+cu130 \
--extra-index-url https://flashinfer.ai/whl/ --extra-index-url https://flashinfer.ai/whl/cu130/ --index-strategy unsafe-best-match # FlashInfer kernels
W=exllamav3-1.5.1+cu132.torch2.13.0-cp312-cp312-linux_x86_64.whl
curl -L -o /tmp/$W "https://github.com/turboderp-org/exllamav3/releases/download/v1.5.1/${W/+/%2B}"
uv pip install --python venv/bin/python /tmp/$W vllm-quantpack
venv/bin/python -c "import torch; from exllamav3.ext import exllamav3_ext; import qwen38_exl3_vision, flint_vllm; print(torch.__version__, torch.cuda.get_device_name(0))"
Plugin (2026-10-28): vllm-quantpack (
pip install vllm-quantpack) replaces the OrcaSAQ2 +qwen38_exl3_visionplugins +flint_vllm. The measurements in this card were made with the previous stack (OrcaSAQ2 + our plugins); this checkpoint was then served again with vllm-quantpack 0.1.0 following this card on a clean install (text, image and tool calls checked). The previous files stay inplugin/andpatches/for reference.
24 GB GPU (Ada or newer), 224,256-token context, up to 4 concurrent sequences:
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_USE_FLASHINFER_SAMPLER=0 VLLM_DISABLE_SHARED_EXPERTS_STREAM=1
vllm serve JRamirez-UAB/Flint-40B-A2.5B-EXL3-3.88bpw-24-48GB \
--served-model-name flint \
--max-model-len 224256 \
--kv-cache-dtype fp8_e4m3 \
--kv-cache-memory-bytes 3425236418 \
--max-num-batched-tokens 2048 \
--max-num-seqs 4 \
--enable-prefix-caching \
--attention-backend TRITON_ATTN \
--compilation-config '{"cudagraph_mode":"PIECEWISE"}' \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser glm47
--max-model-len 262144 --kv-cache-memory-bytes 11897059409.--max-model-len 262144 --kv-cache-memory-bytes 25662429593 --max-num-seqs 8.Tested with opencode 1.18.35. Tool calling was measured with the real opencode request (its long system prompt and 11 tools, captured and replayed against
vLLM) and with opencode run agent tasks; context, speed and memory tests were run directly against the vLLM API.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"local-vllm": {
"npm": "@ai-sdk/openai-compatible",
"name": "local vLLM",
"options": { "baseURL": "http://127.0.0.1:8000/v1" },
"models": {
"flint": {
"name": "Flint EXL3 (local)",
"tool_call": true,
"temperature": true,
"limit": { "context": 224256, "output": 32768 }
}
}
}
},
"agent": {
"build": { "model": "local-vllm/flint", "temperature": 1.0 },
"plan": { "model": "local-vllm/flint", "temperature": 1.0 }
}
}
"temperature": true in the model, otherwise opencode sends no temperature to a custom model.limit.context: 224,256 on 24 GB, 262,144 on 32 or 48 GB (the --max-model-len you serve with).limit.output 32,768: the model always reasons; a small output limit cuts answers before they start.--compilation-config '{"cudagraph_mode":"PIECEWISE"}' is required. With vLLM's default (FULL CUDA graphs) decoding breaks beyond about 64k tokens of
context: the model keeps generating without ever answering. PIECEWISE keeps the attention (sliding window + sinks) out of the graphs and fixes it;
--enforce-eager also works.--attention-backend TRITON_ATTN: the backend we tested (it supports the attention sinks and the 513-token sliding window).--kv-cache-memory-bytes, never with --gpu-memory-utilization. Read the real headroom with
nvidia-smi --query-gpu=memory.used,memory.free --format=csv; a desktop session on the same GPU eats the margin in the capacity table.int16), not
parameters. The Configuration Parsing Warning "quantization_config.bits must be an integer" is expected: for EXL3 bits is an average.VLLM_DISABLE_SHARED_EXPERTS_STREAM=1 is what we tested with EXL3 MoE models. Use --tool-call-parser glm47 and --reasoning-parser qwen3.| Step | What we did |
|---|---|
| Conversion | exllamav3 1.6.5 convert_model with our Flint port (patches/exllamav3-1.6.5-architecture-flint.py): -b 3.7 -hb 6 plus a per-tensor recipe (-rcp), 3.88 bpw on average, lm_head 6 bits, embeddings BF16, codebook mul1 |
| Bit allocation | We started from the per-tensor allocation exllamav3's -hq 3 option chose (3.83 bpw) and changed the routed experts of single layers, guided by the per-layer error in the conversion log: layer 46 (the largest error) to 6 bits, layer 48 to 5, layers 10–11 to 4, and layers 18–21 to 3. No tensor below 3 bits |
| Calibration (2026-10-27) | 563 rows, about 1.07 M tokens: exllamav3's built-in set (250 rows × 2,048 tokens: web, code, multilingual, wiki) first, then real sessions of our Linux system-administration agent (opencode with tool calling, mostly in Spanish) from a university IT department, through the model's chat template with opencode's real system prompt and 11 tools. 400 conversations from a pool of about 2,600 sessions: 200 real session prefixes, with the real outputs of the commands the agent ran, each cut before its first failed tool call; and 200 next steps written by the BF16 original from real session contexts (reasoning and tool call; nothing was executed). The conversation parts are packed into 309 rows, and 4 full sessions with the system prompt (up to 13,094 tokens) are added. Sessions in our evaluation traces were excluded. The data stays on our servers; the weights only carry the resulting quantization, and quantization_config.json records only the row and column counts |
| Hardware | one RTX PRO 6000 Blackwell Max-Q |
Layers 46–48 of Flint carry very large activations (the layer-46 MLP output reaches about 25,000), which overflow the fp16 intermediates of the EXL3 kernels.
The port computes the MLP intermediates in fp32 and loads the up projections of those layers divided by 128 (interm_div); the routed experts are stored
already divided, and flint_vllm multiplies their output back by 128 (and divides and multiplies the shared expert at load time and at run time).
Tokenizer, chat template and generation_config.json unchanged from the base model.
Artifact integrity
SHA256SUMS); the checkpoint was downloaded back from this repo, installed with setup.sh
in a new environment and served with the Quick start.Quantization
qbench on three traces (table above).Chat template
glm47 (60/60 in the replay of the real opencode request).Runtime
Scope: results apply to this checkpoint, the stack above (vLLM 0.31.0 + exllamav3 1.5.1 + OrcaSAQ2 7ddffb12 with our patch + qwen38_exl3_vision +
flint_vllm), the L40S / RTX PRO 6000 GPUs and the settings stated above; other setups are not tested.
interm_div scale and the CUDA graph problem).I would be grateful for reports of installations of this checkpoint, both working and failed ones, especially on real 24 and 32 GB GPUs. Please open a discussion in the Community tab with your GPU, driver, vLLM / exllamav3 / plugin versions, the full command line and the result.
qbench and the public evaluation trace;
EXL3 is based on QTIP (Tseng et al.).flint_vllm started from vLLM's AFMoE model.plugin/flint_vllm/, plugin/qwen38_exl3_vision/, patches/, setup.sh (Apache-2.0; the exllamav3 port in patches/ follows exllamav3's MIT license).Apache-2.0, same as the base model. This is a community quantization, not an official release of Recursive. exllamav3, vLLM and OrcaSAQ2 are not redistributed here; install them from their repositories under their own licenses.
model-00002-of-00003.safetensors 8.6 GBmodel-00001-of-00003.safetensors 8.4 GBmodel-00003-of-00003.safetensors 3.1 GB有文件?提交种子。
提交种子RecursiveSI/flint