Instructions to use tensorblock/phi-3-tiny-random-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/phi-3-tiny-random-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/phi-3-tiny-random-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/phi-3-tiny-random-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/phi-3-tiny-random-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/phi-3-tiny-random-GGUF", filename="phi-3-tiny-random-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-3-tiny-random-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-3-tiny-random-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-3-tiny-random-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-3-tiny-random-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/phi-3-tiny-random-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-3-tiny-random-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/phi-3-tiny-random-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-3-tiny-random-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/phi-3-tiny-random-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/phi-3-tiny-random-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/phi-3-tiny-random-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/phi-3-tiny-random-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-3-tiny-random-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/phi-3-tiny-random-GGUF:Q2_K
- SGLang
How to use tensorblock/phi-3-tiny-random-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 "tensorblock/phi-3-tiny-random-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": "tensorblock/phi-3-tiny-random-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 "tensorblock/phi-3-tiny-random-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": "tensorblock/phi-3-tiny-random-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/phi-3-tiny-random-GGUF with Ollama:
ollama run hf.co/tensorblock/phi-3-tiny-random-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/phi-3-tiny-random-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-3-tiny-random-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-3-tiny-random-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-3-tiny-random-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/phi-3-tiny-random-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/phi-3-tiny-random-GGUF:Q2_K
- Lemonade
How to use tensorblock/phi-3-tiny-random-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/phi-3-tiny-random-GGUF:Q2_K
Run and chat with the model
lemonade run user.phi-3-tiny-random-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- phi-3-tiny-random-Q3_K_L.gguf +0 -3
- phi-3-tiny-random-Q3_K_S.gguf +0 -3
- phi-3-tiny-random-Q4_0.gguf +0 -3
- phi-3-tiny-random-Q4_K_M.gguf +0 -3
- phi-3-tiny-random-Q4_K_S.gguf +0 -3
- phi-3-tiny-random-Q5_0.gguf +0 -3
- phi-3-tiny-random-Q5_K_M.gguf +0 -3
- phi-3-tiny-random-Q5_K_S.gguf +0 -3
- phi-3-tiny-random-Q6_K.gguf +0 -3
- phi-3-tiny-random-Q8_0.gguf +0 -3
phi-3-tiny-random-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7b0cc1615800efade00432f0bb830703f683a7dffba9e5f0a5c74f6bf8a57720
|
| 3 |
-
size 2307872
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:47c09082678c93c374f9b3dbaec6d0bf3495414d2e937eac02e6c628e14cfdfd
|
| 3 |
-
size 2307680
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d4197c44f88adf1c4d7db2aa33055eea2758f3eccd4cdbf32553f22e9051c739
|
| 3 |
-
size 1564384
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:33df43b5d9557e170243cd6047461107ecdb2dd7da55963cf477ccf05db6425b
|
| 3 |
-
size 2308000
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:01a36752aa3c823610e0791fd8fc3602abf00ab1a984b8f66110506d26c65d98
|
| 3 |
-
size 2307808
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:718df6af71c0cdebe7f1fb3c866c0ed89363b165cb59e92fd80ab2e5c6aed7b5
|
| 3 |
-
size 1629152
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0674e98a4c2d513bcb0d0d24a43d847903c359c74f56a4712a20884f2d656b16
|
| 3 |
-
size 2308032
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e473e6c2994ebfa3634c8d2b4633b3bd0fa89671a5f3bf47372b6f83937a6a49
|
| 3 |
-
size 2307872
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cae9436956367b6be5230bb39f0fcc654f845a4a8ff702097a9b2e948b48fe52
|
| 3 |
-
size 2308192
|
|
|
|
|
|
|
|
|
|
|
|
phi-3-tiny-random-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d4f61426cc49fe7def7b2ea9c83f7728c4d7d3ff05694728802981aa7eb65c72
|
| 3 |
-
size 1823456
|
|
|
|
|
|
|
|
|
|
|
|