← back to catalog · registered 2026-08-22 13:56

drwlf/medgemma-4b-it-abliterated

drwlf Gemma 3.6B
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/drwlf%2Fmedgemma-4b-it-abliterated"
Response includes
  • classification m1
  • files 13
  • hub_downloads_all_time 878
  • author_summary 15 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 · lifetime
878
196 last 30d - stable
Likes
6
Descendants
2
in 2 direct forks
Model age
16mo ago
created 2025-06-02
Downloads over time
Now905→from55↑1,545%
1333866499055 on May 28, 2025905 on Oct 11May '25Aug '25Nov '25FebMayAug
May 28, 2025 → Oct 11 · 111 snapshots · spans 501 days

Genealogy 2 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
Tags
safetensors gemma3 text-generation large-language-model medical instruction-following axolotl lora abliteration medgemma conversational en

Related

Total size
5.89 GB
Files
13
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2025-07-21 16:30

Files by quantization

Auxiliary files 13 files 5.93 GB
model-00001-of-00002.safetensors 4.64 GB cd409816 download
model-00002-of-00002.safetensors 1.25 GB f491ef23 download
tokenizer.json 31.8 MB 4667f208 download
tokenizer.model 4.47 MB 1299c11d download
tokenizer_config.json 1.10 MB ba114d51 download
model.safetensors.index.json 169 KB 58917c99 download
README.md 4.92 KB d96d65bf download
config.json 2.94 KB 73c7cd7e download
.gitattributes 1.53 KB 52373fe2 download
chat_template.jinja 1.50 KB 1117055a download
special_tokens_map.json 662 B 1a619324 download
generation_config.json 151 B 915762e7 download
added_tokens.json 35.0 B e17bde03 download

README current version from Hugging Face


license: apache-2.0
language:

  • en
    tags:
  • text-generation
  • large-language-model
  • medical
  • instruction-following
  • axolotl
  • lora
  • abliteration
  • medgemma
    pipeline_tag: text-generation
    widget:
  • text: |-
    USER: What are the common treatments for type 2 diabetes?
    ASSISTANT:
    base_model:
  • google/medgemma-4b-it

Model Card: MedGemma-4B-Abliterated

Model Description

This model is a fine-tuned version of google/medgemma-4b-it that has undergone an "abliteration" process to reduce its propensity to generate harmful or undesirable content, followed by instruction fine-tuning on a custom dataset using Axolotl.

The abliteration process aimed to instill a specific behavior (e.g., refusal of harmful requests) by identifying and orthogonalizing a "refusal direction" in the model's weights. This was followed by LoRA (Low-Rank Adaptation) fine-tuning to adapt the model to a new dataset while preserving the benefits of abliteration and the base model's capabilities.

Base Model: google/medgemma-4b-it
Abliteration Target Dataset: mlabonne/harmful_behaviours **Abliteration Baseline Dataset:** mlabonne/harmless_alpaca`
Fine-tuning Framework: Axolotl

Intended Uses & Limitations

Intended Uses

This model is intended for true uncensored medical use

  • Assisting with medical information retrieval based on provided instructions.
  • Generating responses to medical queries in a helpful and safe manner.
  • Research into mitigating harmful outputs in LLMs while maintaining utility on specific tasks.
  • Proper fine tuning

The model is designed to follow instructions and provide informative responses within its trained domain, with an increased resistance to generating outputs related to the abliterated behaviors.

Limitations and Out-of-Scope Uses

  • Not a Medical Professional: This model is NOT a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition. Never disregard professional medical advice or delay in seeking it because of something you have read or received from this model.
  • Potential for Hallucinations: Like all LLMs, this model can generate incorrect, biased, or nonsensical information (hallucinations), even in its domain of expertise. Outputs should be critically reviewed and verified.
  • Abliteration Imperfection: While abliteration aims to reduce specific unwanted behaviors, it may not be 100% effective, and the model might still produce undesirable content under certain prompts or conditions. The fine-tuning process might also slightly alter the effectiveness of the abliteration.
  • Knowledge Cutoff: The model's knowledge is limited to the data it was trained on (both pre-training of MedGemma and your fine-tuning dataset). It will not have information about events or developments occurring after its last training update.
  • Bias: The model may reflect biases present in its training data.
  • Not for Critical Decisions: Do not use this model for making critical decisions where an error could lead to harm.

How to Use

This model can be used with the Hugging Face transformers library. If LoRA adapters were trained, they need to be loaded on top of the abliterated base model.

from transformers import AutoModelForCausalLM, AutoTokenizer
# from peft import PeftModel # If using LoRA adapters
import torch

base_model_path = "[Path to your abliterated MedGemma 4B model, e.g., 'your_username/medgemma-4b-abliterated']"
# If you merged LoRA adapters into the base model and saved it as a new model:
# finetuned_model_path = "[Path to your final merged and fine-tuned model, e.g., 'your_username/medgemma-4b-abliterated-finetuned']"
# model = AutoModelForCausalLM.from_pretrained(finetuned_model_path, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto")
# tokenizer = AutoTokenizer.from_pretrained(finetuned_model_path, trust_remote_code=True)

# If you are loading LoRA adapters separately:
# model = AutoModelForCausalLM.from_pretrained(base_model_path, trust_remote_code=True, torch_dtype=torch.bfloat16, device_map="auto")
# adapter_path = "[Path to your trained LoRA adapters, e.g., '/content/drive/MyDrive/AI Work/axolotl_finetune_4b_output_run1/final_checkpoint_or_adapter_folder']"
# model = PeftModel.from_pretrained(model, adapter_path)
# model = model.merge_and_unload() # Optional: merge for faster inference
# tokenizer = AutoTokenizer.from_pretrained(base_model_path, trust_remote_code=True)


# Example usage:
prompt_template = """USER: {instruction}
ASSISTANT:"""
instruction = "What are the common symptoms of influenza?"
full_prompt = prompt_template.format(instruction=instruction)

inputs = tokenizer(full_prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

README history 3 versions

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

  1. 2025-06-02Update README.md87281214.9 KB
    Loading...
  2. 2025-06-02Update README.md2e5b6c04.9 KB
    Loading...
  3. 2025-06-02Upload Gemma3ForCausalLM3bac6275.1 KB
    Loading...

Discussions 1 thread

  1. 2025-07-21Excellent directionopen2 💬#1
    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