Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

bisonnetworking
/
MediPhi-Instruct-mlx-4bit

Text Generation
MLX
Safetensors
English
phi3
mlx-lm
phi
phi-3
medical
clinical
healthcare
quantized
4bit
on-device
ios
apple-silicon
conversational
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use bisonnetworking/MediPhi-Instruct-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use bisonnetworking/MediPhi-Instruct-mlx-4bit with MLX:

    # Make sure mlx-lm is installed
    # pip install --upgrade mlx-lm
    
    # Generate text with mlx-lm
    from mlx_lm import load, generate
    
    model, tokenizer = load("bisonnetworking/MediPhi-Instruct-mlx-4bit")
    
    prompt = "Write a story about Einstein"
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, add_generation_prompt=True
    )
    
    text = generate(model, tokenizer, prompt=prompt, verbose=True)
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • MLX LM

    How to use bisonnetworking/MediPhi-Instruct-mlx-4bit with MLX LM:

    Generate or start a chat session
    # Install MLX LM
    uv tool install mlx-lm
    # Interactive chat REPL
    mlx_lm.chat --model "bisonnetworking/MediPhi-Instruct-mlx-4bit"
    Run an OpenAI-compatible server
    # Install MLX LM
    uv tool install mlx-lm
    # Start the server
    mlx_lm.server --model "bisonnetworking/MediPhi-Instruct-mlx-4bit"
    # Calling the OpenAI-compatible server with curl
    curl -X POST "http://localhost:8000/v1/chat/completions" \
       -H "Content-Type: application/json" \
       --data '{
         "model": "bisonnetworking/MediPhi-Instruct-mlx-4bit",
         "messages": [
           {"role": "user", "content": "Hello"}
         ]
       }'
MediPhi-Instruct-mlx-4bit
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
bisonnetworking's picture
bisonnetworking
Claude Sonnet 4.5
Fix tokenizer configuration for proper MLX compatibility
eaba2fa 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • README.md
    1.66 kB
    Upload folder using huggingface_hub 5 months ago
  • chat_template.jinja
    430 Bytes
    Upload folder using huggingface_hub 5 months ago
  • config.json
    4.14 kB
    Upload folder using huggingface_hub 5 months ago
  • generation_config.json
    147 Bytes
    Upload folder using huggingface_hub 5 months ago
  • model.safetensors
    2.15 GB
    xet
    Upload folder using huggingface_hub 5 months ago
  • model.safetensors.index.json
    32.7 kB
    Upload folder using huggingface_hub 5 months ago
  • tokenizer.json
    3.62 MB
    Upload folder using huggingface_hub 5 months ago
  • tokenizer_config.json
    2.12 kB
    Fix tokenizer configuration for proper MLX compatibility 5 months ago