Instructions to use pankajmathur/orca_mini_phi-4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pankajmathur/orca_mini_phi-4-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("pankajmathur/orca_mini_phi-4-GGUF", dtype="auto") - llama-cpp-python
How to use pankajmathur/orca_mini_phi-4-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="pankajmathur/orca_mini_phi-4-GGUF", filename="orca_mini_phi-4.IQ4_XS.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use pankajmathur/orca_mini_phi-4-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
Use Docker
docker model run hf.co/pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use pankajmathur/orca_mini_phi-4-GGUF with Ollama:
ollama run hf.co/pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
- Unsloth Studio new
How to use pankajmathur/orca_mini_phi-4-GGUF with 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 pankajmathur/orca_mini_phi-4-GGUF 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 pankajmathur/orca_mini_phi-4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for pankajmathur/orca_mini_phi-4-GGUF to start chatting
- Docker Model Runner
How to use pankajmathur/orca_mini_phi-4-GGUF with Docker Model Runner:
docker model run hf.co/pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
- Lemonade
How to use pankajmathur/orca_mini_phi-4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pankajmathur/orca_mini_phi-4-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.orca_mini_phi-4-GGUF-Q4_K_M
List all available models
lemonade list
Model Name: orca_mini_phi-4-GGUF
orca_mini_phi-4-GGUF is static quant version of orca_mini_phi-4
"Obsessed with Open Source GenAI's potential? So am I ! Let's Contribute together 🚀 https://www.linkedin.com/in/pankajam"
NOTICE
By providing proper credit and attribution, you are granted permission to use this model as a foundational base for further Full fine tuning, DPO, PPO or ORPO tuning and any kind of Merges. I actively encourage users to customize and enhance the model according to their specific needs, as this version is designed to be a comprehensive general model. Dive in and innovate!
Example Usage on Your Personal Computer
My preferred method is Ollama but you can choose other ways to use this modle locally on your PC by going to right side of this repo card and select "Use this model".
Here are the steps for Ollama:
- Install Ollama https://github.com/ollama/ollama
- After Installing Ollama (choose various available quants size, depending upon your PC RAM) run below command on your terminal, for example for Nov 2023 MacBook Pro with 16GB RAM:
ollama run hf.co/pankajmathur/orca_mini_phi-4-GGUF:Q4_K_S
- Start Chatting with this model!
- Optional: For ChatGPT like experience (or better), Install Open-Webui https://github.com/open-webui/open-webui
pip install open-webui
open-webui serve
- open-webui will auto connect to Ollama running this model and you can start chatting right away
- Downloads last month
- 29
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit