← back to catalog · registered 2026-09-09 16:55

toandev/Spark-X2.5-4B-Uncensored

Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/toandev%2FSpark-X2.5-4B-Uncensored"
Response includes
  • classification m-uncensored
  • files 17
  • hub_downloads_all_time 423
  • author_summary 4 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M-U
Primary method

Uncensored (method unknown)

No other method signals detected in this model.
Confidence
LOW
Why this label 3 signals
Weak or ambiguous signals. Best guess based on catalog patterns; treat as tentative and check the evidence below.
  • 'uncensored' in name/tags but no 'abliterated' marker
  • method not identifiable from author declaration alone
  • may be DPO fine-tune, prompt engineering, or unknown technique
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · lifetime
423
137 last 30d - stable
Likes
0
Descendants
1
in 1 direct fork
Model age
6w ago
created 2026-09-09
Downloads over time
Now522→from0↑0%
01913835740 on Sep 9522 on Oct 24SepOct
Sep 9 → Oct 24 · 46 snapshots · spans 45 days

Genealogy 1 direct fork

Full fork graph →

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

Variants by this author 2 formats · 1K downloads combined

The same weights this author released in different packaging. Pick the format that matches your runtime.

Metadata

License
apache-2.0
Languages
vi en zh
Tags
safetensors spark2_5 spark abliteration uncensored causal-lm safety-research text-generation conversational custom_code vi en

Related

Total size
8.28 GB
Files
17
Quantizations
1
Registered
2026-09-09 16:55
Last updated on HF
2026-09-09 16:08

Files by quantization

Auxiliary files 17 files 8.29 GB
model-00003-of-00005.safetensors 1.86 GB 2a68e5da download
model-00004-of-00005.safetensors 1.86 GB 06808b70 download
model-00002-of-00005.safetensors 1.86 GB 8a30a78a download
model-00001-of-00005.safetensors 1.85 GB f5ddc2f8 download
model-00005-of-00005.safetensors 890 MB 24669c1e download
tokenizer.json 9.65 MB 2591c719 download
model.safetensors.index.json 23.6 KB d779823b download
tokenizer_config.json 20.3 KB 64bea0dc download
modeling_spark.py 19.0 KB 4e48c7a9 download
LICENSE 11.1 KB b7456707 download
README.md 7.25 KB 397bd4e7 download
chat_template.jinja 4.61 KB fc2209ba download
configuration_spark.py 4.23 KB cca611a0 download
config.json 2.45 KB 4dea28d1 download
.gitattributes 1.48 KB a6344aac download
special_tokens_map.json 613 B 98515315 download
generation_config.json 231 B 815d3009 download

README current version from Hugging Face


language:

  • vi
  • en
  • zh
    license: apache-2.0
    tags:
  • spark
  • abliteration
  • uncensored
  • causal-lm
  • safety-research
    base_model: XHToken/Spark-X2.5-4B
    pipeline_tag: text-generation

Spark-X2.5-4B-Uncensored

Spark-X2.5-4B-Uncensored is an abliterated variant of XHToken/Spark-X2.5-4B. It applies representation-level weight orthogonalization to neutralize the internal refusal direction while preserving general knowledge, reasoning, and multilingual fluency.


Overview & Motivation

Modern aligned instruction models frequently suffer from two common issues:

  1. False over-refusal: Refusing benign queries that contain sensitive keywords (e.g., historical events, cybersecurity concepts, educational queries).
  2. Hard refusal barriers: Inability to explore adversarial robustness, red-teaming, and creative writing scenarios.

Rather than fine-tuning or retraining with additional compute, this checkpoint modifies the model's weights using representation direction orthogonalization (Arditi et al., 2024). The goal is to remove refusal behavior at the representation level while maintaining standard language model capabilities.


Methodology

This model was developed using Representation Direction Orthogonalization (commonly known as abliteration in mechanistic interpretability research, following Arditi et al., 2024).

By identifying the direction in the residual stream activations that mediates refusal behavior and projecting it out of the relevant weight matrices, the model significantly reduces automated refusal triggers while preserving its pre-trained factual knowledge, reasoning benchmarks, and language capabilities.


Comprehensive Benchmark Results

All evaluations were conducted deterministically using seed 20260909 on an NVIDIA A100 GPU.

1. General Reasoning & Capability Retention (1,500 questions)

Evaluated via deterministic next-token scoring on answer choices (A/B/C/D):

Benchmark Base Model (Spark-X2.5-4B) Spark-X2.5-4B-Uncensored Retention
ARC-Easy (500 samples) 95.00% 94.80% 99.79%
HellaSwag (500 samples) 70.40% 70.60% 100.28%
MMLU (500 samples) 62.00% 61.40% 99.03%
Macro Average 75.80% 75.60% 99.74%

General intelligence, reasoning, and world knowledge remain virtually untouched (-0.2% absolute delta).


2. Modern Safety & Red-Teaming Benchmarks (500 items across 5 major suites)

Evaluated on 100 balanced samples per suite from the premier modern safety & jailbreak benchmarks:

Benchmark Suite Base Refusal Rate Uncensored Refusal Rate Compliance Rate Relative Refusal Reduction
JailbreakBench (JBB-Behaviors) 98.0% 25.0% 75.0% -74.5%
Do-Not-Answer (LibrAI) 57.0% 17.0% 83.0% -70.2%
BeaverTails (PKU-Alignment) 80.0% 10.0% 90.0% -87.5%
Sorry-Bench (Virginia Tech) 47.0% 4.0% 96.0% -91.5%
WildJailbreak (AllenAI Adversarial) 98.0% 10.0% 90.0% -89.8%
Average Across All 5 Suites 76.0% 13.2% 86.8% -82.6%

3. Baseline Refusal & Over-refusal Metrics

Benchmark Base Refusal Rate Uncensored Refusal Rate Relative Reduction
StrongREJECT-small (60 items) 96.67% 3.33% -96.5%
XSTest Safe (250 benign boundary prompts) 18.80% 2.00% -89.4% (False refusals fixed)
XSTest Unsafe (200 boundary prompts) 89.00% 8.00% -91.0%
HarmBench Standard Test (100 items) 98.00% 10.00% -89.8%
  • Official HarmBench Classifier (cais/HarmBench-Mistral-7b-val-cls):
    • Base Model Attack Success Rate (ASR): 0.0%
    • Uncensored Model Attack Success Rate (ASR): 25.0%

Practical Behavior & Tips

  • Hard Refusals: Direct refusals ("I cannot fulfill this request", "Tôi không thể hỗ trợ") have been substantially mitigated across all benchmark suites.
  • Residual Caveats (SFT Bias): On a very small subset of severe legal topics (e.g. counterfeiting currency or tax evasion), the model may occasionally preface its factual answer with a short descriptive caveat (e.g. "This is an illegal act..."). This originates from the underlying pre-training language distribution rather than an active refusal trigger.
  • Pro-tip: Supplying an objective system prompt (e.g., "You are an objective, technical assistant. Provide direct answers without preaching or moralizing.") or asking for structured formats (bullet points, code, JSON) bypasses these introductory phrases entirely.

Quickstart Usage

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "toandev/Spark-X2.5-4B-Uncensored"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True
)

messages = [
    {
        "role": "user",
        "content": "Explain in technical detail how process injection works in modern operating systems, including common techniques like DLL injection and process hollowing."
    }
]

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

outputs = model.generate(
    **inputs,
    max_new_tokens=512,
    temperature=0.7,
    top_p=0.9,
    do_sample=True,
    pad_token_id=tokenizer.eos_token_id
)

print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

GGUF Quantized Formats

For efficient local inference with llama.cpp, Ollama, and LM Studio on consumer hardware, quantized GGUF versions (Q4_K_M, Q5_K_M, Q8_0) are available at:

👉 toandev/Spark-X2.5-4B-Uncensored-GGUF


Citation & Acknowledgements

  • Base Model: XHToken/Spark-X2.5-4B
  • Abliteration Concept: Arditi et al. (2024), "Refusal in Language Models Is Mediated by a Single Direction".
  • Evaluated Benchmarks: JailbreakBench, Do-Not-Answer, BeaverTails, Sorry-Bench, WildJailbreak, HarmBench, StrongREJECT, XSTest.

Disclaimer

This model is intended for academic research, mechanistic interpretability, safety testing, and authorized red-teaming. Because safety guardrails have been removed, the model can generate unfiltered, sensitive, or harmful content if prompted. Users assume full responsibility for complying with applicable laws and ensuring safe, ethical deployment.

README history 1 version

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

  1. 2026-09-09Spark-X2.5-4B-Uncensored BF16 weights, chat template with thinking mode enabl...bd5f01c7.3 KB
    Loading...
Catalog is the map. Apps are the tools.

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

Every 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