Instructions to use tensorblock/tinyllama-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/tinyllama-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/tinyllama-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/tinyllama-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/tinyllama-GGUF", filename="tinyllama-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/tinyllama-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/tinyllama-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/tinyllama-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/tinyllama-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/tinyllama-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/tinyllama-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/tinyllama-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/tinyllama-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/tinyllama-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/tinyllama-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/tinyllama-GGUF with Ollama:
ollama run hf.co/tensorblock/tinyllama-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/tinyllama-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/tinyllama-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/tinyllama-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/tinyllama-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/tinyllama-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/tinyllama-GGUF:Q2_K
- Lemonade
How to use tensorblock/tinyllama-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/tinyllama-GGUF:Q2_K
Run and chat with the model
lemonade run user.tinyllama-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- tinyllama-Q3_K_L.gguf +0 -3
- tinyllama-Q3_K_S.gguf +0 -3
- tinyllama-Q4_0.gguf +0 -3
- tinyllama-Q4_K_M.gguf +0 -3
- tinyllama-Q4_K_S.gguf +0 -3
- tinyllama-Q5_0.gguf +0 -3
- tinyllama-Q5_K_M.gguf +0 -3
- tinyllama-Q5_K_S.gguf +0 -3
- tinyllama-Q6_K.gguf +0 -3
- tinyllama-Q8_0.gguf +0 -3
tinyllama-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4d58e46866d9d8220ab4d92dfe4002cbbf98c1604194e75c092ff366ba15c29f
|
| 3 |
-
size 591526912
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:08b536c8e750df6466ba378937aa367089f6b6fb231b07da9e82b6c4e6ee3323
|
| 3 |
-
size 499342336
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4c0f701d18bd48cfaadbb8f7c0064137a82e745622aef149c6ef3fbadc348a26
|
| 3 |
-
size 636726272
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ccfc0e0c3ed1c625eac486ce90afa57d9d62c9d6f2f834608d448a0e2eddbf08
|
| 3 |
-
size 667814912
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b4d279c4f771fda61776305e04cd7035d7a52dc53580d4b5221d65e30c71c833
|
| 3 |
-
size 639872000
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6593dbcd6469d57c3f44de573cd86cccd856f642fcc64c7018c6fce56efc969b
|
| 3 |
-
size 766028800
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2beb4d70413a43530d163d5550f33e469ca7587fdff1e90d887bca21988d53c7
|
| 3 |
-
size 782044160
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:941296d485c063aafe3905eb2092cd632b2796952a3d8858fad879ba0ac7d02c
|
| 3 |
-
size 766028800
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:808cc462166c573b4e497b30545a62bef2bc9a3bf67a30ee16ddfb616e4cb6c0
|
| 3 |
-
size 903412736
|
|
|
|
|
|
|
|
|
|
|
|
tinyllama-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8f99cac3d248fddc355fdfbb8220b78e087521b09b997091a97c542bf8fff4f0
|
| 3 |
-
size 1169808384
|
|
|
|
|
|
|
|
|
|
|
|