Instructions to use tensorblock/phi-2-instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/phi-2-instruct-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/phi-2-instruct-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/phi-2-instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/phi-2-instruct-GGUF", filename="phi-2-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 tensorblock/phi-2-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 tensorblock/phi-2-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-2-instruct-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/phi-2-instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-2-instruct-GGUF:Q2_K
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 tensorblock/phi-2-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/phi-2-instruct-GGUF:Q2_K
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 tensorblock/phi-2-instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/phi-2-instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/phi-2-instruct-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/phi-2-instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/phi-2-instruct-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/phi-2-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 tensorblock/phi-2-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 tensorblock/phi-2-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 tensorblock/phi-2-instruct-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/phi-2-instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/phi-2-instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/phi-2-instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/phi-2-instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.phi-2-instruct-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- phi-2-instruct-Q3_K_L.gguf +0 -3
- phi-2-instruct-Q3_K_S.gguf +0 -3
- phi-2-instruct-Q4_0.gguf +0 -3
- phi-2-instruct-Q4_K_M.gguf +0 -3
- phi-2-instruct-Q4_K_S.gguf +0 -3
- phi-2-instruct-Q5_0.gguf +0 -3
- phi-2-instruct-Q5_K_M.gguf +0 -3
- phi-2-instruct-Q5_K_S.gguf +0 -3
- phi-2-instruct-Q6_K.gguf +0 -3
- phi-2-instruct-Q8_0.gguf +0 -3
phi-2-instruct-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3364a994545d557c5b55edfb28793190fd13904c967fe3091a6b01932ac034f2
|
| 3 |
-
size 1572317856
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:49dad8a7a30ab2c31dc73d39621545156c03fefb61096448279e943820ad33b4
|
| 3 |
-
size 1247914656
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ad98d93de4bf7843fc8172d3af369f50b967a6861b08a0b671cf8a9d62a38f28
|
| 3 |
-
size 1599249216
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:45bc7e2d7712d23f92d1531375fcb22f72e8d5883469171775a5c9cee83a70a8
|
| 3 |
-
size 1734417216
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:80054c978a69ac2915ad1876aa9b8669a7f1512a60e2bf62007828494a5811a7
|
| 3 |
-
size 1615633216
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:49c4fc348d7b1e1d5d53c600377a7c06b76b88f4a5c61d63a5531a216fcad1a8
|
| 3 |
-
size 1929917056
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d5529e62b3b96aea55b4868e7db86a2057bc980e48e977896b3087f460a90e30
|
| 3 |
-
size 1999549056
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:260c81ded40b592d648d83388396d4d03e987b7e2e77335622f42de9e5d42b07
|
| 3 |
-
size 1929917056
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2a6f192c83e31bf77327a27d382e0c8b7748cab3f0c6d1b4e656a93e3766dc0d
|
| 3 |
-
size 2281251648
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-instruct-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6dedfa1ab5f95ca8e4cb481c369abe2b7dbdf73e8aec7106f8158d3af9ac267d
|
| 3 |
-
size 2953104704
|
|
|
|
|
|
|
|
|
|
|
|