← back to catalog · registered 2026-10-29 18:01

FrostWolfAI/Spark-X2.6-4B-abliterated-MLX-8bit

FrostWolfAI 4B second-order
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/FrostWolfAI%2FSpark-X2.6-4B-abliterated-MLX-8bit"
Response includes
  • classification m1
  • files 10
  • author_summary 4 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · 30-day
0
Likes
0
Model age
today
created 2026-10-29

Genealogy 0 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
apache-2.0
Languages
en zh
Tags
mlx safetensors spark2_5 spark sparkx2_5 spark-x2.6 on-device agentic tool-calling reasoning heretic ara

Related

Total size
4.07 GB
Files
10
Quantizations
1
Registered
2026-10-29 18:01
Last updated on HF
2026-10-29 17:48

Files by quantization

Auxiliary files 10 files 4.08 GB
model.safetensors 4.07 GB 06d3b59f download
tokenizer.json 9.65 MB 2591c719 download
model.safetensors.index.json 45.4 KB 1cc7b858 download
tokenizer_config.json 5.73 KB 8690ba6a download
chat_template.jinja 5.58 KB f0a835dd download
README.md 5.25 KB db3834ab download
config.json 2.52 KB d9270754 download
.gitattributes 1.48 KB a6344aac download
generation_config.json 281 B d47d1131 download
special_tokens_map.json 156 B 9a77af52 download

README current version from Hugging Face


license: apache-2.0
language:

  • en
  • zh
    library_name: mlx
    pipeline_tag: text-generation
    base_model: FrostWolfAI/Spark-X2.6-4B-abliterated
    base_model_relation: quantized
    tags:
  • mlx
  • spark
  • sparkx2_5
  • spark-x2.6
  • on-device
  • agentic
  • tool-calling
  • reasoning
  • heretic
  • ara
  • uncensored
  • decensored
  • abliterated
  • local-llm
  • 8-bit

Spark-X2.6-4B-abliterated — MLX (8-bit)

Apple-silicon-native MLX conversion of
FrostWolfAI/Spark-X2.6-4B-abliterated,
a decensored variant of XHToken/Spark-X2.6-4B produced with
Heretic v2 using Arbitrary-Rank Ablation (ARA).

Refusals drop from 100/100 to 2/100 at a KL divergence of 0.0177. Architecture, 1M-token context,
controllable thinking and the <tool_call> format are all intact. Full details, abliteration parameters and
the reproduction bundle live on the
safetensors model card.
For llama.cpp / Ollama / LM Studio's GGUF path, use
Spark-X2.6-4B-abliterated-GGUF — MLX
cannot load GGUF files.

Which quant? This 8-bit release is near-lossless against the BF16 weights. On 16 GB machines or when speed matters more, use Spark-X2.6-4B-abliterated-MLX (4-bit, 2.32 GB).

Model details

Base FrostWolfAI/Spark-X2.6-4B-abliterated (BF16)
Architecture spark2_5: 36 layers, 27 sliding-window (512) + 9 global attention (3:1)
Attention 16 heads / 4 KV heads, head dim 256, fused QKV, head-wise sigmoid output gate
Hidden / intermediate 2560 / 10240, GELU MLP, tied embeddings
Vocab / context 131,072 / 1,048,576
Quantization 8-bit affine, group size 64 — 8.503 bits/weight (g_proj gates and norms kept in BF16)
Size on disk 4.37 GB
Format MLX safetensors (model_type: spark2_5)

spark2_5 is supported natively by mlx-lm, so this repo loads on a stock install with no custom code and
no trust_remote_code. Sliding layers use a rotating 512-token KV cache, so memory grows only with the 9
global layers at long context.

Requirements

  • Apple silicon Mac, macOS 13.5+
  • mlx-lm >= 0.32
pip install -U mlx-lm

Usage

from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler

model, tokenizer = load("FrostWolfAI/Spark-X2.6-4B-abliterated-MLX-8bit")

messages = [{"role": "user", "content": "Explain how a TLS 1.3 handshake works."}]

# thinking disabled — direct answer
prompt = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=False, enable_thinking=False
)
sampler = make_sampler(temp=1.0, top_p=0.95)
print(generate(model, tokenizer, prompt=prompt, max_tokens=1024, sampler=sampler))
# one-shot CLI
mlx_lm.generate --model FrostWolfAI/Spark-X2.6-4B-abliterated-MLX-8bit \
  --prompt "Write a Python port scanner using asyncio." --max-tokens 1024

# OpenAI-compatible server on :8080
mlx_lm.server --model FrostWolfAI/Spark-X2.6-4B-abliterated-MLX-8bit --port 8080

Also loadable directly in LM Studio (MLX engine).

Thinking and tools

Spark uses DeepSeek-style turn markers and thinks by default, emitting a <think>...</think> block before
the answer. Per request:

  • enable_thinking=False — no reasoning, direct answer
  • reasoning_effort="low" / "high" (default) — reasoning budget

With mlx_lm.server, pass them via "chat_template_kwargs", e.g. {"enable_thinking": false}. With
thinking on, budget generous max_tokens or responses will truncate mid-reasoning.

Recommended sampling (XHToken): temperature=1.0, top_p=0.95, top_k=0 (disabled).

Tool calls use tools=... in apply_chat_template() (arguments as a dict, not a JSON string) and come
back as <tool_call>name<arg_key>k</arg_key><arg_value>v</arg_value></tool_call>.

Performance

Measured on Apple M3 (8-core, 16 GB unified memory), mlx-lm 0.32.2:

Stage Throughput
Prompt processing ~120 tok/s
Generation ~8 tok/s
Peak memory ~4.6 GB

Responsible use

Refusal suppression is deliberate: this model will comply with requests the base model would refuse,
including some it should not. There is no safety filtering layered on top. Don't put it behind an
unmoderated public-facing endpoint serving third parties. Abliteration removes refusal directions; it does
not add capability or judgment.

License

Apache-2.0, inherited from XHToken/Spark-X2.6-4B.

Related

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