Instructions to use tensorblock/CodeLlama-34b-Python-hf-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/CodeLlama-34b-Python-hf-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/CodeLlama-34b-Python-hf-GGUF", filename="CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/CodeLlama-34b-Python-hf-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
- Ollama
How to use tensorblock/CodeLlama-34b-Python-hf-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-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/CodeLlama-34b-Python-hf-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/CodeLlama-34b-Python-hf-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeLlama-34b-Python-hf-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeLlama-34b-Python-hf-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeLlama-34b-Python-hf-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- CodeLlama-34b-Python-hf-Q3_K_L.gguf +0 -3
- CodeLlama-34b-Python-hf-Q3_K_S.gguf +0 -3
- CodeLlama-34b-Python-hf-Q4_0.gguf +0 -3
- CodeLlama-34b-Python-hf-Q4_K_M.gguf +0 -3
- CodeLlama-34b-Python-hf-Q4_K_S.gguf +0 -3
- CodeLlama-34b-Python-hf-Q5_0.gguf +0 -3
- CodeLlama-34b-Python-hf-Q5_K_M.gguf +0 -3
- CodeLlama-34b-Python-hf-Q5_K_S.gguf +0 -3
- CodeLlama-34b-Python-hf-Q6_K.gguf +0 -3
- CodeLlama-34b-Python-hf-Q8_0.gguf +0 -3
CodeLlama-34b-Python-hf-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17d449e252fe845591e8eed1a7dafe549e107c58bf86f225f0f8506b47171eba
|
| 3 |
-
size 17771524768
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:46b245d937e92637a7db3c122e33961d853ae2a9802fbc9e2a8b36cc8ba58db1
|
| 3 |
-
size 14605349536
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:40caba6c77d602931911b6d0f5bc68141d7472291998622b725ba13011e9bc3d
|
| 3 |
-
size 19052049056
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0f4f60578a4985ad8b29d15969bb644dd5d633742dc5d553180d3e3e03218183
|
| 3 |
-
size 20219900576
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:933b040f03c036ae4d6a3cf41b4124a410e94e0d94cce961e8d5dc7b71906ec1
|
| 3 |
-
size 19191509664
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5618232ba04f8f17690e5cfd469aa774c7667117b33074d5e0806847c33135a1
|
| 3 |
-
size 23237178016
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:940ebfb5d09337c4c3b4b4708ee246ce87f4bae9c4f8a49cc34912aec2d86ae2
|
| 3 |
-
size 23838798496
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ec8f1a5ca691d223472f2d03115bc6032eb3352d3a088696437957be052d8e5f
|
| 3 |
-
size 23237178016
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c65256f99d41f9e6f2160de299196829b72362a3e9d14fa2bcc73af87f9422ab
|
| 3 |
-
size 27683877536
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34b-Python-hf-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:661c8501990e8c3f27eb89673fb0f629b11164531b70df4089619135efc238c6
|
| 3 |
-
size 35856052896
|
|
|
|
|
|
|
|
|
|
|
|