Downloads · 30 days
18
21% of all-time downloads
aipster/Phi-4-mini-instruct-abliterated-q4f16_1-MLC
Phi-4-mini-instruct-abliterated-q4f16_1-MLC is a text generation model from aipster. Use it when you need the model to write or continue text. It is set up for mlc-llm. The card lists the license as mit.
An uncensored Phi-4-mini, quantized to 4-bit MLC format for in-browser inference via WebGPU.
Downloads · 30 days
18
21% of all-time downloads
All-time downloads
85
Public
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
An uncensored Phi-4-mini, quantized to 4-bit MLC format for in-browser inference via WebGPU.
This is an MLC-ready build of huihui-ai/Phi-4-mini-instruct-abliterated, itself an abliterated (refusal-removed) variant of Microsoft's Phi-4-mini-instruct. The weights are quantized to q4f16_1 (4-bit weights, 16-bit activations) and packaged for use with MLC-LLM and WebLLM.
Everything runs on-device — no server, no API key, no data leaves your machine.
Abliteration is a surgical edit to the model weights that removes the trained refusal behavior without retraining. The architecture and tokenizer are identical to the stock Phi-4-mini; only the weight values differ. This means the model will engage with topics that the original would refuse, but it also means there are no safety guardrails between you and the raw model output.
This is sovereignty taken to its conclusion: your hardware, your data, your judgment — and your responsibility for how you use it.
| Architecture | Phi-3 (Phi3ForCausalLM), 32 layers, 3072 hidden, 24 heads / 8 KV heads |
| Parameters | 3.8B (original fp16) |
| Quantization | q4f16_1 (MLC 4-bit weights, 16-bit activations) |
| Download size | ~2.1 GB (66 shards) |
| VRAM | ~3.4 GB |
| Context window | 131,072 tokens (LongRoPE); 4,096 recommended for WebGPU |
| Conv template | phi-4 |
| License | MIT (inherited from base) |
This model reuses the prebuilt WebAssembly model_lib from the stock Phi-4-mini in WebLLM's catalog (Phi-4-mini-instruct-q4f16_1-MLC), since the architecture is identical — only weight values change.
import { CreateMLCEngine, prebuiltAppConfig } from "@mlc-ai/web-llm";
// Borrow the prebuilt model_lib (WASM) from the stock Phi-4-mini record
const baseRecord = prebuiltAppConfig.model_list.find(
m => m.model_id === "Phi-4-mini-instruct-q4f16_1-MLC"
);
const engine = await CreateMLCEngine(
"Phi-4-mini-instruct-abliterated-q4f16_1-MLC",
{
appConfig: {
model_list: [{
model: "https://huggingface.co/aipster/Phi-4-mini-instruct-abliterated-q4f16_1-MLC/resolve/main/",
model_id: "Phi-4-mini-instruct-abliterated-q4f16_1-MLC",
model_lib: baseRecord.model_lib,
overrides: { context_window_size: 4096 },
}],
},
}
);
const reply = await engine.chat.completions.create({
messages: [{ role: "user", content: "Explain how a pin-tumbler lock works." }],
});
console.log(reply.choices[0].message.content);
mlc_llm chat HF://aipster/Phi-4-mini-instruct-abliterated-q4f16_1-MLC --device vulkan
This model powers the top-tier slot in the AIpster Local AI Playground — a browser-based playground where every model runs entirely on your GPU via WebGPU. No sign-up required for smaller models; this one is available to AIpster members.
huihui-ai/Phi-4-mini-instruct-abliterated (safetensors, bf16).mlcaidev/package-cpu Docker image (the pip nightly was ABI-broken for linux x86_64 at time of conversion).mlc_llm convert_weight with --quantization q4f16_1 to produce the 66 weight shards.mlc_llm gen_config with --conv-template phi-4 to produce mlc-chat-config.json.tensor-cache.json against the official mlc-ai/Phi-4-mini-instruct-q4f16_1-MLC reference: 66 records, 323 parameters, identical names and shapes — confirming safe reuse of the prebuilt WebAssembly model_lib.MIT — inherited from the base model chain. See microsoft/Phi-4-mini-instruct for the original license terms.