Instructions to use tensorblock/Python-Code-33B-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-33B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Python-Code-33B-GGUF", filename="Python-Code-33B-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-33B-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-33B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Python-Code-33B-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-33B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Python-Code-33B-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-33B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Python-Code-33B-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-33B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Python-Code-33B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Python-Code-33B-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/Python-Code-33B-GGUF with Ollama:
ollama run hf.co/tensorblock/Python-Code-33B-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/Python-Code-33B-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-33B-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-33B-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-33B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Python-Code-33B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Python-Code-33B-GGUF:Q2_K
- Lemonade
How to use tensorblock/Python-Code-33B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Python-Code-33B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Python-Code-33B-GGUF-Q2_K
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -131,12 +131,47 @@ This repo contains GGUF format model files for [ajibawa-2023/Python-Code-33B](ht
|
|
| 131 |
|
| 132 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
</
|
| 139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
## Prompt template
|
| 141 |
|
| 142 |
```
|
|
|
|
| 131 |
|
| 132 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 133 |
|
| 134 |
+
## Our projects
|
| 135 |
+
<table border="1" cellspacing="0" cellpadding="10">
|
| 136 |
+
<tr>
|
| 137 |
+
<th style="font-size: 25px;">Awesome MCP Servers</th>
|
| 138 |
+
<th style="font-size: 25px;">TensorBlock Studio</th>
|
| 139 |
+
</tr>
|
| 140 |
+
<tr>
|
| 141 |
+
<th><img src="https://imgur.com/2Xov7B7.jpeg" alt="Project A" width="450"/></th>
|
| 142 |
+
<th><img src="https://imgur.com/pJcmF5u.jpeg" alt="Project B" width="450"/></th>
|
| 143 |
+
</tr>
|
| 144 |
+
<tr>
|
| 145 |
+
<th>A comprehensive collection of Model Context Protocol (MCP) servers.</th>
|
| 146 |
+
<th>A lightweight, open, and extensible multi-LLM interaction studio.</th>
|
| 147 |
+
</tr>
|
| 148 |
+
<tr>
|
| 149 |
+
<th>
|
| 150 |
+
<a href="https://github.com/TensorBlock/awesome-mcp-servers" target="_blank" style="
|
| 151 |
+
display: inline-block;
|
| 152 |
+
padding: 8px 16px;
|
| 153 |
+
background-color: #FF7F50;
|
| 154 |
+
color: white;
|
| 155 |
+
text-decoration: none;
|
| 156 |
+
border-radius: 6px;
|
| 157 |
+
font-weight: bold;
|
| 158 |
+
font-family: sans-serif;
|
| 159 |
+
">๐ See what we built ๐</a>
|
| 160 |
+
</th>
|
| 161 |
+
<th>
|
| 162 |
+
<a href="https://github.com/TensorBlock/TensorBlock-Studio" target="_blank" style="
|
| 163 |
+
display: inline-block;
|
| 164 |
+
padding: 8px 16px;
|
| 165 |
+
background-color: #FF7F50;
|
| 166 |
+
color: white;
|
| 167 |
+
text-decoration: none;
|
| 168 |
+
border-radius: 6px;
|
| 169 |
+
font-weight: bold;
|
| 170 |
+
font-family: sans-serif;
|
| 171 |
+
">๐ See what we built ๐</a>
|
| 172 |
+
</th>
|
| 173 |
+
</tr>
|
| 174 |
+
</table>
|
| 175 |
## Prompt template
|
| 176 |
|
| 177 |
```
|