Instructions to use tensorblock/test_phi2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/test_phi2-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/test_phi2-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/test_phi2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/test_phi2-GGUF", filename="test_phi2-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/test_phi2-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/test_phi2-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/test_phi2-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/test_phi2-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/test_phi2-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/test_phi2-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/test_phi2-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/test_phi2-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/test_phi2-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/test_phi2-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/test_phi2-GGUF with Ollama:
ollama run hf.co/tensorblock/test_phi2-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/test_phi2-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/test_phi2-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/test_phi2-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/test_phi2-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/test_phi2-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/test_phi2-GGUF:Q2_K
- Lemonade
How to use tensorblock/test_phi2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/test_phi2-GGUF:Q2_K
Run and chat with the model
lemonade run user.test_phi2-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- test_phi2-Q3_K_L.gguf +0 -3
- test_phi2-Q3_K_M.gguf +0 -3
- test_phi2-Q3_K_S.gguf +0 -3
- test_phi2-Q4_0.gguf +0 -3
- test_phi2-Q4_K_M.gguf +0 -3
- test_phi2-Q4_K_S.gguf +0 -3
- test_phi2-Q5_0.gguf +0 -3
- test_phi2-Q5_K_M.gguf +0 -3
- test_phi2-Q5_K_S.gguf +0 -3
- test_phi2-Q6_K.gguf +0 -3
- test_phi2-Q8_0.gguf +0 -3
test_phi2-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:38fc067862ba9e330dbfd3c6ae860c21eb7873ed2b7cba8c45768ac9eee0ed74
|
| 3 |
-
size 1575230176
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:349f0797427faf35248905b49552898cb92828369b77c5de70fefd9fbfe38cde
|
| 3 |
-
size 1426135776
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:91b765f651258e929d4e24ff03ba09be7160b17175ec1c8abd3f6464585ff34f
|
| 3 |
-
size 1250826976
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8aecd0c12e326a9770c0dac68dc7b3cfbf707791b2be48b2c1a42cec10072550
|
| 3 |
-
size 1602468576
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:97a8e391146c6120b854104a5ff0632a837a7312e7a9ebb85697de70ff346ede
|
| 3 |
-
size 1737636576
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b6e09e75f0a10c06136ef5e09b162b3aa2ab5512a043c11875bbf428ff2f1e58
|
| 3 |
-
size 1618852576
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7370334da514d401b845ea48fcbb4b3c3bdfa66c5bfbd67559d995e698c36cd0
|
| 3 |
-
size 1933425376
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b652b5583b20ef83e489cf3393244f2851208b4c31ef42152444eb050159221c
|
| 3 |
-
size 2003057376
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f30623ba35971f1bd5ffd66c58179f2258c3228a7e79025aaab55f0c52e59f45
|
| 3 |
-
size 1933425376
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:38d616b87ea2e1cc2337a6a5b55d88f74018367457e7030a56e3cd2507e2bdd8
|
| 3 |
-
size 2285066976
|
|
|
|
|
|
|
|
|
|
|
|
test_phi2-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:951304a137f8619cb2cc0623390909b913340bb92cd73912adc4ddc198b3579b
|
| 3 |
-
size 2958039776
|
|
|
|
|
|
|
|
|
|
|
|