Instructions to use tensorblock/CodeBarcenas-1b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/CodeBarcenas-1b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/CodeBarcenas-1b-GGUF", filename="CodeBarcenas-1b-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/CodeBarcenas-1b-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/CodeBarcenas-1b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeBarcenas-1b-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/CodeBarcenas-1b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeBarcenas-1b-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/CodeBarcenas-1b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/CodeBarcenas-1b-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/CodeBarcenas-1b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/CodeBarcenas-1b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeBarcenas-1b-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/CodeBarcenas-1b-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeBarcenas-1b-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/CodeBarcenas-1b-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/CodeBarcenas-1b-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/CodeBarcenas-1b-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/CodeBarcenas-1b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/CodeBarcenas-1b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeBarcenas-1b-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeBarcenas-1b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeBarcenas-1b-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeBarcenas-1b-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- CodeBarcenas-1b-Q3_K_L.gguf +0 -3
- CodeBarcenas-1b-Q3_K_S.gguf +0 -3
- CodeBarcenas-1b-Q4_0.gguf +0 -3
- CodeBarcenas-1b-Q4_K_M.gguf +0 -3
- CodeBarcenas-1b-Q4_K_S.gguf +0 -3
- CodeBarcenas-1b-Q5_0.gguf +0 -3
- CodeBarcenas-1b-Q5_K_M.gguf +0 -3
- CodeBarcenas-1b-Q5_K_S.gguf +0 -3
- CodeBarcenas-1b-Q6_K.gguf +0 -3
- CodeBarcenas-1b-Q8_0.gguf +0 -3
CodeBarcenas-1b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:26e08c04abc27d11a68a1c147a0cd79a73e7b06c92bda04af1cc9d40faac73ca
|
| 3 |
-
size 779626240
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a2a05d4c48c600b33fa700ed76f7fff47ee5c51553b9319dd537446deb9f2a54
|
| 3 |
-
size 634824448
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:33f25c2a4ca2d3fb8357274c9af067b820b0deaa9427bfb93cc4d3fb5b5c35bf
|
| 3 |
-
size 783558656
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fddf910c7742660c3f1a522596eed688740bdfcad08a3f48f9e0df2bf23ceca0
|
| 3 |
-
size 849618944
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4a75b79a429dd13b6459db7768248460b21a3aaa404f03cf3ca66fb4884fe4e0
|
| 3 |
-
size 789850112
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ec52d489bf8764208c5951b0b9d6adc33ef835f0d85d1b9ea3b7d8bc05471226
|
| 3 |
-
size 923543808
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a7a8503e520d1a2ab2911f4f74e1cf79d2e9f5ecbb8921c872faba2757031e64
|
| 3 |
-
size 965323008
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4098af55978260854e1a1aeb09c40e8573e1cb51a85333c9ca0b239e20c6a2d7
|
| 3 |
-
size 923543808
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5857343bb742e8dc39d7d9647b5b03ba01011dc045f9204057652d2abdc01b73
|
| 3 |
-
size 1072278048
|
|
|
|
|
|
|
|
|
|
|
|
CodeBarcenas-1b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:04286f4ab1004b8de7f9a57e9391d43a45207433305aa6d2c1665d674c5f3fc4
|
| 3 |
-
size 1367879136
|
|
|
|
|
|
|
|
|
|
|
|