Instructions to use tensorblock/CodeLlama-34B-Python-fp16-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-fp16-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-fp16-GGUF", filename="CodeLlama-34B-Python-fp16-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/CodeLlama-34B-Python-fp16-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-fp16-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeLlama-34B-Python-fp16-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-fp16-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeLlama-34B-Python-fp16-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-fp16-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/CodeLlama-34B-Python-fp16-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-fp16-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/CodeLlama-34B-Python-fp16-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeLlama-34B-Python-fp16-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/CodeLlama-34B-Python-fp16-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeLlama-34B-Python-fp16-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/CodeLlama-34B-Python-fp16-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-fp16-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-fp16-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-fp16-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/CodeLlama-34B-Python-fp16-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeLlama-34B-Python-fp16-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeLlama-34B-Python-fp16-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeLlama-34B-Python-fp16-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeLlama-34B-Python-fp16-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- CodeLlama-34B-Python-fp16-Q3_K_L.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q3_K_S.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q4_0.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q4_K_M.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q4_K_S.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q5_0.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q5_K_M.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q5_K_S.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q6_K.gguf +0 -3
- CodeLlama-34B-Python-fp16-Q8_0.gguf +0 -3
CodeLlama-34B-Python-fp16-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1cc93b85048ebcdd75d457afd4499d465d64cc506bbe807df5a68593e4ca8883
|
| 3 |
-
size 17771524736
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fb419ebbca95c95cf6342398b7339f8b98b04d7763e04c45e17d6ec977571efd
|
| 3 |
-
size 14605349504
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:90b1271a3feb6751410a5c11279f69216c3de279d17c4541880550e2c5b58ad2
|
| 3 |
-
size 19052049024
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7bc607e14068b5aa305f9ce6a33d23f7c877a24b1be42b4e590d80a86e47beec
|
| 3 |
-
size 20219900544
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cca41194cb4812231c226f389434166a5020dc5a966ffc28100d5e14d320168e
|
| 3 |
-
size 19191509632
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b50fb5ee9d299a0dd51a8a02b7beabb479d4cb60322fdd8fa4e7c157a681554e
|
| 3 |
-
size 23237177984
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7b1cec3cf9350e1b13389ae68d27bca71792fecfd6251cdf865fabbcff3b91c3
|
| 3 |
-
size 23838798464
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:988dbe2bd6138ffb3f0c92fcde353cb1407e6c7cddd6860496c46b71c4ace838
|
| 3 |
-
size 23237177984
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c3fc75fa22f09a00898977f4553554dd4c1f1aa5819aad41dccd4634bd2a07fe
|
| 3 |
-
size 27683877504
|
|
|
|
|
|
|
|
|
|
|
|
CodeLlama-34B-Python-fp16-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:236f97d192a9857ed682e404ca1018063f2b4cff25ec272b386ba19f5de02324
|
| 3 |
-
size 35856052864
|
|
|
|
|
|
|
|
|
|
|
|