Instructions to use Ash-Eriga/Spark-X2.6-4B-Thinkingless with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ash-Eriga/Spark-X2.6-4B-Thinkingless with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ash-Eriga/Spark-X2.6-4B-Thinkingless", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Ash-Eriga/Spark-X2.6-4B-Thinkingless", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ash-Eriga/Spark-X2.6-4B-Thinkingless with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ash-Eriga/Spark-X2.6-4B-Thinkingless" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ash-Eriga/Spark-X2.6-4B-Thinkingless", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ash-Eriga/Spark-X2.6-4B-Thinkingless
- SGLang
How to use Ash-Eriga/Spark-X2.6-4B-Thinkingless with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ash-Eriga/Spark-X2.6-4B-Thinkingless" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ash-Eriga/Spark-X2.6-4B-Thinkingless", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ash-Eriga/Spark-X2.6-4B-Thinkingless" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ash-Eriga/Spark-X2.6-4B-Thinkingless", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ash-Eriga/Spark-X2.6-4B-Thinkingless with Docker Model Runner:
docker model run hf.co/Ash-Eriga/Spark-X2.6-4B-Thinkingless
Spark-X2.6-4B-Thinkingless
Thinkingless cuts Spark-X2.6-4B reasoning tokens by 43% on GSM8K with no measurable accuracy change.
At default high effort, Thinkingless cuts reasoning tokens by 43% on GSM8K and 13% on GPQA-Diamond, with accuracy shifts of +0.7 and +1.0 points whose 95% intervals include zero. The training-free rank-1 weight edit writes directly to weights without gradient training, LoRA adapters, or inference hooks, keeping the base architecture, tokenizer, and checkpoint layout. It adapts Concept Country's gradient-free weight edit for Qwen3.8-27B to Spark-X2.6-4B. The tables below call Thinkingless "Edit B". Hugging Face tags it as a finetune of XHToken/Spark-X2.6-4B because no weight-edit relation exists.
Note: The token saving does not survive 4-bit quantization: an IQ4_XS build spent 18% more reasoning tokens on MATH-500 and 26% more on MMLU-Pro than the bf16 edit, canceling most of the saving. Use the bf16 or fp16 weights; a quantization-robust version may follow.
Results
Thinkingless cuts reasoning tokens at high effort on both benchmarks, while low effort on the base model cuts more. Runs used fp16 with vLLM 0.32.0, 1 seed (1234), T=1.0, top_p=0.95, and a 16,384-token cap. Reasoning tokens precede </think>, and "No </think>" is the share of unclosed think blocks. Accuracy intervals use 95% percentile bootstrap over questions (10,000 resamples).
| Benchmark | Arm | Accuracy (95% CI) | Reasoning tokens, mean (95% CI) | No </think> |
|---|---|---|---|---|
| GSM8K (1,319) | Base, high effort | 92.9% [91.5, 94.2] | 724 [613, 842] | 0.8% |
| Base, low effort | 93.4% [92.0, 94.7] | 331 [292, 375] | 0.0% | |
| Edit B, high effort | 93.6% [92.3, 94.9] | 411 [359, 470] | 0.1% | |
| GPQA-Diamond (198) | Base, high effort | 57.1% [50.0, 64.1] | 7,997 [7,071, 8,945] | 30.8% |
| Base, low effort | 61.1% [54.0, 67.7] | 6,196 [5,352, 7,046] | 18.2% | |
| Edit B, high effort | 58.1% [51.0, 64.7] | 6,943 [6,029, 7,866] | 26.8% |
Paired comparisons match questions using 95% paired bootstrap intervals. Accuracy deltas are percentage points, and token deltas are a percent of the second arm's mean. "Better / worse" counts questions the first arm solved and the second missed, then the reverse.
| Benchmark | Comparison | Δ accuracy, pp (CI) | Δ reasoning tokens (CI) | Better / worse |
|---|---|---|---|---|
| GSM8K | Edit B vs base, high effort | +0.7 [−0.5, +2.0] | −43.3% [−50.4, −35.2] | 41 / 32 |
| Base low vs base high | +0.5 [−0.7, +1.6] | −54.2% [−60.4, −46.5] | 33 / 27 | |
| Edit B (high) vs base low | +0.2 [−1.0, +1.4] | +24.0% [+8.0, +42.0] | 35 / 32 | |
| GPQA-Diamond | Edit B vs base, high effort | +1.0 [−5.6, +7.6] | −13.2% [−20.9, −5.0] | 23 / 21 |
| Base low vs base high | +4.0 [−3.0, +11.1] | −22.5% [−29.8, −15.0] | 31 / 23 | |
| Edit B (high) vs base low | −3.0 [−9.6, +3.5] | +12.1% [+1.5, +24.2] | 20 / 26 |
Limitations
- Prompting saves more tokens than the edit. Against base
high,effort=lowcuts tokens by 54% on GSM8K and 22.5% on GPQA-Diamond; Thinkingless athighcuts 43% and 13%. Thinkinglesshighspends 24% more tokens on GSM8K and 12% more on GPQA-Diamond than baselow. Use the edit when you cannot change the effort prompt. - GPQA-Diamond intervals are wide. With 198 questions, GPQA-Diamond accuracy intervals are about ±7 points wide, so "no measurable accuracy change" means the intervals include zero, not zero true change. Against base
low, Thinkingless scores 3.0 points lower (CI [−9.6, +3.5]). - GSM8K and GPQA-Diamond used 1 seed per arm. Base accuracy drifts by about 2 points across earlier runs, so smaller differences are noise.
- Does not survive 4-bit quantization. In llama.cpp (IQ4_XS, imatrix v6,
loweffort, seed 1234), reasoning tokens rise 18% on MATH-500 and 26% on MMLU-Pro over bf16; accuracy stays within noise (91.3 vs 92.0 and 63.5 vs 67.0). - Untested: the edited-vs-base runs did not test instruction following, code, tool use, long context, or caps above 16,384 tokens.
How the edit works
Thinkingless applies a training-free rank-1 weight edit along a conclusion-commitment direction (cc), updating mlp.down_proj.weight in 7 layers (18, 20, 21, 22, 25, 26, 28) and leaving every other tensor unchanged. The method derives cc from 140 correct traces by averaging, per trace, the mean residual over the last 48 tokens before </think> minus the mean over the rest of the trace. Each update pushes the average think token along cc with alpha 0.075, changing about 0.24-0.3% of that matrix's norm.
W_l <- bf16(W_l + alpha * n_l * d_l u_l^T / ||u_l||^2)
Here d_l is the unit cc direction, u_l is the mean down_proj input over think tokens, and n_l is the mean down_proj output norm. A norm-matched orthogonal control using the same layers and alpha leaves reasoning length within noise (−1.5% on MATH-500 and −7.5% on MMLU-Pro; both CIs include 0), showing the direction drives the effect.
Usage
Load this model with trust_remote_code=True and the base chat template, setting enable_thinking=True and reasoning_effort ("high" or "low"). Reasoning ends at </think>. Use bfloat16 where the GPU supports it, and float16 otherwise.
transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Ash-Eriga/Spark-X2.6-4B-Thinkingless"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto")
prompt = tok.apply_chat_template(
[{"role": "user", "content": "What is 17 * 24?"}],
tokenize=False, add_generation_prompt=True,
enable_thinking=True, reasoning_effort="high")
inputs = tok(prompt, add_special_tokens=False, return_tensors="pt").to(model.device)
out = model.generate(**inputs, do_sample=True, temperature=1.0, top_p=0.95,
max_new_tokens=16384)
print(tok.decode(out[0][inputs.input_ids.shape[1]:]))
vLLM
Install vLLM 0.32.0 and the base model's plugin:
pip install vllm==0.32.0 git+https://github.com/XHToken/Spark-plugin.git
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams
repo = "Ash-Eriga/Spark-X2.6-4B-Thinkingless"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
llm = LLM(model=repo, trust_remote_code=True, dtype="bfloat16",
max_model_len=20480, enable_prefix_caching=True)
prompt = tok.apply_chat_template(
[{"role": "user", "content": "What is 17 * 24?"}],
tokenize=False, add_generation_prompt=True,
enable_thinking=True, reasoning_effort="high")
params = SamplingParams(temperature=1.0, top_p=0.95, max_tokens=16384)
print(llm.generate([prompt], params)[0].outputs[0].text)
To serve over HTTP, run vllm serve Ash-Eriga/Spark-X2.6-4B-Thinkingless --trust-remote-code --dtype bfloat16 --max-model-len 18432. Format prompts with apply_chat_template and send token IDs to /v1/completions, as in the evaluation.
Credits and citation
- Method: "Gradient-Free Weight Editing Reduces Overthinking in Qwen3.8-27B: A norm-matched controlled replication of weight-space programming", Justin Bennington, Nikki Kaelar, Spencer Lee, Mitchell Edwards, Kojin Glick, and Cilvia Danks (Concept Country), working paper v1, November 8, 2026. Their edited model is
ConceptCountry/qwen-concept-27b. Thinkingless takes from it the conclusion-commitment direction read from the model's own activations, the rank-1 update compiled intomlp.down_proj, and the norm-matched orthogonal control. For Spark-X2.6-4B it picks 7 layers from a scan of all 36 layers instead of a fixed alternating set, and sets alpha to 0.075 from a dev-set screen. - Origin of the idea: "Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights", Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab (MIT CSAIL), November 2, 2026. Concept Country's work replicates this idea. In the MIT work an LLM reads the weights and writes the edit; here no LLM reads the weights.
- Base model:
XHToken/Spark-X2.6-4B. Its license and terms of use apply to this model. - vLLM plugin:
XHToken/Spark-plugin
@misc{spark_x26_4b_thinkingless,
title = {Spark-X2.6-4B-Thinkingless: a training-free rank-1 weight edit that shortens reasoning},
author = {Ash-Eriga},
year = {2026},
note = {Derived from XHToken/Spark-X2.6-4B}
}
If you use the method, cite the works it builds on:
@misc{conceptcountry2026gradientfree,
title = {{Gradient-Free Weight Editing Reduces Overthinking in Qwen3.8-27B: A norm-matched controlled replication of weight-space programming}},
author = {Bennington, Justin and Kaelar, Nikki and Lee, Spencer and Edwards, Mitchell and Glick, Kojin and Danks, Cilvia},
year = {2026},
month = nov,
howpublished = {\url{https://concept.country/research/weight-space-programming}},
note = {Working paper v1, Concept Country}
}
@misc{takehi2026weightspace,
title = {{Sparks of Weight-Space Programming: LLMs can natively read \& write neural network weights}},
author = {Takehi, Rikiya and Teoh, Jayden and Zhang, Alex and Khattab, Omar},
year = {2026},
month = nov,
howpublished = {\url{https://rikiyat.github.io/blog/weight-space-programming/}},
note = {Blog post}
}
- Downloads last month
- 29

