Instructions to use tensorblock/gpt2-scratch-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/gpt2-scratch-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/gpt2-scratch-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/gpt2-scratch-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/gpt2-scratch-GGUF", filename="gpt2-scratch-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/gpt2-scratch-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/gpt2-scratch-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/gpt2-scratch-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/gpt2-scratch-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/gpt2-scratch-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/gpt2-scratch-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/gpt2-scratch-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/gpt2-scratch-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/gpt2-scratch-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/gpt2-scratch-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/gpt2-scratch-GGUF with Ollama:
ollama run hf.co/tensorblock/gpt2-scratch-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/gpt2-scratch-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/gpt2-scratch-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/gpt2-scratch-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/gpt2-scratch-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/gpt2-scratch-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/gpt2-scratch-GGUF:Q2_K
- Lemonade
How to use tensorblock/gpt2-scratch-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/gpt2-scratch-GGUF:Q2_K
Run and chat with the model
lemonade run user.gpt2-scratch-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- gpt2-scratch-Q3_K_L.gguf +0 -3
- gpt2-scratch-Q3_K_M.gguf +0 -3
- gpt2-scratch-Q3_K_S.gguf +0 -3
- gpt2-scratch-Q4_0.gguf +0 -3
- gpt2-scratch-Q4_K_M.gguf +0 -3
- gpt2-scratch-Q4_K_S.gguf +0 -3
- gpt2-scratch-Q5_0.gguf +0 -3
- gpt2-scratch-Q5_K_M.gguf +0 -3
- gpt2-scratch-Q5_K_S.gguf +0 -3
- gpt2-scratch-Q6_K.gguf +0 -3
- gpt2-scratch-Q8_0.gguf +0 -3
gpt2-scratch-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4f20b05044f2cd6b04b61b3790afc425aff5c6738f616416a1aa156f47ec9901
|
| 3 |
-
size 102092832
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8eb27617ed62c323da875330339c5a22da855faab0e0b2c12a2a09ec96182828
|
| 3 |
-
size 97669152
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5fdfae734c31ebd272eef084e150c1a2cb6a5b7a4fcf82ebd034cb247f99c9fb
|
| 3 |
-
size 90148896
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:49c63c59e18e753782c120935204414b0da8d053dfd268c073b79fca60a0c5eb
|
| 3 |
-
size 106555488
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bbf5a38c36685ca7a0b509bc81e741dde942dc6d2a303d28ff6ec05a8ca3c414
|
| 3 |
-
size 112859232
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:153cf9348d7307690ce5a0f509d14c44a1ac4aa8429b43431f703c7a5ffaefab
|
| 3 |
-
size 106850400
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1b5abe6de8e24a15a195ebfb722c4ad35fa3e828f903ea7970b9e7985d59d4a2
|
| 3 |
-
size 121996992
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3e4ac481811a568bd0b56f9d0bc36ac4980c9e2d1057f87b63506eb78151b1cd
|
| 3 |
-
size 126697152
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7026b7507743473101fb7a239aadf04d11ea9103e236e5e15e109d29a04926a6
|
| 3 |
-
size 121996992
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9d3d65204091408005cf16bb70d0175d94ae8d0a1a1fb27592ebdddc8aa9e29f
|
| 3 |
-
size 138403584
|
|
|
|
|
|
|
|
|
|
|
|
gpt2-scratch-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:36d00b250f30bf902d69604a754358533c8bd33fa7b0bf4fd1a4ced0129c72a9
|
| 3 |
-
size 177669312
|
|
|
|
|
|
|
|
|
|
|
|