Instructions to use second-state/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 second-state/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="second-state/Phi-3.5-mini-instruct-GGUF", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Phi-3.5-mini-instruct-GGUF", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("second-state/Phi-3.5-mini-instruct-GGUF", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use second-state/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 second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Phi-3.5-mini-instruct-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 second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf second-state/Phi-3.5-mini-instruct-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 second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use second-state/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 "second-state/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": "second-state/Phi-3.5-mini-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
- SGLang
How to use second-state/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 "second-state/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": "second-state/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 "second-state/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": "second-state/Phi-3.5-mini-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Phi-3.5-mini-instruct-GGUF with Ollama:
ollama run hf.co/second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use second-state/Phi-3.5-mini-instruct-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 second-state/Phi-3.5-mini-instruct-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 second-state/Phi-3.5-mini-instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for second-state/Phi-3.5-mini-instruct-GGUF to start chatting
- Docker Model Runner
How to use second-state/Phi-3.5-mini-instruct-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
- Lemonade
How to use second-state/Phi-3.5-mini-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Phi-3.5-mini-instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Phi-3.5-mini-instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update models
Browse files- .gitattributes +12 -0
- Phi-3.5-mini-instruct-Q2_K.gguf +3 -0
- Phi-3.5-mini-instruct-Q3_K_L.gguf +3 -0
- Phi-3.5-mini-instruct-Q3_K_M.gguf +3 -0
- Phi-3.5-mini-instruct-Q3_K_S.gguf +3 -0
- Phi-3.5-mini-instruct-Q4_0.gguf +3 -0
- Phi-3.5-mini-instruct-Q4_K_M.gguf +3 -0
- Phi-3.5-mini-instruct-Q4_K_S.gguf +3 -0
- Phi-3.5-mini-instruct-Q5_0.gguf +3 -0
- Phi-3.5-mini-instruct-Q5_K_S.gguf +3 -0
- Phi-3.5-mini-instruct-Q6_K.gguf +3 -0
- Phi-3.5-mini-instruct-Q8_0.gguf +3 -0
- Phi-3.5-mini-instruct-f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
Phi-3.5-mini-instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
Phi-3.5-mini-instruct-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Phi-3.5-mini-instruct-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Phi-3.5-mini-instruct-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Phi-3.5-mini-instruct-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Phi-3.5-mini-instruct-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Phi-3.5-mini-instruct-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Phi-3.5-mini-instruct-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Phi-3.5-mini-instruct-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Phi-3.5-mini-instruct-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Phi-3.5-mini-instruct-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Phi-3.5-mini-instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Phi-3.5-mini-instruct-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Phi-3.5-mini-instruct-f16.gguf filter=lfs diff=lfs merge=lfs -text
|
Phi-3.5-mini-instruct-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e6564bea11e9447560fd9a83acac1b248293c2466ffee97683d3bf2288ce8e9
|
| 3 |
+
size 1416204288
|
Phi-3.5-mini-instruct-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cf63a5a22f926a97b895e60afd722f058844dd00817062d94fa3f7aad6cfcb6
|
| 3 |
+
size 2087597568
|
Phi-3.5-mini-instruct-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e090e1ea535e89f4f18737dbf1c79bb5a168990159e9d8a6174374fe921096ca
|
| 3 |
+
size 1955476992
|
Phi-3.5-mini-instruct-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91e2ea239d43ab6e15fb10412425c0d092ed03f7cd1483f7f354a3001f93d67c
|
| 3 |
+
size 1681798656
|
Phi-3.5-mini-instruct-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cce3a577017b01ed37ae7cf25534c5fd59045d459e0a2249551ec5a2cac6882c
|
| 3 |
+
size 2176177152
|
Phi-3.5-mini-instruct-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c389ea28dc7f10dfbe30fc5e05452f832b1adf85989253ba590e3620b9584f06
|
| 3 |
+
size 2393232384
|
Phi-3.5-mini-instruct-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2de4ce8a64658ea9906e3996a6da944d249a0564ac0fa306fdfc09c1253defd
|
| 3 |
+
size 2188760064
|
Phi-3.5-mini-instruct-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48acfc895623cffb32a45432bbc1134ac5bea4d423fadfd42573088fd45d9840
|
| 3 |
+
size 2641474560
|
Phi-3.5-mini-instruct-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31e861ead1d275f332b24b7be5ac6ad8dcb41d323b45eaf5d6a6ced820fba2c2
|
| 3 |
+
size 2641474560
|
Phi-3.5-mini-instruct-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be4239a20c9f0812d799130015a8fc109e1dd3a754245bbe1eb72bf03d700c8d
|
| 3 |
+
size 3135853056
|
Phi-3.5-mini-instruct-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81fd0b829a6ff15b3df3cc792de3f3e75a9fb2f1f55c0059af55a698b1173150
|
| 3 |
+
size 4061222400
|
Phi-3.5-mini-instruct-f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04381ade8b69632b564f1dbc473dac52f7819349ceb3cc76d268dee91f762fe2
|
| 3 |
+
size 7643297280
|