Instructions to use tensorblock/codellama-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/codellama-7b-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/codellama-7b-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/codellama-7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/codellama-7b-GGUF", filename="codellama-7b-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-7b-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-7b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/codellama-7b-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-7b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/codellama-7b-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-7b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/codellama-7b-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-7b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/codellama-7b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/codellama-7b-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/codellama-7b-GGUF with Ollama:
ollama run hf.co/tensorblock/codellama-7b-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/codellama-7b-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-7b-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-7b-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-7b-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/codellama-7b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/codellama-7b-GGUF:Q2_K
- Lemonade
How to use tensorblock/codellama-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/codellama-7b-GGUF:Q2_K
Run and chat with the model
lemonade run user.codellama-7b-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- codellama-7b-Q3_K_L.gguf +0 -3
- codellama-7b-Q3_K_S.gguf +0 -3
- codellama-7b-Q4_0.gguf +0 -3
- codellama-7b-Q4_K_M.gguf +0 -3
- codellama-7b-Q4_K_S.gguf +0 -3
- codellama-7b-Q5_0.gguf +0 -3
- codellama-7b-Q5_K_M.gguf +0 -3
- codellama-7b-Q5_K_S.gguf +0 -3
- codellama-7b-Q6_K.gguf +0 -3
- codellama-7b-Q8_0.gguf +0 -3
codellama-7b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c4bcdff1e717f998bd2a78d23d464af43420a471974f17830a6b2bf6bbe453d0
|
| 3 |
-
size 3597193984
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:728521e3c06c6a946b03b8c9ec17d93ae5038d17afbda690b324ff5476000675
|
| 3 |
-
size 2948387584
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e3f6ec6d8e61310d2b207b291b495390d3856a1447e181ddea6c6a9274c903e4
|
| 3 |
-
size 3825898752
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2f2c271263a9ec993ed6e36e7e2d1ecbeed4e997df58c1adddb6e1b4b6aca080
|
| 3 |
-
size 4081095936
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fe278da163f9b595918dd33aa32fce824f5bf6d12925eb3924105b63b753eafc
|
| 3 |
-
size 3856831744
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:dca30ded3e25dd2f7845b930166c887196bf51fc99323b8fd59de396f2dc7bdb
|
| 3 |
-
size 4651791616
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0029b3545e7204484b6b0360ee6632e377a4a4a74765786683bdc74f487b2216
|
| 3 |
-
size 4783256832
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:837a095a99ac08ab54aa3d901e6216a43c062fe7d577e0ddcaba8f5b44a1b76b
|
| 3 |
-
size 4651791616
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9e4f00ca26791c0af9390e9fd69d8a6cdc18c58d126842119de29aad6b304955
|
| 3 |
-
size 5529302784
|
|
|
|
|
|
|
|
|
|
|
|
codellama-7b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:847ce4e09f7d920a9524c046c82bcf75531adcae4ed3e53ad50310f92183c2aa
|
| 3 |
-
size 7161230080
|
|
|
|
|
|
|
|
|
|
|
|