Instructions to use tensorblock/sqlcoder-34b-alpha-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/sqlcoder-34b-alpha-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/sqlcoder-34b-alpha-GGUF", filename="sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/sqlcoder-34b-alpha-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/sqlcoder-34b-alpha-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/sqlcoder-34b-alpha-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
- Ollama
How to use tensorblock/sqlcoder-34b-alpha-GGUF with Ollama:
ollama run hf.co/tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-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/sqlcoder-34b-alpha-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/sqlcoder-34b-alpha-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
- Lemonade
How to use tensorblock/sqlcoder-34b-alpha-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/sqlcoder-34b-alpha-GGUF:Q2_K
Run and chat with the model
lemonade run user.sqlcoder-34b-alpha-GGUF-Q2_K
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,44 +28,70 @@ The files were quantized using machines provided by [TensorBlock](https://tensor
|
|
| 28 |
|
| 29 |
## Our projects
|
| 30 |
<table border="1" cellspacing="0" cellpadding="10">
|
| 31 |
-
<tr>
|
| 32 |
-
<th style="font-size: 25px;">Awesome MCP Servers</th>
|
| 33 |
-
<th style="font-size: 25px;">TensorBlock Studio</th>
|
| 34 |
-
</tr>
|
| 35 |
<tr>
|
| 36 |
-
<th
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
</tr>
|
| 39 |
<tr>
|
| 40 |
<th>A comprehensive collection of Model Context Protocol (MCP) servers.</th>
|
| 41 |
<th>A lightweight, open, and extensible multi-LLM interaction studio.</th>
|
| 42 |
</tr>
|
| 43 |
-
<tr>
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
</tr>
|
| 69 |
</table>
|
| 70 |
## Prompt template
|
| 71 |
|
|
|
|
| 28 |
|
| 29 |
## Our projects
|
| 30 |
<table border="1" cellspacing="0" cellpadding="10">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
<tr>
|
| 32 |
+
<th colspan="2" style="font-size: 25px;">Forge</th>
|
| 33 |
+
</tr>
|
| 34 |
+
<tr>
|
| 35 |
+
<th colspan="2">
|
| 36 |
+
<img src="https://imgur.com/faI5UKh.jpeg" alt="Forge Project" width="900"/>
|
| 37 |
+
</th>
|
| 38 |
+
</tr>
|
| 39 |
+
<tr>
|
| 40 |
+
<th colspan="2">An OpenAI-compatible multi-provider routing layer.</th>
|
| 41 |
+
</tr>
|
| 42 |
+
<tr>
|
| 43 |
+
<th colspan="2">
|
| 44 |
+
<a href="https://github.com/TensorBlock/forge" target="_blank" style="
|
| 45 |
+
display: inline-block;
|
| 46 |
+
padding: 8px 16px;
|
| 47 |
+
background-color: #FF7F50;
|
| 48 |
+
color: white;
|
| 49 |
+
text-decoration: none;
|
| 50 |
+
border-radius: 6px;
|
| 51 |
+
font-weight: bold;
|
| 52 |
+
font-family: sans-serif;
|
| 53 |
+
">π Try it now! π</a>
|
| 54 |
+
</th>
|
| 55 |
+
</tr>
|
| 56 |
+
|
| 57 |
+
<tr>
|
| 58 |
+
<th style="font-size: 25px;">Awesome MCP Servers</th>
|
| 59 |
+
<th style="font-size: 25px;">TensorBlock Studio</th>
|
| 60 |
+
</tr>
|
| 61 |
+
<tr>
|
| 62 |
+
<th><img src="https://imgur.com/2Xov7B7.jpeg" alt="MCP Servers" width="450"/></th>
|
| 63 |
+
<th><img src="https://imgur.com/pJcmF5u.jpeg" alt="Studio" width="450"/></th>
|
| 64 |
</tr>
|
| 65 |
<tr>
|
| 66 |
<th>A comprehensive collection of Model Context Protocol (MCP) servers.</th>
|
| 67 |
<th>A lightweight, open, and extensible multi-LLM interaction studio.</th>
|
| 68 |
</tr>
|
| 69 |
+
<tr>
|
| 70 |
+
<th>
|
| 71 |
+
<a href="https://github.com/TensorBlock/awesome-mcp-servers" target="_blank" style="
|
| 72 |
+
display: inline-block;
|
| 73 |
+
padding: 8px 16px;
|
| 74 |
+
background-color: #FF7F50;
|
| 75 |
+
color: white;
|
| 76 |
+
text-decoration: none;
|
| 77 |
+
border-radius: 6px;
|
| 78 |
+
font-weight: bold;
|
| 79 |
+
font-family: sans-serif;
|
| 80 |
+
">π See what we built π</a>
|
| 81 |
+
</th>
|
| 82 |
+
<th>
|
| 83 |
+
<a href="https://github.com/TensorBlock/TensorBlock-Studio" target="_blank" style="
|
| 84 |
+
display: inline-block;
|
| 85 |
+
padding: 8px 16px;
|
| 86 |
+
background-color: #FF7F50;
|
| 87 |
+
color: white;
|
| 88 |
+
text-decoration: none;
|
| 89 |
+
border-radius: 6px;
|
| 90 |
+
font-weight: bold;
|
| 91 |
+
font-family: sans-serif;
|
| 92 |
+
">π See what we built π</a>
|
| 93 |
+
</th>
|
| 94 |
+
</tr>
|
| 95 |
</table>
|
| 96 |
## Prompt template
|
| 97 |
|