How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="psgokulkrishnan/phi-4-mini-instruct-GGUF",
	filename="",
)
llm.create_chat_completion(
	messages = [
		{
			"role": "user",
			"content": "What is the capital of France?"
		}
	]
)

https://huggingface.co/microsoft/Phi-4-mini-instruct

Usage: from llama_cpp import Llama

GGUF_PATH = "./phi_4_mini_instruct_Q4_K_M.gguf"

print("⏳ Initializing long-context GGUF engine directly into memory layout...") llm = Llama( model_path=GGUF_PATH, n_ctx=16384,
flash_attn=True,
n_threads=4,
verbose=False )

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

4-bit

5-bit

6-bit

8-bit

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