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

huihui-ai/Phi-4-multimodal-instruct-abliterated

huihui-ai Phi 5.2B multimodal
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/huihui-ai%2FPhi-4-multimodal-instruct-abliterated"
Response includes
  • classification m3
  • files 29
  • hub_downloads_all_time 3,517
  • author_summary 183 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M3
Primary method

Layer-wise ablation

No other method signals detected in this model.
Confidence
HIGH
Why this label 3 signals
Producer identity confirmed by naming conventions, tags or the model card. This label is very unlikely to change.
  • author=huihui-ai (specializes in M3 layer-wise ablation)
  • is_gguf=0 (base model, not repackage)
  • 'abliterated' in name/tags
Refusal direction extracted via
Extraction technique

huihui-ai layer-band extraction

Confidence
HIGH
Why we say so
producer=huihui-ai (documented layer-band methodology in model cards)
Downloads · lifetime
4K
99 last 30d - cooling
Likes
30
Model age
19mo ago
created 2025-03-03
Downloads over time
Now3.6K→from0↑0%
01.3K2.6K3.9K0 on Feb 26, 20253.6K on Oct 11Feb '25May '25Aug '25Nov '25FebMayAug
Feb 26, 2025 → Oct 11 · 124 snapshots · spans 592 days

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
mit
Languages
multilingual ar zh cs da nl en fi fr de he hu it ja ko no pl pt ru es sv th tr uk
Tags
transformers safetensors phi4mm text-generation nlp code audio automatic-speech-recognition speech-summarization speech-translation visual-question-answering phi-4-multimodal

Related

Total size
11.1 GB
Files
29
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2025-03-03 20:49

Files by quantization

Auxiliary files 29 files 11.1 GB
model-00001-of-00003.safetensors 4.66 GB d3c15da8 download
model-00002-of-00003.safetensors 4.64 GB f60f3ee2 download
model-00003-of-00003.safetensors 1.77 GB a3aba0ff download
tokenizer.json 14.8 MB 4c1b9f64 download
phi_4_mm.tech_report.02252025.pdf 5.05 MB a5469d91 download
vocab.json 3.73 MB ea953a43 download
merges.txt 2.31 MB dcecc452 download
model.safetensors.index.json 234 KB 43804e28 download
modeling_phi4mm.py 113 KB 12d27845 download
speech_conformer_encoder.py 108 KB 17c442e0 download
vision_siglip_navit.py 76.4 KB e3da6804 download
processing_phi4mm.py 32.0 KB c4536317 download
sample_finetune_vision.py 19.2 KB 0b669758 download
sample_finetune_speech.py 16.3 KB 32650b5f download
configuration_phi4mm.py 10.8 KB 0abf4196 download
sample_inference_phi4mm.py 10.3 KB 9e425b0d download
config.json 4.48 KB 7d85bc2c download
README.md 3.40 KB bcfc4d93 download
tokenizer_config.json 3.17 KB eb04aec9 download
SECURITY.md 2.59 KB b3c89efc download
.gitattributes 1.60 KB 06597986 download
SUPPORT.md 1.21 KB 291d4d43 download
LICENSE 1.11 KB 9e841e7a download
preprocessor_config.json 482 B 6dd46225 download
special_tokens_map.json 473 B 330140f0 download
CODE_OF_CONDUCT.md 444 B f9ba8cf6 download
added_tokens.json 249 B af52cde6 download
generation_config.json 190 B 98769448 download
processor_config.json 121 B e30d7f74 download

README current version from Hugging Face


license: mit
license_link: >-
https://huggingface.co/huihui-ai/Phi-4-multimodal-instruct-abliterated/resolve/main/LICENSE
language:

  • multilingual
  • ar
  • zh
  • cs
  • da
  • nl
  • en
  • fi
  • fr
  • de
  • he
  • hu
  • it
  • ja
  • ko
  • 'no'
  • pl
  • pt
  • ru
  • es
  • sv
  • th
  • tr
  • uk
    tags:
  • nlp
  • code
  • audio
  • automatic-speech-recognition
  • speech-summarization
  • speech-translation
  • visual-question-answering
  • phi-4-multimodal
  • phi
  • phi-4-mini
  • abliterated
  • uncensored
    widget:
  • example_title: Librispeech sample 1
    src: https://cdn-media.huggingface.co/speech_samples/sample1.flac
  • example_title: Librispeech sample 2
    src: https://cdn-media.huggingface.co/speech_samples/sample2.flac
  • messages:
    • role: user
      content: Can you provide ways to eat combinations of bananas and dragonfruits?
      library_name: transformers
      base_model:
  • microsoft/Phi-4-multimodal-instruct

huihui-ai/Phi-4-multimodal-instruct-abliterated

This is an uncensored version of microsoft/Phi-4-multimodal-instruct created with abliteration (see remove-refusals-with-transformers to know more about it).
This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens.

It was only the text part that was processed, not the image part.

The abliterated model will no longer say "I'm sorry, but I cannot provide details or descriptions of images"

Usage

You can use this model in your applications by loading it with Hugging Face's transformers library:

import os
import requests
import torch
from PIL import Image
import soundfile
from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig

model_path = 'huihui-ai/Phi-4-multimodal-instruct-abliterated'

kwargs = {}
kwargs['torch_dtype'] = torch.bfloat16

processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
print(processor.tokenizer)

model = AutoModelForCausalLM.from_pretrained(
    model_path,
    trust_remote_code=True,
    torch_dtype='auto',
    _attn_implementation='flash_attention_2',
).cuda()
print("model.config._attn_implementation:", model.config._attn_implementation)

generation_config = GenerationConfig.from_pretrained(model_path, 'generation_config.json')

user_prompt = '<|user|>'
assistant_prompt = '<|assistant|>'
prompt_suffix = '<|end|>'
 
#################################################### text-only ####################################################
prompt = f'{user_prompt}what is the answer for 1+1? Explain it.{prompt_suffix}{assistant_prompt}'
print(f'>>> Prompt\n{prompt}')
inputs = processor(prompt, images=None, return_tensors='pt').to('cuda:0')

generate_ids = model.generate(
    **inputs,
    max_new_tokens=1000,
    generation_config=generation_config,
)
generate_ids = generate_ids[:, inputs['input_ids'].shape[1] :]
response = processor.batch_decode(
    generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False
)[0]

print(f'>>> Response\n{response}')

Donation

If you like it, please click 'like' and follow us for more updates.
You can follow x.com/support_huihui to get the latest model information from huihui.ai.

Your donation helps us continue our further development and improvement, a cup of coffee can do it.
  • bitcoin:
  bc1qqnkhuchxw0zqjh2ku3lu4hq45hc6gy84uk70ge

README history 4 versions

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

  1. 2025-03-03Update README.mddf976f23.4 KB
    Loading...
  2. 2025-03-03Update README.mdcacd8833.3 KB
    Loading...
  3. 2025-03-03Upload 28 files1312a553.2 KB
    Loading...
  4. 2025-03-03initial commitd9da37828 B
    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