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
Keep Q2_K/Q3_K_M gguf only
Browse files- sqlcoder-34b-alpha-Q3_K_L.gguf +0 -3
- sqlcoder-34b-alpha-Q3_K_S.gguf +0 -3
- sqlcoder-34b-alpha-Q4_0.gguf +0 -3
- sqlcoder-34b-alpha-Q4_K_M.gguf +0 -3
- sqlcoder-34b-alpha-Q4_K_S.gguf +0 -3
- sqlcoder-34b-alpha-Q5_0.gguf +0 -3
- sqlcoder-34b-alpha-Q5_K_M.gguf +0 -3
- sqlcoder-34b-alpha-Q5_K_S.gguf +0 -3
- sqlcoder-34b-alpha-Q6_K.gguf +0 -3
- sqlcoder-34b-alpha-Q8_0.gguf +0 -3
sqlcoder-34b-alpha-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4ad8acf2643319454ec8cb33965de84aa291f0782e3b1b3e3946b22f616e963a
|
| 3 |
-
size 17771524768
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa19dfe154cdbd1b956fdfdd862065ccc7e3e39166e0eb3a9eedf8ca2f907bed
|
| 3 |
-
size 14605349536
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5ce5a65f797a288c195b86054a66da0a3c953247616168e5b23525c45770107f
|
| 3 |
-
size 19052049056
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5ba78e12e09ca44153ff2c4c92aa092f1803b4585319010c66e2629779e38d9b
|
| 3 |
-
size 20219900576
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a14792bacdad2a643bc3f060599e2a7ac375e8d667e5dda9573789f438f91415
|
| 3 |
-
size 19191509664
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f4aeeec06c347ed01345668c87adea3988cb2c555199963cca73c9c4ea83db86
|
| 3 |
-
size 23237178016
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:05c221708935633943b5b8c1b044528a51a0ffdd61266be9a3bbb9f66f90055e
|
| 3 |
-
size 23838798496
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d963131dd905b5b5aa91e74d477e88f168231d1c8bfe45d6fa265bcd612fe604
|
| 3 |
-
size 23237178016
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fd17e07c16d3fe171dd8e23174041fed1cd342b8ca052a0335e887623176c500
|
| 3 |
-
size 27683877536
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-34b-alpha-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:af1d0e9b85bd27e4a3a73b22a5c408481466be819f5ad9c503dd4f2de72b262f
|
| 3 |
-
size 35856052896
|
|
|
|
|
|
|
|
|
|
|
|