Instructions to use QuantFactory/gpt2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantFactory/gpt2-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 QuantFactory/gpt2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/gpt2-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/gpt2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/gpt2-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf QuantFactory/gpt2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf QuantFactory/gpt2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/gpt2-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use QuantFactory/gpt2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/gpt2-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/gpt2-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/QuantFactory/gpt2-GGUF:Q4_K_M
- Ollama
How to use QuantFactory/gpt2-GGUF with Ollama:
ollama run hf.co/QuantFactory/gpt2-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use QuantFactory/gpt2-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/gpt2-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/gpt2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/gpt2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gpt2-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload gpt2.Q4_K_S.gguf with huggingface_hub
Verified signature8ddf641 -
Upload gpt2.Q3_K_S.gguf with huggingface_hub
Verified signature489af6c -
Upload gpt2.Q3_K_M.gguf with huggingface_hub
Verified signaturedf7204d -
Upload gpt2.Q3_K_L.gguf with huggingface_hub
Verified signaturef7e2cc3 -
Upload gpt2.Q2_K.gguf with huggingface_hub
Verified signaturef100f57 -
Upload gpt2.Q5_1.gguf with huggingface_hub
Verified signatured6884f6 -
Upload gpt2.Q5_0.gguf with huggingface_hub
Verified signature63ad497 -
Upload gpt2.Q5_K_S.gguf with huggingface_hub
Verified signaturea67b851 -
Upload gpt2.Q5_K_M.gguf with huggingface_hub
Verified signature249568c -
Upload gpt2.Q6_K.gguf with huggingface_hub
Verified signature51f3eaf -
Upload gpt2.Q8_0.gguf with huggingface_hub
Verified signatured28c8ac -
Upload gpt2.Q4_0.gguf with huggingface_hub
Verified signature244abb6 -
Upload gpt2.Q4_1.gguf with huggingface_hub
Verified signature4ee3ad0 -
Upload gpt2.Q4_K_M.gguf with huggingface_hub
Verified signatureb43d066 -
initial commit
Verified signatureea497c3