请求加入做种队列,或现在用 pf download JRamirez-UAB/Sage-A1.5-35B-A3B-EXL3-3.00bpw-24GB 获取(CLI 指南)。
Install from this card, not from generic snippets. This is an EXL3 checkpoint with INT4 token embeddings: vLLM loads it only together with exllamav3 and our
vllm-quantpackplugin. Follow Requirements & install and Quick start; a plainpip install vllm, Transformers or SGLang cannot load it.
An unofficial community EXL3 quantization of InternScience/Sage-A1.5, the agentic 35B MoE (3B active parameters) built on Qwen3.6-35B-A3B, made with exllamav3 1.6.5: 3.00 bpw on the routed experts, 4 bits on attention, linear attention and the shared experts (-hq 1), a 6-bit lm_head, a 6-bit vision tower, a 4-bit MTP head and INT4 token embeddings. The calibration data includes agent steps written by the BF16 model itself on our sysadmin prompts.
On one RTX 3090 (24 GB) with vLLM's int4 KV cache it holds a 1.54 M-token KV pool at the full 262,144-token context: 4 simultaneous sessions of 236k tokens were measured, and 16 agents at once completed 27 of 32 sysadmin tasks. Its KL divergence against BF16 is low for 3 bits (0.015 / 0.017), and vision passed our image test 15/15.
Use the author's sampling, including
presence_penalty1.5. Without it this model loops in long answers (10 of 30 at temperature 0.6 in our test); with it, 0 of 30 at 0.8 and 1.0. This repo'sgeneration_config.jsonsets it, and vLLM applies it as the server default. See Sampling and repetition loops.
License: Apache-2.0, inherited from the base model (see
LICENSEandNOTICE). This is not an official release of the Sage-A1.5 authors.
Tested setup: RTX 3090 (24 GB, Ampere),
--max-model-len 262144. Capacity, battery, agents and long context: vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4, int4 KV (2026-11-02). Vision, MTP, loops and the final check from this repo: vLLM 0.34.0 + exllamav3 1.6.7 + vllm-quantpack 0.1.5 / 0.1.6 (2026-11-17), the stack the install section below gives (0.1.6 is needed for vision on vLLM 0.34). Only these setups have been tested.
presence_penalty 1.5, set in generation_config.json): 3/30 at temperature 0.6, 0/30 at 0.8 and 1.0 (without it: 9, 8 and 2).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. Our calibration traces include real sysadmin/agent conversations in Spanish, 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.
| GPU | Configuration | Context per session | Real concurrent sessions | KV cache | Speculative decoding | Pick it for |
|---|---|---|---|---|---|---|
| 24 GB (RTX 3090) | this repo, several users | 262,144 (text) | 4 × 236k measured, --max-num-seqs 16 |
int4, 1.54 M tokens | none | a shared server: several agents on one card |
| 24 GB (RTX 3090) | this repo, vision | 262,144 with vision | 3 × 262k by vLLM's count (not load-tested) | k8v4_per_token_head, 825,631 tokens |
MTP 2 | images, one or two users |
| 24 GB (RTX 3090) | branch 3.50bpw (16.83 GB), several users |
262,144 (text) | 4 × 236k measured | int4, 1.20 M tokens | none | lower KLD (0.0096 / 0.0108) and better programming; worse agent and tool-call results here |
| 16 GB | — | — | — | — | — | does not fit: 14.82 GB of weights |
For our own sysadmin agent we serve Ornith-1.5-35B-A3B EXL3 3.00, a sibling quantization with the same recipe and the same 24 GB budget: it scored higher in our agent, programming and tool tests (see Known model behaviour).
| File | What it is |
|---|---|
model-00001-of-00002.safetensors, model-00002-of-00002.safetensors, model.safetensors.index.json |
EXL3 weights (14.82 GB) and their index |
quantization_config.json |
exllamav3's per-tensor storage record (bits per tensor, INT4 embedding layout; calibration size only, no text) |
config.json, generation_config.json |
model config; sampling defaults from the base model card (temperature 1.0, top_k 20, top_p 0.95, presence_penalty 1.5) |
chat_template.jinja, tokenizer.json, tokenizer_config.json |
chat template and tokenizer of the base model |
preprocessor_config.json, processor_config.json, video_preprocessor_config.json |
image/video processor of the base model |
LICENSE, NOTICE |
Apache-2.0 text and the list of changes made to the base model |
SHA256SUMS |
SHA-256 of every file above except this card |
Not included: the BF16 reference, the calibration data (internal), the plugin (install it from PyPI, see below).
Unless stated otherwise: one RTX 3090 24 GB (no other use), vLLM 0.31.0 + exllamav3 1.6.5 + vllm-quantpack 0.1.4, --max-model-len 262144, --kv-cache-dtype int4_per_token_head, --max-num-seqs 8 for the battery, measured on 2026-11-02 with the several users settings.
qbench, against BF16)| Trace | KLD mean | KLD median | KLD p90 | Perplexity (BF16) | EXL3 3.50, same recipe: KLD mean · perplexity |
|---|---|---|---|---|---|
| opencode agent trace (ours, 24 conversations) | 0.0152 | 0.0053 | 0.0394 | 3.2160 (3.1954) | 0.0096 · 3.2118 |
public (qbench_prompts_gen.json, turboderp) |
0.0171 | 0.0025 | 0.0481 | 1.9941 (1.9784) | 0.0108 · 1.9857 |
Measured on these exact files (INT4 embedding included, exllamav3 1.6.7, 2026-11-17); with BF16 embeddings the same conversion measured 0.0147 / 0.0167. For reference, our Ornith-1.5-35B-A3B 3.00 with the same recipe measures 0.0332 / 0.0366 against its own BF16 on the same traces.
| Configuration | --kv-cache-memory-bytes |
KV pool reported by vLLM | Real concurrent sessions | Peak used |
|---|---|---|---|---|
| several users: text, no MTP, int4 KV, 8192-token chunks | 9018005258 | 1,543,326 tokens | 4 sessions of 235,929 tokens at once, 0 preemptions | 23,742 MiB, 374 MiB free |
vision: MTP 2, k8v4_per_token_head KV, 4 sequences |
8100000000 | 825,631 tokens (3.15 × 262,144) | not load-tested | 23,472 MiB |
With 9,405,978,378 bytes the card ran out of memory, so the several users value is the largest that kept ≥300 MiB free.
| Test | Result |
|---|---|
Tool calls, real opencode request, 3 cases × 20 (xhigh) |
51/60 correct (20/20, 15/20, 16/20), 53 valid calls, 0 errors |
| Tool calls, battery | 28/30 valid and correct, 0 errors |
Agent tasks, opencode run, 10 sysadmin tasks × 3 runs |
8/10, 8/10, 8/10 = 24/30 |
| Programming tasks (12 × 3) | 11/12, 11/12, 10/12 (1,460-1,700 s per run) |
| Needle, 9 neutral facts | 64k 9/9 · 128k 9/9 · 255k 9/9 |
| Needle, 8 facts in one prompt | 64k 8/8 · 128k 8/8 · 241k 8/8 |
| Decode, 1 / 2 / 4 / 8 requests | 94.1 / 106.2 / 242.5 / 344.7 tok/s |
| Prefill / decode near 15k · 64k · 128k · 260k | 5,322 / 91.6 · 4,111 / 80.7 · 3,055 / 69.6 · 2,011 / 54.8 tok/s |
| Agents at once (tasks passed, median time per task) | 4: 8/8, 78 s · 8: 16/16, 148 s · 16: 27/32, 301 s (6 timeouts) |
| Time to first token of a new 32k prompt while 16 agents run | median 7.7 s |
| Test | Result |
|---|---|
| Our 4-image test (screenshots of a failing systemd unit, a chart, an nftables listing and a port conflict) | 15/15 |
| Second turn about the same image (prefix cache) | correct, 0.7 s |
| One image after a 151,013-token prompt | correct, 58.9 s |
| Peak VRAM used | 23,506 MiB |
One request at a time, 512 generated tokens per prompt, the card's sampling (temperature 1.0, top_p 0.95, top_k 20, presence_penalty 1.5), k8v4_per_token_head KV with an 8,100,000,000-byte pool, text only. Acceptance = accepted / proposed draft tokens.
| Prompt | No MTP: decode | MTP 1: decode (acceptance) | MTP 2: decode (acceptance) |
|---|---|---|---|
| 14,847 tokens | 88.6 tok/s | 104.5 tok/s (0.63) | 122.9 tok/s (0.54) |
| 64,211 tokens | 77.6 tok/s | 95.0 tok/s (0.69) | 110.0 tok/s (0.57) |
| 128,753 tokens | 66.3 tok/s | 79.6 tok/s (0.65) | 85.9 tok/s (0.48) |
| 260,954 tokens | 51.8 tok/s | 60.4 tok/s (0.63) | 71.8 tok/s (0.54) |
| KV pool | 963,764 tokens | 847,514 tokens | 823,527 tokens |
| Lowest free VRAM | 1,748 MiB | 1,146 MiB | 1,002 MiB |
Prefill near 64k / 128k / 261k: 3,928 / 3,029 / 1,995 tok/s without MTP and 3,798 / 2,803 / 1,827 tok/s with MTP 2. With 4 sessions of 15k at once, total decode was about 188 tok/s without MTP, 129 with MTP 1 and 143 with MTP 2: MTP pays off for one or two users, not for a shared server.
5 long Spanish sysadmin questions × 6 runs per temperature, up to 16,000 tokens, top_p 0.95 and top_k 20, several users settings with 8 sequences; a loop = more than 30 % repeated word 8-grams.
| Temperature | 0.6 | 0.8 | 1.0 |
|---|---|---|---|
With presence_penalty 1.5 (vLLM 0.34.0, 2026-11-17): loops / 30 |
3 | 0 | 0 |
| Answers that finished before 16,000 tokens / 30 | 27 | 28 | 30 |
| Empty answers / 30 | 3 | 2 | 0 |
Without it (vLLM 0.34.0, presence_penalty 0 sent explicitly, 2026-11-17): loops / 30 |
9 | 8 | 2 |
| Without it: answers that finished / 30 | 21 | 22 | 28 |
| Without it: empty answers / 30 | 9 | 8 | 2 |
| Without it, earlier stack (vLLM 0.31.0, 2026-11-02): loops / 30 | 10 | 5 | 1 |
The control without the penalty ran on the same engine version, so the drop in loops comes from presence_penalty 1.5 and not from the newer vLLM. A loop here usually ends as an empty answer: the model keeps repeating inside its reasoning until the 16,000-token limit. Note that a request that omits presence_penalty gets 1.5 from this repository's generation_config.json; to measure without it, send 0.
Use temperature 1.0 with presence_penalty 1.5, as the base model card recommends. generation_config.json sets both and vLLM uses them as the server defaults; a client that sends its own presence_penalty (or temperature) overrides them.
presence_penalty: see the table above.3.50bpw, load it with --revision 3.50bpw): lower KLD (0.0096 / 0.0108) and 35/36 in programming, but a smaller pool (1.20 M tokens), 7/10 × 3 in agent tasks, and only 5/20 correct in the weak tool-call case. Not the default here; its own card on the branch has the full results.Before you install (checked on our Ubuntu 26.04 host on 2026-11-17):
nvcc): exllamav3 1.6.7 publishes no wheel for torch 2.14 (the torch of vLLM 0.34), so it is built from source below (about 20 minutes with 8 parallel jobs), and FlashInfer 0.7.3 has no prebuilt kernels yet, so it compiles them the first time vLLM starts.build-essential). We use uv's own Python (--managed-python), which includes the headers Triton needs.uv cache clean frees it), plus 15 GB for the model.EXL3 is not a native vLLM format. vllm-quantpack (ours, on PyPI) loads it through vLLM's plugin entry point: EXL3 linear, embedding (INT4/INT8) and MoE layers through exllamav3's kernels, the vision tower, the MTP head, a fixed int4 KV cache and the k8v4_per_token_head KV type. Version 0.1.6 or later is required (k8v4_per_token_head, and the vision tower on vLLM 0.34).
uv venv --python 3.12 --managed-python venv
uv pip install --python venv/bin/python vllm==0.34.0 --torch-backend=auto # torch 2.14.0+cu132
uv pip install --python venv/bin/python ninja packaging setuptools wheel
git clone --depth 1 --branch v1.6.7 https://github.com/turboderp-org/exllamav3 exllamav3-src
export CUDA_HOME=/usr/local/cuda-13.2 PATH=/usr/local/cuda-13.2/bin:$PATH
TORCH_CUDA_ARCH_LIST="8.6" MAX_JOBS=8 uv pip install --python venv/bin/python --no-build-isolation ./exllamav3-src # 8.6 = RTX 3090; add yours
uv pip install --python venv/bin/python "vllm-quantpack>=0.1.6"
venv/bin/python -c "import torch; from exllamav3.ext import exllamav3_ext; print(torch.__version__, torch.cuda.get_device_name(0))"
Several users (the configuration of the battery, capacity and loop tables; text only, no MTP):
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_USE_FLASHINFER_SAMPLER=0 VLLM_DISABLE_SHARED_EXPERTS_STREAM=1
vllm serve JRamirez-UAB/Sage-A1.5-35B-A3B-EXL3-3.00bpw-24GB \
--served-model-name sage \
--language-model-only \
--max-model-len 262144 \
--kv-cache-dtype int4_per_token_head \
--kv-cache-memory-bytes 9018005258 \
--max-num-seqs 16 \
--max-num-batched-tokens 8192 \
--enable-prefix-caching \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
Vision with MTP 2:
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True VLLM_USE_FLASHINFER_SAMPLER=0 VLLM_DISABLE_SHARED_EXPERTS_STREAM=1
vllm serve JRamirez-UAB/Sage-A1.5-35B-A3B-EXL3-3.00bpw-24GB \
--served-model-name sage \
--max-model-len 262144 \
--kv-cache-dtype k8v4_per_token_head \
--kv-cache-memory-bytes 8100000000 \
--max-num-seqs 4 \
--max-num-batched-tokens 8192 \
--enable-prefix-caching \
--speculative-config '{"method":"mtp","num_speculative_tokens":2}' \
--reasoning-parser qwen3 \
--enable-auto-tool-choice --tool-call-parser qwen3_coder
On a card that also drives a display, lower --kv-cache-memory-bytes by what the desktop uses. On 48 GB GPUs raise it: the KV of this model is ≈5.8 KB per token in int4 (only 10 of the 40 layers are full attention, with 2 KV heads).
limit.context must match --max-model-len (262144 above).
{
"$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": {
"sage": {
"name": "Sage-A1.5 EXL3 3.00 (local)",
"tool_call": true,
"temperature": true,
"limit": { "context": 262144, "output": 32768 }
}
}
}
},
"agent": {
"build": { "model": "local-vllm/sage", "temperature": 1.0 },
"plan": { "model": "local-vllm/sage", "temperature": 1.0 }
}
}
"temperature": true in the model, otherwise opencode sends no temperature to a custom model.presence_penalty, so the server default from generation_config.json (1.5) applies.output: 32768 opencode compacts the history at about context − 32k tokens of input, before vLLM rejects the request.presence_penalty (they were measured before the loop test): the agent results with it are not measured.VLLM_DISABLE_SHARED_EXPERTS_STREAM=1 is required. The fused exllamav3 MoE kernel needs the whole GPU; otherwise vLLM runs the shared expert on a parallel CUDA stream and decoding hangs. The plugin sets it, but export it yourself too.nvidia-smi --query-gpu=memory.free. Size the KV cache with --kv-cache-memory-bytes, not --gpu-memory-utilization.max_tokens: with a small max_tokens the answer can come back empty; allow ≥ 2,000 tokens or disable reasoning with chat_template_kwargs: {"enable_thinking": false}.quantization_config.bits not being an integer is expected (EXL3 bits is an average).--tool-call-parser qwen3_coder and --reasoning-parser qwen3.| Step | Setting |
|---|---|
| Source | InternScience/Sage-A1.5 revision 0e3205cf; chat template, tokenizer and processors unchanged |
| Tool | exllamav3 1.6.5 convert.py, RTX PRO 6000 Blackwell |
| Routed experts | 3.00 bpw (-b 3.00) |
| Attention, linear attention, shared experts | 4 bits (-hq 1) |
lm_head / vision tower / MTP head |
6 / 6 / 4 bits |
| Calibration | 589 rows built from about 600 agent steps written by the BF16 model on our internal sysadmin prompts plus real conversation prefixes; not published, and no text is stored in the weights |
| Token embeddings | INT4 per row with BF16 scales: python -m vllm_quantpack.tools.embed_quant SRC DST --bits 4 on the converted checkpoint |
Artifact integrity
SHA256SUMS lists every file; the verifier compares the repo with our local copy byte for byte before publication.__metadata__; quantization_config.json holds only bit widths, tensor layout and the calibration size (rows and columns).Quantization
qbench on two traces, on these exact files (Results).Runtime
Scope: results apply to the stacks, the RTX 3090 and the settings stated above; other setups are not tested.
presence_penalty 1.5, the request-field check with opencode captures, concurrency in the vision configuration, reasoning problems at xhigh, a detailed vision table (only our 4-image test), GPUs other than the RTX 3090 for serving, and the base model's scientific benchmarks on this quantization. The calibration and the opencode trace are internal, so those KLD numbers cannot be reproduced outside; the public-trace KLD can.k8v4_per_token_head are our own plugin code, not upstream vLLM.Reports of installations, both working and failed ones, are very welcome in the Community tab: GPU(s), driver, vLLM version, the full command line and the result (speed, context, or the error).
qbench and the public trace); EXL3 is based on QTIP (Tseng et al.).NOTICE.model-00001-of-00002.safetensors 7.5 GBmodel-00002-of-00002.safetensors 7.3 GB有文件?提交种子。
提交种子InternScience/Sage-A1.5