Instructions to use tensorblock/code_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 tensorblock/code_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 tensorblock/code_gpt2-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/code_gpt2-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/code_gpt2-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/code_gpt2-GGUF:Q2_K
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 tensorblock/code_gpt2-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/code_gpt2-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/code_gpt2-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/code_gpt2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/code_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": "tensorblock/code_gpt2-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/code_gpt2-GGUF:Q2_K
- Ollama
How to use tensorblock/code_gpt2-GGUF with Ollama:
ollama run hf.co/tensorblock/code_gpt2-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/code_gpt2-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/code_gpt2-GGUF:Q2_K
- Lemonade
How to use tensorblock/code_gpt2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/code_gpt2-GGUF:Q2_K
Run and chat with the model
lemonade run user.code_gpt2-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Download code_gpt2-Q3_K_M.gguf from tensorblock/code_gpt2-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 97.7 MB
-
https://huggingface.co/tensorblock/code_gpt2-GGUF/resolve/main/code_gpt2-Q3_K_M.gguf
- Command line
-
hf download hf://tensorblock/code_gpt2-GGUF/code_gpt2-Q3_K_M.gguf
-
curl -L -o code_gpt2-Q3_K_M.gguf https://huggingface.co/tensorblock/code_gpt2-GGUF/resolve/main/code_gpt2-Q3_K_M.gguf
97.7 MB
- Xet hash:
- e45fc6c11546c1bc3b79b78c5ef56c9c9650ccd67b2e95df89e58b9741d1be00
- Size of remote file:
- 97.7 MB
- SHA256:
- 4ebd3e6043c589613dbf3decaecb540d2e118f54ccd2e3f3e1df742ea601efdc
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.