Instructions to use tensorblock/phi-2-super-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/phi-2-super-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/phi-2-super-GGUF", filename="phi-2-super-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/phi-2-super-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-super-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-2-super-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-super-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-2-super-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-super-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/phi-2-super-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-super-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/phi-2-super-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/phi-2-super-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/phi-2-super-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/phi-2-super-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-2-super-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/phi-2-super-GGUF:Q2_K
- Ollama
How to use tensorblock/phi-2-super-GGUF with Ollama:
ollama run hf.co/tensorblock/phi-2-super-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/phi-2-super-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-super-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-super-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-super-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/phi-2-super-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/phi-2-super-GGUF:Q2_K
- Lemonade
How to use tensorblock/phi-2-super-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/phi-2-super-GGUF:Q2_K
Run and chat with the model
lemonade run user.phi-2-super-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- phi-2-super-Q3_K_L.gguf +0 -3
- phi-2-super-Q3_K_M.gguf +0 -3
- phi-2-super-Q3_K_S.gguf +0 -3
- phi-2-super-Q4_0.gguf +0 -3
- phi-2-super-Q4_K_M.gguf +0 -3
- phi-2-super-Q4_K_S.gguf +0 -3
- phi-2-super-Q5_0.gguf +0 -3
- phi-2-super-Q5_K_M.gguf +0 -3
- phi-2-super-Q5_K_S.gguf +0 -3
- phi-2-super-Q6_K.gguf +0 -3
- phi-2-super-Q8_0.gguf +0 -3
phi-2-super-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0c72835292f055490c36b01e4f6bab76366cf814b9ffad361a7efa747e4b7ad2
|
| 3 |
-
size 1575231104
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e76ea7a0f15e2769cbb57c9039e311215fb86247781ef9b00cc50e0f8ccc3748
|
| 3 |
-
size 1426136704
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:381c898b8b9310512592572ef309a9d7252498f0f1ba752a3dcbba8461ae4dd3
|
| 3 |
-
size 1250827904
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:451032f0d4a307c14fb1f010d0b28f4ffc77e4eeeffb64cb60cb3d686c548646
|
| 3 |
-
size 1602469504
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:19c4c073490f4ab89c6e2bb578533e293ff5c292cd0862cb284482a25594f2dc
|
| 3 |
-
size 1737637504
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9aa361a94bf545aa7105bd4eaa8b2c00806389433d782acf37d7ae0c6aa428b5
|
| 3 |
-
size 1618853504
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:deb233baeb1a54469f4f27bf96ae365968d12d8ca32c545cf3b268e8c56568bc
|
| 3 |
-
size 1933426304
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:da9c14f6566c38fb3f5a164aceaa1d69dbca87ada5e0026495b749ddf6677502
|
| 3 |
-
size 2003058304
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9c214b4e0a117dbf18323ff37b3a8b1daba4a83815b8a7e5d1ade767b7b60e61
|
| 3 |
-
size 1933426304
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:95860e31b6da92c0e56d6ec3520f7af4143ed1b46593c0491e070140fb662025
|
| 3 |
-
size 2285067904
|
|
|
|
|
|
|
|
|
|
|
|
phi-2-super-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1d41fe7d67b752a53b2bef5ee77b745cd9478f9e5866edf5e679a4606499c8d9
|
| 3 |
-
size 2958040704
|
|
|
|
|
|
|
|
|
|
|
|