SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Qwen3-8B-CC-SFT-v2

by Liangzhidanta liangzhidanta/Qwen3-8B-CC-SFT-v2

Qwen3-8B-CC-SFT-v2 is an open-weight model for text generation from Liangzhidanta, released under Apache License 2.0. It has 8.2B parameters and a 40,960-token context. At 16-bit it needs about 19.7 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 714 downloads a month.

English | 简体中文 Qwen3-8B-CC-SFT-v2 is a failure-targeted continued-SFT checkpoint designed to improve coding-agent state preservation and continuation across Claude Code native context compaction.

Parameters8.2B
Context40,960
Weights16.4 GB
Licenseapache-2.0
AccessOpen weights
Monthly Downloads714

Runs On

What it takes to serve Qwen3-8B-CC-SFT-v2 (8.2B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 16.4 GB 19.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 8.2 GB 9.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 4.1 GB 4.9 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 30, 2026.

Qwen3-8B-CC-SFT-v2 on every accelerator the SAVRN Index prices, at every precision

Model Card

By Liangzhidanta, published under apache-2.0, revision 9eb42d62096c.

English | 简体中文 Qwen3-8B-CC-SFT-v2 is a failure-targeted continued-SFT checkpoint designed to improve coding-agent state preservation and continuation across Claude Code native context compaction. It is initialized from Qwen3-8B-CC-SFT-v1 and trained on compact-aware, context-correct supervision distilled from GLM-5.3 under real Claude Code native compaction. Best observed canonical303 Pass@1: 52.48% (159/303) — 4090 run of this same checkpoint at T=0.5 (temperature selected on an independent dev set; see the table below). Best observed configurations of this same checkpoint: - T=0.5 was selected on an independent 60-task development set (task-id and repo disjoint from canonical303), then…

Read Liangzhidanta's full model card

English | 简体中文

Qwen3-8B-CC-SFT-v2 is a failure-targeted continued-SFT checkpoint designed to improve coding-agent state preservation and continuation across Claude Code native context compaction. It is initialized from Qwen3-8B-CC-SFT-v1 and trained on compact-aware, context-correct supervision distilled from GLM-5.3 under real Claude Code native compaction.

Key Result

Best observed canonical303 Pass@1: 52.48% (159/303) — 4090 run of this same checkpoint at T=0.5 (temperature selected on an independent dev set; see the table below).

Best observed configurations of this same checkpoint:

Configuration Hardware Solved Pass@1
T=0.5 (dev-set selected) 4090 (TP=2) 159/303 52.48%
T=0.3, independent reproduction A100-80G (TP=1) 154/303 50.83%
T=0.3, original paired run 4090 (TP=2) 144/303 47.52%
  • T=0.5 was selected on an independent 60-task development set (task-id and repo disjoint from canonical303), then evaluated once on canonical303 — no post-hoc selection on this benchmark.
  • The T=0.5 run solved +15 tasks vs the original T=0.3 run (paired McNemar p = 0.18; 303/303 completed, 1 environment failure counted as unsolved) — a positive but not statistically significant difference at single-rollout power.

Same-harness paired comparison on the original 4090 runs — the clean Base → V1 → V2 training-improvement evidence:

Internal canonical evaluation: 303 SWE-smith-derived, repo-disjoint tasks, Claude Code native context compaction ON, Pass@1, 1 rollout per task. Not SWE-bench Verified.

Model Training Stage Solved / 303 Pass@1
Qwen3-8B Base 10/303 3.30%
Qwen3-8B-CC-SFT-v1 General Agent SFT 106/303 34.98%
Qwen3-8B-CC-SFT-v2 Compact-aware Continued SFT 144/303 47.52%

The same v2 checkpoint achieved 154/303 (50.83%) Pass@1 in an independent A100 reproduction run, compared with 144/303 (47.52%) in the original 4090 run.

V2 vs V1 (paired, identical 303 tasks, same 4090 harness):

  • +38 solved tasks
  • +12.54 percentage points
  • McNemar exact test p = 0.0002
  • 95% paired bootstrap CI = [6.3, 18.8] percentage points

Cross-Machine Reproduction

The same SFT-v2-E1 model weights were re-evaluated on the identical canonical303 task set on independent A100 hardware:

Run Hardware Solved Pass@1
Original reference 4090 (TP=2 serving) 144/303 47.52%
Independent reproduction A100-80G (TP=1 serving) 154/303 50.83%

Held identical: SFT-v2-E1 checkpoint (weights unchanged), canonical303 task identities, REAL40K context, Claude Code native compaction, temperature 0.3, top_p 0.95, max 32 agent calls, Pass@1, 1 rollout per task. The A100 run completed 303/303 valid environments with 0 infrastructure failures. Observed difference: +10 solved tasks (+3.30 pp); Wilson 95% CI for the A100 run: [45.22%, 56.41%].

The model weights are unchanged — this is a cross-machine performance reproduction, not a bitwise-identical, trajectory-identical, or runtime-identical execution.

Reproduction Notes

Runtime-level serving differences existed between the two environments:

Metric 4090 reference A100 reproduction
Serving parallelism TP=2 TP=1
Compaction trigger rate 239/303 (78.9%) 81.9%
Compact events per triggered task 2.65 3.84
Tasks with autocompact thrashing 84 121

The compact-fix implementation also differs slightly between the two serving stacks. Runtime-level compaction frequency differed between the two serving environments, so this experiment should be interpreted as a cross-machine performance reproduction rather than trajectory-level deterministic reproduction.

Paired Evaluation

Because both models were evaluated on exactly the same 303 tasks with the same protocol, per-task outcomes can be paired:

Paired outcome Tasks
Both solved 76
V2 only 68
V1 only 30
Neither 129

Net +38 tasks in favor of v2 (McNemar discordant pairs 68 vs 30; exact p = 1.56e-4, reported as 0.0002).

Why v2?

Trajectory-level failure analysis of v1 under Claude Code native context compaction showed that, after a compaction event, the agent frequently lost or corrupted execution state, including:

  • completed vs pending work (what was done vs still to do)
  • modification state (which files / symbols were edited)
  • test execution state and test results
  • the current hypothesis and the next action

v2 specifically targets agent-state compression and post-compaction continuation. It is not "more data + another SFT": every added supervision segment is derived from a real native-compaction boundary.

Training Data

Standalone dataset: liangzhidanta/claude-code-glm53-swesmith-compact-trajectories

Two core supervision types:

  1. Compact Summary — the real Claude Code native compact request is forwarded to the teacher (GLM-5.3), and the teacher-generated state summary becomes the training target. Goal: faithful state compression, especially done / not-done status, modification state, test state, current hypothesis, and pending action.
  2. Post-Compaction Continuation — the real model-visible post-compaction context is the prefix, and the subsequent assistant reasoning / text / tool calls are the target. Goal: learn to continue execution from a compressed state.

Dataset statistics (from the published dataset manifest)

Level Count
Source trajectories 189 (138 one-compact, 51 two-compact)
Native compact events 240
Context-correct segments 890 = 240 compact-summary + 403 post-compaction + 247 optional pre-compact
Compact-focused segments 643 = 240 + 403
Deployment-aligned ≤40K subset 626 (239 + 387; the remaining 17 segments are long-context auxiliary)

Training recipe used for this checkpoint (COMPACT_FOCUSED, ≤40960 tokens)

Component Count Description
V1 replay 1003 Original execution-verified v1 agent trajectories
Compact-summary segments 239 Real CC compact request → GLM-5.3 summary
Post-compaction continuation segments 387 Real post-compaction visible context → agent continuation
Total 1629 All segments ≤40960 tokens

Context-Correct Training Format

A naive conversion concatenates pre-compaction history + summary + post-compaction history into one training context. At real inference time, however, the pre-compaction trimmed history is no longer visible to the model — so the naive full-concat view creates a train–inference context mismatch and leaks history that the deployed model will never see.

SFT-v2 therefore constructs context-correct segments: each training example is split at real compaction boundaries, and each prefix is rebuilt from the actual model-visible wire request at that point. Post-compaction targets are trained only against inference-visible state.

Native Compaction Behavior

Measured over the canonical303 evaluation (Claude Code native auto-compaction ON):

Metric V1 V2
Tasks triggering compaction 238/303 (78.5%) 239/303 (78.9%)
Compact events 752 633
Events per compact-triggered task 3.16 2.65
Tasks with autocompact thrashing 83 84
Pass@1 34.98% 47.52%

Trigger rate is essentially unchanged: v2 does not improve by avoiding compaction. Instead, under nearly identical compaction-trigger rates, v2 requires fewer compaction events per triggered task (3.16 → 2.65, ≈16.2% relative reduction) while achieving substantially higher task success — consistent with more efficient post-compaction continuation. Thrashing (83 → 84 tasks) is not improved and remains an open limitation. For reference, the Qwen3-8B base model triggered compaction on 124/303 tasks (227 events).

Training Details

Value
Initial checkpoint Qwen3-8B-CC-SFT-v1 (continued SFT, initialized from v1)
Framework slime v0.3.2 (Megatron-LM backend)
Fine-tuning type Full-parameter continued SFT
Dataset COMPACT_FOCUSED recipe, 1629 segments (see above)
Epochs 1
Optimizer Adam (β₁=0.9, β₂=0.95), weight decay 0.1
Learning rate 5e-6, cosine decay to 5e-7
Warmup 0.1
Context 40960 (deployment REAL40K; silent truncation disabled)
Steps 367 optimizer steps
Batch size rollout batch 4 / global batch 4
Hardware 8× RTX 4090 24GB
Parallelism TP=8, DP=1, PP=1, CP=1, sequence parallel

Losses are reported as training information only, not as capability metrics.

Training curve

Masked SFT loss over 367 optimizer steps (1 epoch):

Evaluation Protocol

Item Value
Task set canonical303 (303 tasks)
Task source SWE-smith-derived, repo-disjoint from training repositories
Environment 303/303 valid Docker environments
Context 40960 tokens (CC-visible context = SGLang real context)
Context management Claude Code native automatic context compaction (ON)
Sampling temperature = 0.3, top_p = 0.95
Max agent calls 32
Metric Pass@1, 1 rollout per task
Harness Claude Code 2.1.258 compatible harness
Serving SGLang 0.5.15.post1 (inference TP=2; independent of training parallelism)

No-compaction runs are treated as diagnostic controls, not the primary deployment-aligned evaluation: the target agent environment uses Claude Code native context compaction. SWE-bench Verified results are not reported in this release; the results above use our SWE-smith-derived canonical evaluation.

Model Lineage

Qwen/Qwen3-8B
        ↓
execution-verified GLM-5.3 trajectories
        ↓
Qwen3-8B-CC-SFT-v1
        ↓
trajectory-level failure analysis (native compaction failure modes)
        ↓
compact-aware targeted supervision (189 sources → 240 native compact events)
        ↓
context-correct continued SFT
        ↓
Qwen3-8B-CC-SFT-v2
        ↓
verifiable GRPO (planned)

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "<this-repo>"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="bfloat16", device_map="auto")

This checkpoint uses the original Qwen3 tokenizer and chat template. For coding-agent evaluation, the model was served through SGLang with a Qwen3 reasoning parser and tool-call parser, and used behind a Claude-Code-compatible harness with native context compaction enabled.

Limitations

  1. Task pool shared with v1 (same tasks, different-trajectory supervision).
  2. Compact summaries are generated by GLM-5.3 and may contain residual errors.
  3. 84 of 303 tasks still exhibit autocompact thrashing (unchanged vs v1's 83); thrashing is not solved by v2.
  4. Evaluated only at temperature 0.3.
  5. The internal 303-task benchmark is not SWE-bench Verified; SWE-bench Verified results are not reported in this release.
  6. Performance may depend on harness/tool configuration; tool-use performance should not be interpreted as standalone raw-model benchmark performance.

Citation

@model{qwen3_8b_cc_sft_v2,
  title={Qwen3-8B-CC-SFT-v2: Compact-Aware Coding Agent},
  author={liangzhidanta},
  year={2026},
  url={https://huggingface.co/liangzhidanta/Qwen3-8B-CC-SFT-v2}
}

Configuration

Architecture
Qwen3ForCausalLM
Context length (tokens)
40,960
Layers
36
Hidden size
4,096
Feed-forward size
12,288
Attention heads
32
Key/value heads
8
Head dimension
128
Vocabulary size
151,936
RoPE base
1,000,000
Stored precision
bfloat16
Model type
qwen3

Identity and Version

Repository
liangzhidanta/Qwen3-8B-CC-SFT-v2
Publisher
Liangzhidanta
Task
Text generation
Modality
Text
Library
transformers
Parameters
8.2B parameters
Languages
sft, swe-smith
Revision
9eb42d62096ccf5e560abf6dd5dd8a078409b3c4
First published
2026-09-27
Last updated
2026-09-29

Files and Weights

17 files, 16.4 GB in total. The weights are 4 files totalling 16.4 GB in safetensors.

Weights4 files · 16.4 GB
Configuration3 files · 33.8 KB
Tokenizer4 files · 15.9 MB
Documentation2 files · 24.1 KB
Other3 files · 523.7 KB
Repository1 file · 1.8 KB
Every file
FileTypeSizeSHA-256
model-00000-of-00004.safetensorsWeights5.3 GB 190ce1018372
model-00001-of-00004.safetensorsWeights5.3 GB 9e58c2ef4b08
model-00002-of-00004.safetensorsWeights4.5 GB 4e331df142ba
model-00003-of-00004.safetensorsWeights1.2 GB 6fc425306f5b
config.jsonConfiguration728 B —
generation_config.jsonConfiguration239 B —
model.safetensors.index.jsonConfiguration32.9 KB —
README.mdDocumentation12.4 KB —
README.zh-CN.mdDocumentation11.7 KB —
assets/cross_machine_reproduction.pngOther127.6 KB 5326c4cb2cf3
assets/model_progression.pngOther135.3 KB 0e6a5578af44
assets/training_loss_curve.pngOther260.8 KB 7624d7e10021
.gitattributesRepository1.8 KB —
merges.txtTokenizer1.7 MB —
tokenizer.jsonTokenizer11.4 MB aeb13307a71a
tokenizer_config.jsonTokenizer9.7 KB —
vocab.jsonTokenizer2.8 MB —

License and Download

License
apache-2.0
Access
Open weights, no gate
Download size
16.4 GB
Download from Liangzhidanta

Released by Liangzhidanta through its official repository on Hugging Face. Read the license.

Built From

  • Derived from liangzhidanta/Qwen3-8B-CC-SFT-v1
  • Trained on (disclosed) liangzhidanta/claude-code-glm53-swesmith-compact-trajectories

Memory Requirements

PrecisionWeights in memory
As published16.4 GB
16-bit16.4 GB
8-bit8.2 GB
4-bit4.1 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Qwen3-8B-CC-SFT-v2

How much GPU memory does Qwen3-8B-CC-SFT-v2 need?

About 19.7 GB at 16-bit and 4.9 GB at 4-bit: the weights (8.2B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Qwen3-8B-CC-SFT-v2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Qwen3-8B-CC-SFT-v2 commercially?

Yes. Qwen3-8B-CC-SFT-v2 is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.

What is Qwen3-8B-CC-SFT-v2's context length?

40,960 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

Qwen3-8B

Qwen

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features: - Uniquely support of seamless switching between thinking mode (for complex logical reasoning, math, and coding) and non-thinking mode (for efficient, general-purpose dialogue) within single model, ensuring optimal performance across various scenarios. - Significantly enhancement in its reasoning capabilities, surpassing previous QwQ (in thinking mode) and…

Open weights apache-2.0 8.2B parameters 40,960 tokens transformers

Model · Text generation

Qwen3-8B-AWQ

Qwen

Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features: - Uniquely support of seamless switching between thinking mode (for complex logical reasoning, math, and coding) and non-thinking mode (for efficient, general-purpose dialogue) within single model, ensuring optimal performance across various scenarios. - Significantly enhancement in its reasoning capabilities, surpassing previous QwQ (in thinking mode) and…

Open weights apache-2.0 8.2B parameters 40,960 tokens transformers

Model · Text generation

DeepSeek-R1-0528-Qwen3-8B

DeepSeek

The DeepSeek R1 model has undergone a minor version upgrade, with the current version being DeepSeek-R1-0528. In the latest update, DeepSeek R1 has significantly improved its depth of reasoning and inference capabilities by leveraging increased computational resources and introducing algorithmic optimization mechanisms during post-training. The model has demonstrated outstanding performance across various benchmark evaluations, including mathematics, programming, and general logic. Its overall performance is now approaching that of leading models, such as O3 and Gemini 2.5 Pro. Compared to the previous version, the upgraded model shows significant improvements in handling complex reasoning…

Open weights mit 8.2B parameters 131,072 tokens transformers

Model · Text generation

Symbiotic-8B

Convergent Intelligence

Purpose: Long-memory symbolic reasoning + high-fidelity language generation SymbioticLM-8B is a state-of-the-art hybrid transformer model with built-in symbolic cognition. It combines an 8B Qwen-based transformer with modular symbolic processors and a persistent memory buffer. The model supports both general conversation and deep symbolic tasks such as theorem generation, logical chaining, and structured reasoning with retained memory across turns. - General symbolic reasoning and logical conversation - Code + math proof modeling - Not instruction-tuned (e.g., chat-style inputs may require prompt engineering) - Larger memory buffer may increase CPU load slightly - Symbolic inference is…

Open weights afl-3.0 8.2B parameters 40,960 tokens transformers

Model · Text generation

ProactiveInquirer-Qwen3-8B-Merged

Ido Levy

Ido Levy 1,2 · 1,2 The trained questioner from Asking for What Was Never Requested: Horizontal and Vertical Proactivity in Agents, with its LoRA adapter merged into Qwen3-8B. It is a standard full-weight model: it loads without PEFT and serves with vLLM, SGLang or TGI like any Qwen3-8B. - The adapter, with the results, the training details, the limitations and a complete two-turn - Quantized for llama.cpp, Ollama and LM Studio: This is training seed 1, the adapter at the root of the adapter repository. The merge ran in float32 and the weights are stored in bfloat16. On the adapter card's two-turn example, greedy decoding with this model returns the adapter's output character for character.…

Open weights apache-2.0 8.2B parameters 40,960 tokens transformers