Instructions to use tensorblock/Python-Code-13B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/Python-Code-13B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Python-Code-13B-GGUF", filename="Python-Code-13B-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/Python-Code-13B-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/Python-Code-13B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Python-Code-13B-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/Python-Code-13B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Python-Code-13B-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/Python-Code-13B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Python-Code-13B-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/Python-Code-13B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Python-Code-13B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Python-Code-13B-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/Python-Code-13B-GGUF with Ollama:
ollama run hf.co/tensorblock/Python-Code-13B-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/Python-Code-13B-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/Python-Code-13B-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/Python-Code-13B-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/Python-Code-13B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Python-Code-13B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Python-Code-13B-GGUF:Q2_K
- Lemonade
How to use tensorblock/Python-Code-13B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Python-Code-13B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Python-Code-13B-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- Python-Code-13B-Q3_K_L.gguf +0 -3
- Python-Code-13B-Q3_K_S.gguf +0 -3
- Python-Code-13B-Q4_0.gguf +0 -3
- Python-Code-13B-Q4_K_M.gguf +0 -3
- Python-Code-13B-Q4_K_S.gguf +0 -3
- Python-Code-13B-Q5_0.gguf +0 -3
- Python-Code-13B-Q5_K_M.gguf +0 -3
- Python-Code-13B-Q5_K_S.gguf +0 -3
- Python-Code-13B-Q6_K.gguf +0 -3
- Python-Code-13B-Q8_0.gguf +0 -3
Python-Code-13B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9dbe2184e9562ddcd01c94020ffd3731dff1b2b00a38d8caaf9f14d8462f970f
|
| 3 |
-
size 6929560224
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3090846d30786ca8296c8021700cbfaf6d11a31bd9ea90235dbb0005d8cb3a6e
|
| 3 |
-
size 5658981024
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1dc149174e8feb6e01bbe4278707997e9c7889d12475b0b8c347a2da2a374c76
|
| 3 |
-
size 7365835424
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ac51896aafcee1b0ab406a968e8131bb46423ca72ee950c750101c70a402e6d9
|
| 3 |
-
size 7865957024
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:914a1b8e1a3f4284fcac06362e8c884894820e7d6834206a36ff63bd0ad9b2c4
|
| 3 |
-
size 7423179424
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4ca7963dd48ad1cee33ac4d829a51fc6890741882f07429c0523664ca78d257b
|
| 3 |
-
size 8972286624
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9dd5acccb94e11fe5133dc0c633bf2584f5c30f15c67aa8a7184d14c952f02b4
|
| 3 |
-
size 9229925024
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b9f1e8bb22a66ce25f227ad2fa5f43ffee4d31be29fe25637f85d8840bc950eb
|
| 3 |
-
size 8972286624
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9ac4fd2b4295ec1eca1b982e50dc43f701d251c73d9c2face3c7b62c6f566d93
|
| 3 |
-
size 10679141024
|
|
|
|
|
|
|
|
|
|
|
|
Python-Code-13B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c2faa4d2bbdf489f11a91203c98a122ce95aab6802fde95ca3114804eb29f159
|
| 3 |
-
size 13831320224
|
|
|
|
|
|
|
|
|
|
|
|