How to use from
Unsloth Studio
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for pleasen/phi-4-mlx-3Bit to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for pleasen/phi-4-mlx-3Bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for pleasen/phi-4-mlx-3Bit to start chatting
Load model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
    model_name="pleasen/phi-4-mlx-3Bit",
    max_seq_length=2048,
)
Quick Links

pleasen/phi-4-mlx-3Bit

The Model pleasen/phi-4-mlx-3Bit was converted to MLX format from unsloth/phi-4 using mlx-lm version 0.22.1.

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("pleasen/phi-4-mlx-3Bit")

prompt="hello"

if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

response = generate(model, tokenizer, prompt=prompt, verbose=True)
Downloads last month
1
Safetensors
Model size
2B params
Tensor type
F16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

3-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for pleasen/phi-4-mlx-3Bit

Base model

microsoft/phi-4
Finetuned
unsloth/phi-4
Quantized
(30)
this model