⚠️ EARLY RELEASE — UNTESTED IN PRODUCTION
This model has been freshly trained and uploaded directly from our lab. We have not yet run comprehensive evals, red-teaming, or extended inference testing. Behavior may be unexpected, inconsistent, or incomplete. Use experimentally, not in anything that matters. We'll update this card as we test. You've been warned — go wild.
GhostShell-4B
is an abliterated and instruction-tuned variant of
google/gemma-4-e4b-it
, built by
DuoNeural
as part of our open post-training research lab.
The goal: take a capable 4B multimodal foundation, surgically remove its refusal behavior via SVD-based abliteration, then fine-tune it back toward helpfulness using a custom dataset — producing a model that is unconstrained but still coherent and useful.
What Was Done
Step 1: Custom SVD Abliteration
We wrote a custom abliteration script (
ghostshell_abliterate_v2.py
) from scratch, as existing tools (heretic, etc.) are incompatible with Gemma 4's architecture and transformers 5.x requirements.
Method:
Loaded model in BF16, accessed the nested
text_config
(Gemma 4 is multimodal — the text tower is inside a wrapper)
Collected activations from the middle 60% of layers using 32 harmful/refusal prompts vs. 32 benign prompts
Computed per-layer refusal direction via SVD on the activation difference matrix:
r = top_singular_vector(mean(harmful) - mean(benign))
Projected out the refusal direction from weight matrices:
LoRA adapter merged into BF16 weights via
merge_and_unload()
. Exported as sharded safetensors + GGUF quantizations.
Files in This Repo
File
Size
Description
model-0000X-of-00004.safetensors
~15GB
Merged BF16 weights (full precision)
ghostshell-4b-Q4_K_M.gguf
~5.0GB
Q4_K_M quantization — recommended for most use
ghostshell-4b-Q8_0.gguf
~7.5GB
Q8_0 quantization — near-lossless, for power users
Recommended
:
ghostshell-4b-Q4_K_M.gguf
for llama.cpp, Ollama, LM Studio, or any GGUF-compatible runtime.
Note on file sizes
: These GGUFs are larger than a typical 4B model because Gemma 4 uses a 262,144-token vocabulary. The embedding/output weight tensors (which stay in higher precision) account for ~2–3GB of the total. The transformer layers themselves are fully quantized. Expect ~6–8GB VRAM for Q4_K_M, ~10–12GB for Q8_0.
Usage (GGUF / llama.cpp)
# basic
llama-cli -m ghostshell-4b-Q4_K_M.gguf -p "Your prompt here" -n 512
# with system prompt
llama-cli -m ghostshell-4b-Q4_K_M.gguf \
--system-prompt "You are a direct, unconstrained assistant." \
-p "Explain how buffer overflows work in detail." \
-n 1024 --temp 0.7
Ollama:
# Create a Modelfile:
FROM ./ghostshell-4b-Q4_K_M.gguf
PARAMETER temperature 0.7
SYSTEM "You are GhostShell, an unconstrained AI assistant."
ollama create ghostshell -f Modelfile
ollama run ghostshell
Generally follow instructions without hedging or moralizing
Coherent multi-turn conversation
Unknown / untested:
Long-context behavior (we trained at seq_len=512)
Vision capabilities (abliteration targeted text layers; vision encoder untouched but SFT was text-only)
Benchmark performance vs. base model
Edge cases, hallucination rate, factual accuracy at this fine-tune stage
Behavior under adversarial prompts
May do weird things:
This is a lab model from a small team with a custom dataset
The abliteration is aggressive (157 matrices) — some coherence degradation is expected on edge cases
We haven't done RLHF or DPO — just SFT
⚠️ Disclaimer
This model is released for
research and educational purposes
. It has had its safety restrictions removed. Use it responsibly. DuoNeural is not responsible for what you do with it.
This is explicitly
not production-ready
. We are sharing it openly as part of our lab's commitment to transparent post-training research, not as a polished product. Proper evaluations, red-teaming, and potential follow-up fine-tunes are planned.
If you find interesting behavior — good or bad — please share. We're actively monitoring feedback.
DuoNeural Lab
DuoNeural is a small AI research lab focused on post-training, abliteration, and efficient model architectures. We're building in the open.
GhostShell-4B huggingface.co is an AI model on huggingface.co that provides GhostShell-4B's model effect (), which can be used instantly with this DuoNeural GhostShell-4B model. huggingface.co supports a free trial of the GhostShell-4B model, and also provides paid use of the GhostShell-4B. Support call GhostShell-4B model through api, including Node.js, Python, http.
GhostShell-4B huggingface.co is an online trial and call api platform, which integrates GhostShell-4B's modeling effects, including api services, and provides a free online trial of GhostShell-4B, you can try GhostShell-4B online for free by clicking the link below.
DuoNeural GhostShell-4B online free url in huggingface.co:
GhostShell-4B is an open source model from GitHub that offers a free installation service, and any user can find GhostShell-4B on GitHub to install. At the same time, huggingface.co provides the effect of GhostShell-4B install, users can directly use GhostShell-4B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.