Instructions to use xaskasdf/phi-3-medium-4k-instruct-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use xaskasdf/phi-3-medium-4k-instruct-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="xaskasdf/phi-3-medium-4k-instruct-gguf", filename="Phi-3-medium-4k-instruct-Q2_K.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 xaskasdf/phi-3-medium-4k-instruct-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S # Run inference directly in the terminal: llama-cli -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S # Run inference directly in the terminal: llama-cli -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
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 xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S # Run inference directly in the terminal: ./llama-cli -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
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 xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
Use Docker
docker model run hf.co/xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
- LM Studio
- Jan
- Ollama
How to use xaskasdf/phi-3-medium-4k-instruct-gguf with Ollama:
ollama run hf.co/xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
- Unsloth Studio new
How to use xaskasdf/phi-3-medium-4k-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 xaskasdf/phi-3-medium-4k-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 xaskasdf/phi-3-medium-4k-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 xaskasdf/phi-3-medium-4k-instruct-gguf to start chatting
- Docker Model Runner
How to use xaskasdf/phi-3-medium-4k-instruct-gguf with Docker Model Runner:
docker model run hf.co/xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
- Lemonade
How to use xaskasdf/phi-3-medium-4k-instruct-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull xaskasdf/phi-3-medium-4k-instruct-gguf:Q4_K_S
Run and chat with the model
lemonade run user.phi-3-medium-4k-instruct-gguf-Q4_K_S
List all available models
lemonade list
Upload q4 models
Browse files
.gitattributes
CHANGED
|
@@ -41,3 +41,9 @@ Phi-3-medium-4k-instruct-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 41 |
Phi-3-medium-4k-instruct-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
Phi-3-medium-4k-instruct-Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
Phi-3-medium-4k-instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
Phi-3-medium-4k-instruct-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
Phi-3-medium-4k-instruct-Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
Phi-3-medium-4k-instruct-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Phi-3-medium-4k-instruct-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Phi-3-medium-4k-instruct-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Phi-3-medium-4k-instruct-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Phi-3-medium-4k-instruct-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Phi-3-medium-4k-instruct-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
Phi-3-medium-4k-instruct-Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
|
Phi-3-medium-4k-instruct-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ab77a959f8c3173edbea5eab30c266e431967d87a426ff70f25ca5e31dd604a
|
| 3 |
+
size 8090791520
|
Phi-3-medium-4k-instruct-Q4_0_4_4.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3972159b18a9c1c5e39675116c28d95fb3e8cd27a5a45b7cc2ec23ec9f3b9187
|
| 3 |
+
size 8090791520
|
Phi-3-medium-4k-instruct-Q4_0_4_8.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c5f484ac2a4eac30ab26ceb9a63234ae75a63433620c9e2acbf201f50c39f554
|
| 3 |
+
size 8090791520
|
Phi-3-medium-4k-instruct-Q4_0_8_8.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6253396962c6cac97ab4da7bb51c3a493586cf64340335a1440e55c622418df3
|
| 3 |
+
size 8090791520
|
Phi-3-medium-4k-instruct-Q4_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3348861096ddc853c442d2ada862f08c2ae348dacf85ec29760debb31ca6fa0f
|
| 3 |
+
size 8953020000
|
Phi-3-medium-4k-instruct-Q4_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b05d5d10db1f2e74547b2a6557a4df2847142b84f4e7af6a9d9a645e7acb574
|
| 3 |
+
size 8760487520
|