Instructions to use tensorblock/Phi-3.5-mini-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Phi-3.5-mini-instruct-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Phi-3.5-mini-instruct-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Phi-3.5-mini-instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Phi-3.5-mini-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/Phi-3.5-mini-instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Phi-3.5-mini-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/Phi-3.5-mini-instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Phi-3.5-mini-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/Phi-3.5-mini-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Phi-3.5-mini-instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.Phi-3.5-mini-instruct-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Commit History
-
Keep Q2_K/Q3_K_M gguf only
Verified signatureeae72c9 -
Remove gguf quant files (Q4/Q5/Q6/Q8 variants)
Verified signature5055f68
-
Update README.md
Verified signatureaecd018
-
Update README.md
Verified signature161be4a -
Update README.md
Verified signaturebe571c4
-
Update README.md
Verified signature2ecf5bd
-
Update README.md: Replace tree/main with blob/main
Verified signaturef10679c
-
Upload folder using huggingface_hub
Verified signatured1fe759
-
Upload folder using huggingface_hub
Verified signature16d6d60
-
Upload folder using huggingface_hub
Verified signature10b05b2 -
initial commit
Verified signaturec28a130