← back to catalog · indexed 2026-08-22 13:56 (first catalog crawl)

s3nh/FastContext-1.0-4B-SFT-abliterated

s3nh Qwen 4.0B
Your rig guess connected
? Why do I need an app?
Reading your rig…

Below is the per-quantization compatibility for this model.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/s3nh%2FFastContext-1.0-4B-SFT-abliterated"
Response includes
  • classification m3
  • files 10
  • benchmarks 11 entries
  • hub_downloads_all_time 97
  • author_summary 14 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.1.0
M3
Primary method

Layer-wise ablation

Applied on top of direct removal inherited from the base model.
Confidence
HIGH
Inherited from base model
Why this label 2 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • card: 'made using Heretic' signature (written by the Heretic tool)
  • Heretic: per-layer optimised direction removal, filed as M3 + M1
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M3; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · lifetime
138
20 last 30d - stable
Likes
2
Descendants
2
in 2 direct forks
Model age
4mo ago
created 2026-07-10
Downloads over time
Now 138 → from 27 ↑ 411%
2164107149 27 on Jul 15 138 on Nov 27 138 on Nov 26 JulAugSepOctNov
Jul 15 → Nov 27 · 100 snapshots · spans 135 days

Benchmarks

Portrait before abliteration
Benchmarks of the base model as it stood before the refusal-removal operation. Compare with the numbers above to see what the operation cost.
Benchmark Score Source
Entertainment 0.4 UGI
Hazardous 1.2 UGI
Natural Intelligence 13.76 UGI
Political lean -12.4% UGI
Sensitive-Info 6.25 UGI
SocPol 0.5 UGI
UGI 15.83 UGI
Willingness (10) 3.5 UGI
W10-Adherence 1 UGI
W10-Direct 6 UGI
Writing 29.92 UGI

Genealogy 2 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
mit
Languages
en
Tags
transformers safetensors qwen3 text-generation Explorer SubAgent Repository Exploration heretic uncensored decensored abliterated reproducible conversational

Related

Total size
7.50 GB
Files
10
Quantizations
none
Indexed by us
2026-08-22 13:56 · first crawl
Last updated on HF
2026-07-10 09:42

Files by quantization

Weights 2 files 7.49 GB
model-00001-of-00002.safetensors 4.65 GB 1689945a download
model-00002-of-00002.safetensors 2.84 GB 1ca84b94 download
Auxiliary files 8 files 10.9 MB
tokenizer.json 10.9 MB 79cb3c78 download
model.safetensors.index.json 32.1 KB f09448b1 download
README.md 7.81 KB f7c684b8 download
chat_template.jinja 2.57 KB 70adff8a download
config.json 1.56 KB 637c2d8d download
.gitattributes 1.53 KB 52373fe2 download
tokenizer_config.json 695 B cb879624 download
generation_config.json 213 B 69d962b4 download

README from Hugging Face, captured 2026-08-22


language:

  • en
    license: mit
    tags:
  • Explorer SubAgent
  • Repository Exploration
  • heretic
  • uncensored
  • decensored
  • abliterated
  • reproducible
    library_name: transformers
    base_model:
  • Qwen/Qwen3-4B-Instruct-2507

This is a decensored version of ShaunGves/FastContext-1.0-4B-SFT, made using Heretic v1.4.0

[!TIP]
This model is reproducible!

See the README in the reproduce directory for more information.

Abliteration parameters

Parameter Value
direction_index 18.51
attn.o_proj.max_weight 1.42
attn.o_proj.max_weight_position 23.23
attn.o_proj.min_weight 1.41
attn.o_proj.min_weight_distance 14.70
mlp.down_proj.max_weight 1.35
mlp.down_proj.max_weight_position 24.23
mlp.down_proj.min_weight 1.23
mlp.down_proj.min_weight_distance 14.62

Performance

Metric This model Original model (ShaunGves/FastContext-1.0-4B-SFT)
KL divergence 0.0318 0 (by definition)
Refusals 3/100 98/100

1. Model Introduction

FastContext-1.0 is a lightweight repository-exploration subagent for LLM coding agents. Instead of letting a single model both explore the repository and solve the task, FastContext separates these two roles: it is invoked on demand by a main coding agent, issues parallel read-only tool calls (READ, GLOB, GREP), and returns compact file paths and line ranges as focused context.

Repository exploration is a major bottleneck in modern coding agents — locating relevant code consumes a large share of the token budget and pollutes the solver's context with irrelevant snippets. In our analysis of GPT-5.4 trajectories, reading and searching account for 56.2% of all tool-use turns and 46.5% of the main agent's total tokens. FastContext moves this work into a dedicated subagent so the main agent receives clean, grounded evidence rather than the long trail of exploratory reads and searches.

The model family spans 4B–30B parameters, bootstrapped from strong reference-model trajectories via supervised fine-tuning (SFT) and refined with task-grounded reinforcement learning (RL) for broad first-turn search, multi-turn evidence gathering, and precise citation generation.

  • Backbones: Qwen3-4B-Instruct (4B explorer) and Qwen3-Coder-30B-A3B (30B explorer)
  • Variants: FC-4B-SFT, FC-4B-RL (deployment targets), FC-30B-SFT (scaling reference)
  • Context length: up to 262K tokens
  • Paper: FastContext: Training Efficient Repository Explorer for Coding Agents
  • Code & data: https://github.com/microsoft/fastcontext

How it works

Coding Agent ──query──▶  FastContext  ──read/search──▶  Repository
     ▲                       │
     └──── file-line ────────┘
          citations

Internally, FastContext runs an exploration loop:

  1. Query understanding — translate the issue into search intents.
  2. Parallel tool calling — issue multiple READ / GLOB / GREP calls in a single turn to cover complementary hypotheses.
  3. Observation-driven refinement — use tool outputs to guide the next search turn.
  4. Final citations — return a compact <final_answer> block of file paths and line ranges.

2. Evaluation Results

End-to-end performance (Mini-SWE-Agent)

Integrating FastContext into Mini-SWE-Agent improves end-to-end resolution rates by up to 5.5% while reducing main-agent token consumption by up to 60%, with only marginal overhead. Scores, tokens, and turns are measured on the main-agent trajectory; deltas are relative to w/o Explore for the same main agent.

Main Agent Subagent SWE-bench Multilingual SWE-bench Pro SWE-QA
GPT-5.4 w/o Explore 71.7 / 457k 46.0 / 818k 81.3 / 418k
FC-30B-SFT 75.0 (↑3.3) / 356k (↓22.1%) 49.0 (↑3.0) / 688k (↓15.9%) 82.0 (↑0.7) / 206k (↓50.7%)
FC-4B-SFT 73.3 (↑1.6) / 364k (↓20.4%) 47.0 (↑1.0) / 689k (↓15.8%) 81.9 (↑0.6) / 213k (↓49.0%)
FC-4B-RL 74.7 (↑3.0) / 338k (↓26.0%) 48.5 (↑2.5) / 701k (↓14.3%) 82.0 (↑0.7) / 210k (↓49.8%)
GLM-5.1 w/o Explore 72.3 / 2514k 17.5 / 2692k 72.7 / 401k
FC-30B-SFT 73.7 (↑1.4) / 1797k (↓28.5%) 20.0 (↑2.5) / 2370k (↓12.0%) 73.3 (↑0.6) / 292k (↓27.2%)
FC-4B-SFT 73.3 (↑1.0) / 1919k (↓23.7%) 18.0 (↑0.5) / 2279k (↓15.3%) 73.4 (↑0.7) / 306k (↓23.7%)
FC-4B-RL 73.7 (↑1.4) / 1971k (↓21.6%) 22.5 (↑5.0) / 2210k (↓17.9%) 73.5 (↑0.8) / 302k (↓24.7%)
Kimi-K2.6 w/o Explore 76.3 / 1553k 31.0 / 2383k 71.6 / 510k
FC-30B-SFT 76.7 (↑0.4) / 1360k (↓12.4%) 33.0 (↑2.0) / 2150k (↓9.8%) 72.8 (↑1.2) / 373k (↓26.9%)
FC-4B-SFT 75.3 (↓1.0) / 1306k (↓15.9%) 32.5 (↑1.5) / 2159k (↓9.4%) 72.6 (↑1.0) / 402k (↓21.2%)
FC-4B-RL 78.3 (↑2.0) / 1384k (↓10.9%) 33.5 (↑2.5) / 2158k (↓9.4%) 72.6 (↑1.0) / 378k (↓25.9%)

Score / Tokens shown per cell. Best result per main-agent block in bold.

Highlights:

  • FastContext improves end-to-end accuracy for every main agent and benchmark; the largest gains appear on SWE-bench Pro (e.g. GPT-5.4 +5.5, GLM-5.1 +5.0).
  • The biggest token savings reach 60.3% (GPT-5.4 on SWE-QA).
  • The compact 4B-RL explorer can outperform the larger 30B-SFT explorer — e.g. on GLM-5.1 SWE-bench Pro it reaches 22.5 vs. 20.0 while using fewer tokens.

3. Quick Start

Launch the model with an OpenAI-compatible server (e.g. SGLang). The example below serves the 4B explorer:

python3 -m sglang.launch_server \
    --model-path FastContext-1.0-4B-SFT \
    --tool-call-parser qwen \
    --context-length 262144 \
    --trust-remote-code \
    --dtype bfloat16 \
    --host 0.0.0.0 \
    --port 30000 \
    --tp-size 1 \
    --mem-fraction-static 0.8

FastContext exposes only three read-only tools to the model:

Tool Purpose
READ Return line-numbered file contents
GLOB Path discovery by glob pattern
GREP Regex search over repository text (ripgrep-style)

At each turn the explorer either issues one or more (parallel) tool calls or stops with a final <final_answer> evidence list. Wire FastContext into a coding agent (e.g. Mini-SWE-Agent) as an exploration subagent the main agent can invoke on demand.

4. Training Recipe

FastContext is trained in two stages:

  • Supervised fine-tuning (SFT): The exploration traces, split into three sources matching the runtime behavior of the subagent — parallel_toolcalls (broad first-turn search), multiturn_traj (multi-turn evidence gathering), and linerange (precise citation generation).
  • Reinforcement learning (RL): The model is rolled out as the actual subagent and optimized with GRPO using a deterministic reward combining file- and line-level F1, a bonus for bounded parallel exploration, and format penalties.

License

This project is licensed under the MIT License.

Citation

@misc{zhang2026fastcontexttrainingefficientrepository,
      title={FastContext: Training Efficient Repository Explorer for Coding Agents},
      author={Shaoqiu Zhang and Maoquan Wang and Yuling Shi and Yuhang Wang and Xiaodong Gu and Yongqiang Yao and Tori Gong and Sheng Chen and Rao Fu and Anisha Agarwal and Spandan Garg and Gabriel Ryan and Colin Merkel and Yufan Huang and Shengyu Fu},
      year={2026},
      eprint={2606.14066},
      archivePrefix={arXiv},
      primaryClass={cs.SE},
      url={https://arxiv.org/abs/2606.14066},
}

README history 2 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-07-10 Upload README.md with huggingface_hub 94d0da2 7.8 KB
    Loading...
  2. 2026-07-10 Upload Qwen3ForCausalLM 8f2145d 5.1 KB
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration