ModelHub XC 4727b55a2b 初始化项目,由ModelHub XC社区提供模型
Model: liangzhidanta/Qwen3-8B-CC-SFT-v2-2e
Source: Original Platform
2026-11-16 10:36:54 +08:00

license, tags, library_name, base_model, datasets, pipeline_tag
license tags library_name base_model datasets pipeline_tag
apache-2.0
qwen
qwen3
coding-agent
context-compaction
sft
slime
claude-code
swe-smith
tool-use
transformers liangzhidanta/Qwen3-8B-CC-SFT-v2 liangzhidanta/claude-code-glm53-swesmith-compact-trajectories text-generation

Qwen3-8B-CC-SFT-v2-2e

English | 简体中文

Qwen3-8B-CC-SFT-v2-2e is the second-epoch compact-aware continued-SFT checkpoint, trained one additional epoch on the same compact-focused recipe as Qwen3-8B-CC-SFT-v2. It is the best-performing checkpoint of this SFT stage on the canonical303 coding-agent benchmark.

Key Result

canonical303 Pass@1: 54.79% (166/303) — 4090 run at T=0.4 (temperature selected on an independent dev set; see Temperature Selection). Wilson 95% CI: [49.16%, 60.29%]. 303/303 valid environments, 0 infrastructure failures.

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 SFT (1 epoch) 144/303 47.52%
Qwen3-8B-CC-SFT-v2-2e Compact-aware SFT (2 epochs) 166/303 54.79%

Pass@1 progression on canonical303: base 3.30%, SFT-v1 34.98%, SFT-v2 47.52%, SFT-v2-2e 54.79%

vs the published v2 (1-epoch) checkpoint, paired on identical 303 tasks (same 4090 harness family):

  • +22 solved tasks (+7.27 pp)
  • McNemar exact test p = 0.033
  • 95% paired bootstrap CI = [1.0, 13.5] pp
Paired outcome (v2-2e vs v2) Tasks
Both solved 106
v2-2e only 60
v2 only 38
Neither 99

Temperature sweep on canonical303 (this checkpoint, one run per temperature): T=0.4 → 166/303 (54.79%), T=0.5 → 159/303 (52.48%, paired p = 0.53 vs T=0.4; 303/303 completed, 2 environment failures counted as unsolved). T=0.4 is the best observed temperature for this checkpoint.

For reference, the v2-1e checkpoint at T=0.5 solved 159/303 (52.48%, paired p = 0.18 vs its T=0.3 run) — v2-2e @ T=0.4 and v2-1e @ T=0.5 are not statistically separable (p = 0.55), but v2-2e @ T=0.4 is the only configuration with a significant paired gain over the published v2 result.

Training Dataset and Recipe

Dataset: liangzhidanta/claude-code-glm53-swesmith-compact-trajectories

This checkpoint is the second epoch of the COMPACT_FOCUSED recipe over the deployment-aligned (≤40960-token) subset of that dataset, replayed together with the v1 trajectory set:

Recipe component Count Description
V1 replay 1003 Execution-verified v1 agent trajectories (from claude-code-glm53-swesmith-trajectories)
Compact-summary segments 239 Real Claude Code native compact request → GLM-5.3 state summary
Post-compaction continuation segments 387 Real model-visible post-compaction context → agent continuation
Total (COMPACT_FOCUSED ≤40K) 1629 All segments ≤40960 tokens

Dataset-level provenance: 189 source trajectories (138 one-compact, 51 two-compact) → 240 native compact events → 890 context-correct segments (240 compact-summary + 403 post-compaction + 247 optional pre-compact); the training subset is the ≤40K deployment-aligned split (626 segments) plus V1 replay. Segments are split at real compaction boundaries with prefixes rebuilt from the actual model-visible wire request (context-correct format — see the v2 model card for details).

  • Epoch 1 (produces Qwen3-8B-CC-SFT-v2): initialized from v1, 367 optimizer steps.
  • Epoch 2 (this checkpoint): initialized from v2-1e, same 1629-sample recipe in reshuffled order, fresh optimizer and fresh cosine schedule, 367 optimizer steps.

Training Details

Value
Initial checkpoint Qwen3-8B-CC-SFT-v2 (1-epoch compact-aware SFT)
Lineage Qwen3-8B → SFT-v1 → SFT-v2 (epoch 1) → SFT-v2-2e (epoch 2)
Framework slime v0.3.2 (Megatron-LM backend)
Fine-tuning type Full-parameter continued SFT
Epoch 2nd epoch over the COMPACT_FOCUSED recipe (1629 samples)
Optimizer Adam (β₁=0.9, β₂=0.95), weight decay 0.1
Learning rate 5e-6, cosine decay to 5e-7 (fresh schedule per epoch)
Warmup 0.1
Context 40960 (deployment REAL40K; silent truncation disabled)
Steps 367 optimizer steps (734 cumulative across both epochs)
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 (both epochs, 734 optimizer steps)

SFT-v2 two-epoch training loss curve (734 steps, epoch boundary marked)

TensorBoard view (masked SFT loss and per-batch rollout response lengths over both epochs):

TensorBoard dashboard: continuous two-epoch train/loss and rollout response lengths

Temperature Selection

T=0.4 (jointly with the checkpoint choice) 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. On the development set, all checkpoint/temperature pairs were statistically indistinguishable (paired McNemar p > 0.3); the canonical303 run confirms the selected configuration with a significant paired gain over the published v2 result (p = 0.033).

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.4, 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)

This is an internal SWE-smith-derived evaluation. It is not SWE-bench Verified and should not be interpreted as a leaderboard score. SWE-bench Verified results are not reported in this release.

Model Lineage

Qwen/Qwen3-8B
        ↓
execution-verified GLM-5.3 trajectories
        ↓
Qwen3-8B-CC-SFT-v1          (general agent SFT)
        ↓
compact-aware targeted supervision, epoch 1
        ↓
Qwen3-8B-CC-SFT-v2          (144/303, T=0.3)
        ↓
same recipe, epoch 2
        ↓
Qwen3-8B-CC-SFT-v2-2e       (166/303, T=0.4)
        ↓
verifiable GRPO (planned)

Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "liangzhidanta/Qwen3-8B-CC-SFT-v2-2e"
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, behind a Claude-Code-compatible harness with native context compaction enabled (T=0.4, top_p=0.95).

Limitations

  1. The second epoch reuses the same 1629-sample recipe — no new supervision data was added.
  2. Compact summaries are generated by GLM-5.3 and may contain residual errors.
  3. Task pool shared with the v1/v2 lineage (same-task, different-trajectory supervision).
  4. The internal 303-task benchmark is not SWE-bench Verified; SWE-bench Verified results are not reported in this release.
  5. Performance may depend on harness/tool configuration; tool-use performance should not be interpreted as standalone raw-model benchmark performance.
  6. Evaluated on canonical303 at T=0.4 and T=0.5 (single rollout per temperature); other temperatures are untested.

Citation

@model{qwen3_8b_cc_sft_v2_2e,
  title={Qwen3-8B-CC-SFT-v2-2e: Compact-Aware Coding Agent},
  author={liangzhidanta},
  year={2026},
  url={https://huggingface.co/liangzhidanta/Qwen3-8B-CC-SFT-v2-2e}
}
S
Description
Model synced from source: liangzhidanta/Qwen3-8B-CC-SFT-v2-2e
Readme
13 MiB
0 Stars 1 Watchers 0 Forks