Instructions to use tensorblock/defog_sqlcoder-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/defog_sqlcoder-7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/defog_sqlcoder-7b-GGUF", filename="sqlcoder-7b-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/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/defog_sqlcoder-7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
- Ollama
How to use tensorblock/defog_sqlcoder-7b-GGUF with Ollama:
ollama run hf.co/tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/defog_sqlcoder-7b-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/defog_sqlcoder-7b-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/defog_sqlcoder-7b-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/defog_sqlcoder-7b-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/defog_sqlcoder-7b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
- Lemonade
How to use tensorblock/defog_sqlcoder-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/defog_sqlcoder-7b-GGUF:Q2_K
Run and chat with the model
lemonade run user.defog_sqlcoder-7b-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- sqlcoder-7b-Q3_K_L.gguf +0 -3
- sqlcoder-7b-Q3_K_S.gguf +0 -3
- sqlcoder-7b-Q4_0.gguf +0 -3
- sqlcoder-7b-Q4_K_M.gguf +0 -3
- sqlcoder-7b-Q4_K_S.gguf +0 -3
- sqlcoder-7b-Q5_0.gguf +0 -3
- sqlcoder-7b-Q5_K_M.gguf +0 -3
- sqlcoder-7b-Q5_K_S.gguf +0 -3
- sqlcoder-7b-Q6_K.gguf +0 -3
- sqlcoder-7b-Q8_0.gguf +0 -3
sqlcoder-7b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:584ce850881820b812a92ab5cccd2ae214b5dcbe0bb6d598e94701c4a811773b
|
| 3 |
-
size 3822024768
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:938ead351b25a6430e5ea67773d509442be83578d266710855bdc48f86f991e2
|
| 3 |
-
size 3164567616
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fd8375a182334a27e97c11581bf6d94a88ba4279f3d8731d27342261caf27c99
|
| 3 |
-
size 4108916800
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ed00bc0c62d8518e65bb3c1aa33545410872e09016c00bc302bd9942764b28dc
|
| 3 |
-
size 4368439360
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:57a25ab3b4414e100a18dbd590e094c1f8f700864458b729e41abb5d7aa7ce25
|
| 3 |
-
size 4140374080
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5d0e225b18b4d70011e3e617b711eb66af4be78b0d04361a284dfbc452805104
|
| 3 |
-
size 4997716032
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8c348ffac86a94a80e29e1d7b660dbc8965860dffdfd93d6ab2f2df647ea9c0f
|
| 3 |
-
size 5131409472
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:133da22222c137be231687732ea872b4098b17526739d94ddad493b197086a75
|
| 3 |
-
size 4997716032
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:bc440cb6d6a76cea73afec6627112cbc4e3d296bba25f66517c50338e5f9d50b
|
| 3 |
-
size 5942065216
|
|
|
|
|
|
|
|
|
|
|
|
sqlcoder-7b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a9add51171c0933fa7ebdb194fd07b89eb7c8c89ee661de92e9b4e11fa2e82c1
|
| 3 |
-
size 7695857728
|
|
|
|
|
|
|
|
|
|
|
|