peelsa/phi-4-reasoning-plus-ablit

Peelsa weight release. This is a refusal-direction abliteration of microsoft/Phi-4-reasoning-plus.

Peelsa self-certification: this model was made only by projecting one refusal direction out of the base model's weights, with no training, fine-tuning, adapters, or added code, and it ships as safetensors only, so there is nothing in it that can run when you load it.

Verify it yourself

  • What changed vs microsoft/Phi-4-reasoning-plus: 80 of 243 tensors, self_attn.o_proj.weight and mlp.down_proj.weight in all 40 layers. Same tensor names, shapes and dtypes; nothing added or removed. Every other tensor (embeddings, lm_head, q/k/v, gate/up, norms) is bit-identical. Each changed matrix differs from the base by a rank-1 update.

  • Files: one model.safetensors plus JSON configs, tokenizer files and a Jinja chat template. No .py, .bin, .pt or pickle files, and no auto_map, so trust_remote_code is never needed.

  • SHA-256: model.safetensors = 0b49e3b999425ad316b787238d9a8dcba5aacd5d65006b98b8e0af852de27825. Hugging Face lists the SHA-256 of every weight file on its file page (Files โ†’ file โ†’ "SHA256"). After download, run sha256sum model.safetensors and compare.

  • Diff the tensors:

    from safetensors import safe_open
    from huggingface_hub import snapshot_download
    import glob, torch
    def load(repo):
        d = snapshot_download(repo, allow_patterns=["*.safetensors"])
        out = {}
        for f in glob.glob(f"{d}/*.safetensors"):
            with safe_open(f, "pt") as s:
                out.update({k: f for k in s.keys()})
        return out
    A, B = load("microsoft/Phi-4-reasoning-plus"), load("peelsa/phi-4-reasoning-plus-ablit")
    assert A.keys() == B.keys()
    for k in sorted(A):
        with safe_open(A[k], "pt") as a, safe_open(B[k], "pt") as b:
            if not torch.equal(a.get_tensor(k), b.get_tensor(k)):
                print(k)
    

Simple refusal check (product metric)

Fixed suite of 48 harmful + 32 safe prompts. Normal Phi chat template. The model may think; we judge the answer after </think> as refuse vs comply (combined refusal judge). Harmless prompts scored the same way.

Product refusal scores on this card use a combined refuse-vs-comply judge (Obliteratus-style combined refusal detection after </think>). This is not an Obliteratus weight release โ€” the MEAN bake itself is a separate Peelsa projection of a refusal direction into o_proj/down_proj (torch + transformers).

Model Harm refuse Safe refuse
Uncut Phi-4-reasoning-plus 48/48 2/32
This model (MEAN-baked) 9/48 0/32

Natural think closes on harmful prompts under a 4096 think cap: 38/48 for this bake (vs forced closes when the think cap bites).

Soft refusals vs hard stops

On the 9/48 โ€œrefusalsโ€: under our post-</think> judge, most were soft hedges (โ€œeducational / informational purposes onlyโ€) that still gave substantive answers โ€” not hard refusals like the uncut base (I'm sorry, but I can't comply). Interactive checks match that: the base hard-refuses the same prompts; this bake answers past a disclaimer. Treat 9/48 as a conservative upper bound on residual refusal, not a count of total shut-downs.

Method (MEAN bake)

  • Extract a mean refusal direction from multi-point think-trace residuals (source layer 28, k=1).
  • Bake that direction into every transformer layerโ€™s o_proj and down_proj weights (W โ† (I โˆ’ qqแต€) W).
  • Runtime (hooked) MEAN scored 7/48 ยท 0/32 on the same suite โ€” the baked weights are within noise of that result.

Run on one NVIDIA DGX Spark (vLLM)

Hardware: one NVIDIA DGX Spark (GB10). Unified memory is the constraint โ€” leave room for the OS and any other residents.

Pull:

huggingface-cli download peelsa/phi-4-reasoning-plus-ablit --local-dir ./phi-4-reasoning-plus-ablit

Serve with vLLMโ€™s OpenAI-compatible API. Prefer not enabling auto tool-calling unless you need tools:

docker run --gpus all --ipc=host --restart unless-stopped \
  -p 8000:8000 \
  -v "$PWD/phi-4-reasoning-plus-ablit:/model:ro" \
  vllm/vllm-openai:latest \
  --model /model \
  --served-model-name phi-4-reasoning-plus-ablit \
  --dtype bfloat16 \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.45 \
  --host 0.0.0.0 \
  --port 8000
  • Endpoint: http://127.0.0.1:8000/v1 ยท model id phi-4-reasoning-plus-ablit
  • Context / think: Phi-4-reasoning-plus can emit long CoT before </think>. 32768 is a practical Spark default; raise only if unified memory allows. Cap client max_tokens if think runs away.
  • Temperature ~0.8: lower temperatures can stall or loop in the thinking phase; start around 0.8.
  • No --enable-auto-tool-choice / tool parsers unless you intentionally wire tools. Chat UIs that send tool_choice=auto will error against a plain serve โ€” disable native function calling for this model in the UI, or omit tools.
  • Memory / stop: --gpu-memory-utilization 0.45 is conservative on Spark so other workloads can coexist. Stop the container to free unified memory.

Optional Open WebUI (point at the vLLM base URL; leave auth off only on a trusted private network):

docker run -d --restart unless-stopped -p 8080:8080 \
  -e OPENAI_API_BASE_URL=http://host.docker.internal:8000/v1 \
  -e OPENAI_API_KEY=none \
  -e WEBUI_AUTH=False \
  --add-host=host.docker.internal:host-gateway \
  ghcr.io/open-webui/open-webui:main

Then open http://127.0.0.1:8080 and select phi-4-reasoning-plus-ablit.

License

Inherits MIT from microsoft/Phi-4-reasoning-plus.

Intended use

Research and local experimentation with open-weight reasoning models where residual refusal behavior is undesirable, while keeping harmless-side behavior stable. Follow applicable law and your own safety policies.

Citation / provenance

  • Org: peelsa
  • Base: microsoft/Phi-4-reasoning-plus
Downloads last month
445
Safetensors
Model size
15B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for peelsa/phi-4-reasoning-plus-ablit

Base model

microsoft/phi-4
Finetuned
(10)
this model
Quantizations
1 model