Instructions to use second-state/Phi-3-mini-4k-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-mini-4k-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-mini-4k-instruct-GGUF", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("second-state/Phi-3-mini-4k-instruct-GGUF", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("second-state/Phi-3-mini-4k-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-mini-4k-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-mini-4k-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Phi-3-mini-4k-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-mini-4k-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
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 second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use second-state/Phi-3-mini-4k-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-mini-4k-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-mini-4k-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
- SGLang
How to use second-state/Phi-3-mini-4k-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-mini-4k-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-mini-4k-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-mini-4k-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-mini-4k-instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use second-state/Phi-3-mini-4k-instruct-GGUF with Ollama:
ollama run hf.co/second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use second-state/Phi-3-mini-4k-instruct-GGUF with Docker Model Runner:
docker model run hf.co/second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
- Lemonade
How to use second-state/Phi-3-mini-4k-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull second-state/Phi-3-mini-4k-instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Phi-3-mini-4k-instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update models
Browse files- Phi-3-mini-4k-instruct-Q2_K.gguf +2 -2
- Phi-3-mini-4k-instruct-Q3_K_L.gguf +2 -2
- Phi-3-mini-4k-instruct-Q3_K_M.gguf +2 -2
- Phi-3-mini-4k-instruct-Q3_K_S.gguf +2 -2
- Phi-3-mini-4k-instruct-Q4_0.gguf +2 -2
- Phi-3-mini-4k-instruct-Q4_K_M.gguf +2 -2
- Phi-3-mini-4k-instruct-Q4_K_S.gguf +2 -2
- Phi-3-mini-4k-instruct-Q5_0.gguf +2 -2
- Phi-3-mini-4k-instruct-Q5_K_M.gguf +2 -2
- Phi-3-mini-4k-instruct-Q5_K_S.gguf +2 -2
- Phi-3-mini-4k-instruct-Q6_K.gguf +2 -2
- Phi-3-mini-4k-instruct-Q8_0.gguf +2 -2
- Phi-3-mini-4k-instruct-f16.gguf +2 -2
Phi-3-mini-4k-instruct-Q2_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a18729d7af2fd8edd993e9663f239aa68f405dd1f62f12a449bd3e608eff5f4e
|
| 3 |
+
size 1416203712
|
Phi-3-mini-4k-instruct-Q3_K_L.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bbc9de711e5e5b2eb82e8e4dd8aa8f87bcd4fd965015f255513f4b45643e9e9
|
| 3 |
+
size 2087596992
|
Phi-3-mini-4k-instruct-Q3_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4e215e956e752a1fcc678dab10df95cf94b4620f6467cc70a76bbceae88d19
|
| 3 |
+
size 1955476416
|
Phi-3-mini-4k-instruct-Q3_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:707e92af506aea8dbb21cd3d1f53398e904352f83ddf11d894ff8225d3926f14
|
| 3 |
+
size 1681798080
|
Phi-3-mini-4k-instruct-Q4_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b60ce758d4c3f55c794851eef861ddbcc926f4e122ae4ef94d2982869808bd4
|
| 3 |
+
size 2176176576
|
Phi-3-mini-4k-instruct-Q4_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e38e3e4fe3349f2f41ea6e1069b231fe11b36538786ec04a07d9df554db29590
|
| 3 |
+
size 2393231808
|
Phi-3-mini-4k-instruct-Q4_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:628ed03b2141989f84d6c1908124ad6aec89298da19e4da10b0ca11e95102a90
|
| 3 |
+
size 2188759488
|
Phi-3-mini-4k-instruct-Q5_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bbe5c16ad5b2500197184f2f7ab7eb7d1606425fc23d2bbfe8620c8a0a1482e
|
| 3 |
+
size 2641473984
|
Phi-3-mini-4k-instruct-Q5_K_M.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a050c9e47488291ab4aea09b85ea01258248e92240519f4b7628ebd48936156e
|
| 3 |
+
size 2815275456
|
Phi-3-mini-4k-instruct-Q5_K_S.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7ffad062c5732671478c1e6ac000ae980155d33b22c266ac9d266eaea4c8449
|
| 3 |
+
size 2641473984
|
Phi-3-mini-4k-instruct-Q6_K.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22fc06dc59a1d1abd1db2760704e306bd262bef23b1e2cbc2b238b0649b322f5
|
| 3 |
+
size 3135852480
|
Phi-3-mini-4k-instruct-Q8_0.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ed91b19c44c8c92f130aa922e05df1b76b709c5792788a24e7321945d100f75
|
| 3 |
+
size 4061221824
|
Phi-3-mini-4k-instruct-f16.gguf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe4c64522173db6b3dae84ae667f6a8ad9e6cbc767f37ef165addbed991b129d
|
| 3 |
+
size 7643296704
|