How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf llmware/phi-4-mini-gguf:Q4_K_M
Configure the model in Pi
# Install Pi:
npm install -g @earendil-works/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "llmware/phi-4-mini-gguf:Q4_K_M"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

phi-4-mini-instruct-gguf

phi-4-mini-instruct-gguf is a GGUF Q4_K_M int4 quantized version of phi-4-mini-instruct, providing a very fast inference implementation, optimized for AI PCs.

This model will run on an AI PC with at least 16 GB of memory.

Model Description

  • Developed by: Microsoft
  • Model type: phi-4-mini
  • Parameters: 4 billion
  • Model Parent: Microsoft/Phi-4-Mini-Instruct
  • Language(s) (NLP): English
  • License: Apache 2.0
  • Uses: Chat, general-purpose LLM
  • Quantization: int4

Model Card Contact

llmware on github

llmware on hf

llmware website

Downloads last month
125
GGUF
Model size
4B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support