Instructions to use tensorblock/sqlcoder-70b-alpha-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/sqlcoder-70b-alpha-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/sqlcoder-70b-alpha-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/sqlcoder-70b-alpha-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/sqlcoder-70b-alpha-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/sqlcoder-70b-alpha-GGUF", filename="sqlcoder-70b-alpha-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/sqlcoder-70b-alpha-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/sqlcoder-70b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/sqlcoder-70b-alpha-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/sqlcoder-70b-alpha-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/sqlcoder-70b-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-70b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/sqlcoder-70b-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-70b-alpha-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/sqlcoder-70b-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-70b-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-70b-alpha-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
- SGLang
How to use tensorblock/sqlcoder-70b-alpha-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/sqlcoder-70b-alpha-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/sqlcoder-70b-alpha-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/sqlcoder-70b-alpha-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/sqlcoder-70b-alpha-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/sqlcoder-70b-alpha-GGUF with Ollama:
ollama run hf.co/tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/sqlcoder-70b-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-70b-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-70b-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-70b-alpha-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/sqlcoder-70b-alpha-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
- Lemonade
How to use tensorblock/sqlcoder-70b-alpha-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/sqlcoder-70b-alpha-GGUF:Q2_K
Run and chat with the model
lemonade run user.sqlcoder-70b-alpha-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- sqlcoder-70b-alpha-Q3_K_L.gguf +0 -3
- sqlcoder-70b-alpha-Q3_K_S.gguf +0 -3
- sqlcoder-70b-alpha-Q4_0.gguf +0 -3
- sqlcoder-70b-alpha-Q4_K_M.gguf +0 -3
- sqlcoder-70b-alpha-Q4_K_S.gguf +0 -3
- sqlcoder-70b-alpha-Q5_0.gguf +0 -3
- sqlcoder-70b-alpha-Q5_K_M.gguf +0 -3
- sqlcoder-70b-alpha-Q5_K_S.gguf +0 -3
- sqlcoder-70b-alpha-Q6_K/sqlcoder-70b-alpha-Q6_K-00001-of-00002.gguf +0 -3
- sqlcoder-70b-alpha-Q6_K/sqlcoder-70b-alpha-Q6_K-00002-of-00002.gguf +0 -3
- sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00001-of-00003.gguf +0 -3
- sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00002-of-00003.gguf +0 -3
- sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00003-of-00003.gguf +0 -3
sqlcoder-70b-alpha-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b4408fec173d6ba1d85fb18dd7f4815802c698b1fecdd588ab6b8f69fe92701f
|
| 3 |
-
size 36148000640
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a81397ffc69d5284b9fbf70da6a25f4e58156e022b8e13296ef980312fc25814
|
| 3 |
-
size 29919459200
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:58cd9a58e98146a77c7cb5ec489d6471030e3773b28fb2b0a016e239a57eabee
|
| 3 |
-
size 38872431488
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5fa798c5e9bbb65d5b806309e06887cab4fd331b12d19c25001a1434d9c2806e
|
| 3 |
-
size 41423092608
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:85c61a45d38d7763e3628cf677fff46d5eb4b846f3b5e7313ca723c11ffdd47a
|
| 3 |
-
size 39249918848
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:816240d3ea29f559474354ac6503cb65c30f1111b05f0acd29c3a166edd519ba
|
| 3 |
-
size 47461596032
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8e40e9b93bf5b473e667c0a105cafa61f72a87935209dfe9f287724d91d7617b
|
| 3 |
-
size 48753965952
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6a2d977de1ea8d94a49147473915acc0652fa4cc341e1724e78d38d143511b0d
|
| 3 |
-
size 47461596032
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q6_K/sqlcoder-70b-alpha-Q6_K-00001-of-00002.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a7657092c513ce57c23ce40fc3130fcd709157777fb6f286f368a767927cf8da
|
| 3 |
-
size 34950823872
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q6_K/sqlcoder-70b-alpha-Q6_K-00002-of-00002.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c816162a826afde30f878ce89ea8ac8761cfc9e57a507e9ffc956700718145f6
|
| 3 |
-
size 21636759680
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00001-of-00003.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:32826a9c217b11ef167a6081666fd0bd5db06a4f144ba2be9e42f6f8a11ba2e5
|
| 3 |
-
size 34857426752
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00002-of-00003.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:337474ae110794f525750ca4dc44648aaf277d1431e9c737552b6ee9eb12edab
|
| 3 |
-
size 34958922176
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-70b-alpha-Q8_0/sqlcoder-70b-alpha-Q8_0-00003-of-00003.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8703226002a55a1587d554e6f64dcc7fc1c080b3653ad78a66dcf0f5e7a7c3cb
|
| 3 |
-
size 3476260800
|
|
|
|
|
|
|
|
|
|
|
|