EleutherAI/pile
Updated β’ 2.77k β’ 495
How to use tensorblock/pythia-12b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/pythia-12b-GGUF", filename="pythia-12b-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use tensorblock/pythia-12b-GGUF with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/pythia-12b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/pythia-12b-GGUF:Q2_K
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/pythia-12b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/pythia-12b-GGUF:Q2_K
# 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/pythia-12b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/pythia-12b-GGUF:Q2_K
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/pythia-12b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/pythia-12b-GGUF:Q2_K
docker model run hf.co/tensorblock/pythia-12b-GGUF:Q2_K
How to use tensorblock/pythia-12b-GGUF with Ollama:
ollama run hf.co/tensorblock/pythia-12b-GGUF:Q2_K
How to use tensorblock/pythia-12b-GGUF with Unsloth Studio:
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/pythia-12b-GGUF to start chatting
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/pythia-12b-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/pythia-12b-GGUF to start chatting
How to use tensorblock/pythia-12b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/pythia-12b-GGUF:Q2_K
How to use tensorblock/pythia-12b-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/pythia-12b-GGUF:Q2_K
lemonade run user.pythia-12b-GGUF-Q2_K
lemonade list
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)
This repo contains GGUF format model files for EleutherAI/pythia-12b.
The files were quantized using machines provided by TensorBlock, and they are compatible with llama.cpp as of commit b4011.
| Forge | |
|---|---|
|
|
| An OpenAI-compatible multi-provider routing layer. | |
| π Try it now! π | |
| Awesome MCP Servers | TensorBlock Studio |
![]() |
![]() |
| A comprehensive collection of Model Context Protocol (MCP) servers. | A lightweight, open, and extensible multi-LLM interaction studio. |
| π See what we built π | π See what we built π |
| Filename | Quant type | File Size | Description |
|---|---|---|---|
| pythia-12b-Q2_K.gguf | Q2_K | 4.195 GB | smallest, significant quality loss - not recommended for most purposes |
| pythia-12b-Q3_K_S.gguf | Q3_K_S | 4.845 GB | very small, high quality loss |
| pythia-12b-Q3_K_M.gguf | Q3_K_M | 5.803 GB | very small, high quality loss |
| pythia-12b-Q3_K_L.gguf | Q3_K_L | 6.328 GB | small, substantial quality loss |
| pythia-12b-Q4_0.gguf | Q4_0 | 6.277 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
| pythia-12b-Q4_K_S.gguf | Q4_K_S | 6.326 GB | small, greater quality loss |
| pythia-12b-Q4_K_M.gguf | Q4_K_M | 7.060 GB | medium, balanced quality - recommended |
| pythia-12b-Q5_0.gguf | Q5_0 | 7.626 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
| pythia-12b-Q5_K_S.gguf | Q5_K_S | 7.626 GB | large, low quality loss - recommended |
| pythia-12b-Q5_K_M.gguf | Q5_K_M | 8.210 GB | large, very low quality loss - recommended |
| pythia-12b-Q6_K.gguf | Q6_K | 9.059 GB | very large, extremely low quality loss |
| pythia-12b-Q8_0.gguf | Q8_0 | 11.730 GB | very large, extremely low quality loss - not recommended |
Firstly, install Huggingface Client
pip install -U "huggingface_hub[cli]"
Then, downoad the individual model file the a local directory
huggingface-cli download tensorblock/pythia-12b-GGUF --include "pythia-12b-Q2_K.gguf" --local-dir MY_LOCAL_DIR
If you wanna download multiple model files with a pattern (e.g., *Q4_K*gguf), you can try:
huggingface-cli download tensorblock/pythia-12b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
2-bit
3-bit
Base model
EleutherAI/pythia-12b
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/pythia-12b-GGUF", filename="", )