Instructions to use tensorblock/tiny-random-gpt2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/tiny-random-gpt2-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/tiny-random-gpt2-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/tiny-random-gpt2-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/tiny-random-gpt2-GGUF", filename="tiny-random-gpt2-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/tiny-random-gpt2-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/tiny-random-gpt2-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/tiny-random-gpt2-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/tiny-random-gpt2-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/tiny-random-gpt2-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/tiny-random-gpt2-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/tiny-random-gpt2-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/tiny-random-gpt2-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/tiny-random-gpt2-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/tiny-random-gpt2-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/tiny-random-gpt2-GGUF with Ollama:
ollama run hf.co/tensorblock/tiny-random-gpt2-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/tiny-random-gpt2-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/tiny-random-gpt2-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/tiny-random-gpt2-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/tiny-random-gpt2-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/tiny-random-gpt2-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/tiny-random-gpt2-GGUF:Q2_K
- Lemonade
How to use tensorblock/tiny-random-gpt2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/tiny-random-gpt2-GGUF:Q2_K
Run and chat with the model
lemonade run user.tiny-random-gpt2-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- tiny-random-gpt2-Q3_K_L.gguf +0 -3
- tiny-random-gpt2-Q3_K_M.gguf +0 -3
- tiny-random-gpt2-Q3_K_S.gguf +0 -3
- tiny-random-gpt2-Q4_0.gguf +0 -3
- tiny-random-gpt2-Q4_K_M.gguf +0 -3
- tiny-random-gpt2-Q4_K_S.gguf +0 -3
- tiny-random-gpt2-Q5_0.gguf +0 -3
- tiny-random-gpt2-Q5_K_M.gguf +0 -3
- tiny-random-gpt2-Q5_K_S.gguf +0 -3
- tiny-random-gpt2-Q6_K.gguf +0 -3
- tiny-random-gpt2-Q8_0.gguf +0 -3
tiny-random-gpt2-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9cfe5a86886f6f93920435321bcad9175ad3b567b3c0638caa89b3f0a77575d7
|
| 3 |
-
size 13016704
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9b991f8a5070ea499e17bff4a4be3d7bfe67b6ea7db18ad7189d154b8cf0ba60
|
| 3 |
-
size 12998272
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:349fdbade5b9c396f674e11b336e14ef1560cd6468fe805f647be065c8306d16
|
| 3 |
-
size 12964480
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b93e88d1bf410327282af37e3f1e1525a51114e4db2525c31d46ae930300c16c
|
| 3 |
-
size 12981888
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ecebbf231cea3db347bda3d0a2294702edd2a0877e695c50e673faf25174dcf6
|
| 3 |
-
size 13841792
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6c85b717111142752ec4fd1dab7edeeb0a45ec559ead19104a572916adfe2f5f
|
| 3 |
-
size 13818752
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a489d4dc92333a199d005a08fa255020b5254dc2e0b37ebff9d360a0cf2e649d
|
| 3 |
-
size 13835136
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d5583c4b7d3f218af90caed716c5d040b7fedbbb95e8b12725bec57bf985d6f0
|
| 3 |
-
size 14292992
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e4e15aafa2868086cb8f3e216e6088e2024c276f42070045ac94eb8f8ffd638c
|
| 3 |
-
size 14253568
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b1e4253d38c44a241647721391a7af27e75ab1c484939ff38a61c1f67ed3b8a8
|
| 3 |
-
size 16363200
|
|
|
|
|
|
|
|
|
|
|
|
tiny-random-gpt2-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:abd84c049479f7b28fc8adcba18067124030324f1116bfdf682aaad18707d8ce
|
| 3 |
-
size 16394944
|
|
|
|
|
|
|
|
|
|
|
|