models

/

phi-4-llama-distill-15B-Q4_K_M

Version:

15B-Q4_K_M CPU: Q4_K_M

MAX Model
  1. Install our magic package manager:

    curl -ssL https://magic.modular.com/ | bash

    Then run the source command that's printed in your terminal.

  2. Install Max Pipelines in order to run this model.

    magic global install max-pipelines && magic global update
  3. Start a local endpoint for phi-4-llama-distill/15B-Q4_K_M:

    max-pipelines serve --huggingface-repo-id=unsloth/phi-4-GGUF \
    --weight-path=kholiavko/test-ph4/unsloth.Q4_K_M.gguf

    The endpoint is ready when you see the URI printed in your terminal:

    Server ready on http://0.0.0.0:8000 (Press CTRL+C to quit)
  4. Now open another terminal to send a request using curl:

    curl -N http://0.0.0.0:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
        "model": "unsloth/phi-4-GGUF",
        "stream": true,
        "messages": [
            {"role": "system", "content": "You are a helpful assistant."},
            {"role": "user", "content": "Who won the World Series in 2020?"}
        ]
    }' | grep -o '"content":"[^"]*"' | sed 's/"content":"//g' | sed 's/"//g' | tr -d '
    ' | sed 's/\n//g'
  5. 🎉 Hooray! You’re running Generative AI. Our goal is to make this as easy as possible.

Deploy this model to cloud

DETAILS

ChatMODEL CLASS
MAX Model

MAX Models are popular open-source models converted to MAX’s native graph format. Anything with the label is either SOTA or being worked on. Learn more about MAX Models.

Browse all MAX Models

HARDWARE
CPU
QUANTIZATION
Q4_K_M
ARCHITECTURE
MAX Model

MAX GITHUB

Modular / MAX

BASE MODEL

unsloth

unsloth/phi-4-GGUF

QUANTIZED BY

kholiavko

kholiavko/test-ph4

QUESTIONS ABOUT THIS MODEL?

Leave a comment

PROBLEMS WITH THE CODE?

File an Issue

TAGS

transformers

/

gguf

/

phi

/

phi4

/

unsloth

/

nlp

/

math

/

code

/

chat

/

conversational

/

text-generation

/

en

/

arxiv:2412.08905

/

base_model:microsoft/phi-4

/

base_model:quantized:microsoft/phi-4

/

license:mit

/

endpoints_compatible

/

region:us

Resources & support for
running phi-4-llama-distill-15B

@ Copyright - Modular Inc - 2025