Instructions to use tensorblock/defog_sqlcoder-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/defog_sqlcoder-7b-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/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 serve -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/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -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
- Llama new
- 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 Desktop
- 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
- Atomic Chat
Upload folder using huggingface_hub
Browse filesFiles changed (14)
- .gitattributes+12
- README.mdAdded+116
- sqlcoder-7b-Q2_K.ggufAdded+3
- sqlcoder-7b-Q3_K_L.ggufAdded+3
- sqlcoder-7b-Q3_K_M.ggufAdded+3
- sqlcoder-7b-Q3_K_S.ggufAdded+3
- sqlcoder-7b-Q4_0.ggufAdded+3
- sqlcoder-7b-Q4_K_M.ggufAdded+3
- sqlcoder-7b-Q4_K_S.ggufAdded+3
- sqlcoder-7b-Q5_0.ggufAdded+3
- sqlcoder-7b-Q5_K_M.ggufAdded+3
- sqlcoder-7b-Q5_K_S.ggufAdded+3
- sqlcoder-7b-Q6_K.ggufAdded+3
- sqlcoder-7b-Q8_0.ggufAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434445464732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q4_0.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q5_0.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -textsqlcoder-7b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116---license: cc-by-sa-4.0language:- enpipeline_tag: text-generationtags:- code- TensorBlock- GGUFbase_model: defog/sqlcoder-7b---
<div style="width: auto; margin-left: auto; margin-right: auto"><img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;"></div><div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"> Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a> </p> </div></div>
## defog/sqlcoder-7b - GGUF
This repo contains GGUF format model files for [defog/sqlcoder-7b](https://huggingface.co/defog/sqlcoder-7b).
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b5165](https://github.com/ggml-org/llama.cpp/commit/1d735c0b4fa0551c51c2f4ac888dd9a01f447985).
## Our projects<table border="1" cellspacing="0" cellpadding="10"><tr> <th style="font-size: 25px;">Awesome MCP Servers</th> <th style="font-size: 25px;">TensorBlock Studio</th></tr> <tr> <th><img src="https://imgur.com/2Xov7B7.jpeg" alt="Project A" width="450"/></th> <th><img src="https://imgur.com/pJcmF5u.jpeg" alt="Project B" width="450"/></th> </tr> <tr> <th>A comprehensive collection of Model Context Protocol (MCP) servers.</th> <th>A lightweight, open, and extensible multi-LLM interaction studio.</th> </tr><tr> <th> <a href="https://github.com/TensorBlock/awesome-mcp-servers" target="_blank" style=" display: inline-block; padding: 8px 16px; background-color: #FF7F50; color: white; text-decoration: none; border-radius: 6px; font-weight: bold; font-family: sans-serif; ">๐ See what we built ๐</a> </th> <th> <a href="https://github.com/TensorBlock/TensorBlock-Studio" target="_blank" style=" display: inline-block; padding: 8px 16px; background-color: #FF7F50; color: white; text-decoration: none; border-radius: 6px; font-weight: bold; font-family: sans-serif; ">๐ See what we built ๐</a> </th></tr></table>
## Prompt template
```Unable to determine prompt format automatically. Please check the original model repository for the correct prompt format.```
## Model file specification
| Filename | Quant type | File Size | Description || -------- | ---------- | --------- | ----------- || [sqlcoder-7b-Q2_K.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q2_K.gguf) | Q2_K | 2.719 GB | smallest, significant quality loss - not recommended for most purposes || [sqlcoder-7b-Q3_K_S.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q3_K_S.gguf) | Q3_K_S | 3.165 GB | very small, high quality loss || [sqlcoder-7b-Q3_K_M.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q3_K_M.gguf) | Q3_K_M | 3.519 GB | very small, high quality loss || [sqlcoder-7b-Q3_K_L.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q3_K_L.gguf) | Q3_K_L | 3.822 GB | small, substantial quality loss || [sqlcoder-7b-Q4_0.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q4_0.gguf) | Q4_0 | 4.109 GB | legacy; small, very high quality loss - prefer using Q3_K_M || [sqlcoder-7b-Q4_K_S.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q4_K_S.gguf) | Q4_K_S | 4.140 GB | small, greater quality loss || [sqlcoder-7b-Q4_K_M.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q4_K_M.gguf) | Q4_K_M | 4.368 GB | medium, balanced quality - recommended || [sqlcoder-7b-Q5_0.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q5_0.gguf) | Q5_0 | 4.998 GB | legacy; medium, balanced quality - prefer using Q4_K_M || [sqlcoder-7b-Q5_K_S.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q5_K_S.gguf) | Q5_K_S | 4.998 GB | large, low quality loss - recommended || [sqlcoder-7b-Q5_K_M.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q5_K_M.gguf) | Q5_K_M | 5.131 GB | large, very low quality loss - recommended || [sqlcoder-7b-Q6_K.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q6_K.gguf) | Q6_K | 5.942 GB | very large, extremely low quality loss || [sqlcoder-7b-Q8_0.gguf](https://huggingface.co/tensorblock/defog_sqlcoder-7b-GGUF/blob/main/sqlcoder-7b-Q8_0.gguf) | Q8_0 | 7.696 GB | very large, extremely low quality loss - not recommended |
## Downloading instruction
### Command line
Firstly, install Huggingface Client
```shellpip install -U "huggingface_hub[cli]"```
Then, downoad the individual model file the a local directory
```shellhuggingface-cli download tensorblock/defog_sqlcoder-7b-GGUF --include "sqlcoder-7b-Q2_K.gguf" --local-dir MY_LOCAL_DIR```
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
```shellhuggingface-cli download tensorblock/defog_sqlcoder-7b-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'```123version https://git-lfs.github.com/spec/v1oid sha256:ad3f89375032e27f2cd090012fee3f548b8cf921f4ffb3b969cdaab25e05b938size 2719242304123version https://git-lfs.github.com/spec/v1oid sha256:584ce850881820b812a92ab5cccd2ae214b5dcbe0bb6d598e94701c4a811773bsize 3822024768123version https://git-lfs.github.com/spec/v1oid sha256:95ac37b127211f7e73256662062da9c2a713e050d60c3e3485a3c1f55605ce59size 3518986304123version https://git-lfs.github.com/spec/v1oid sha256:938ead351b25a6430e5ea67773d509442be83578d266710855bdc48f86f991e2size 3164567616123version https://git-lfs.github.com/spec/v1oid sha256:fd8375a182334a27e97c11581bf6d94a88ba4279f3d8731d27342261caf27c99size 4108916800123version https://git-lfs.github.com/spec/v1oid sha256:ed00bc0c62d8518e65bb3c1aa33545410872e09016c00bc302bd9942764b28dcsize 4368439360123version https://git-lfs.github.com/spec/v1oid sha256:57a25ab3b4414e100a18dbd590e094c1f8f700864458b729e41abb5d7aa7ce25size 4140374080123version https://git-lfs.github.com/spec/v1oid sha256:5d0e225b18b4d70011e3e617b711eb66af4be78b0d04361a284dfbc452805104size 4997716032123version https://git-lfs.github.com/spec/v1oid sha256:8c348ffac86a94a80e29e1d7b660dbc8965860dffdfd93d6ab2f2df647ea9c0fsize 5131409472123version https://git-lfs.github.com/spec/v1oid sha256:133da22222c137be231687732ea872b4098b17526739d94ddad493b197086a75size 4997716032123version https://git-lfs.github.com/spec/v1oid sha256:bc440cb6d6a76cea73afec6627112cbc4e3d296bba25f66517c50338e5f9d50bsize 5942065216123version https://git-lfs.github.com/spec/v1oid sha256:a9add51171c0933fa7ebdb194fd07b89eb7c8c89ee661de92e9b4e11fa2e82c1size 7695857728.gitattributes+12
README.mdAdded+116
sqlcoder-7b-Q2_K.ggufAdded+3
sqlcoder-7b-Q3_K_L.ggufAdded+3
sqlcoder-7b-Q3_K_M.ggufAdded+3
sqlcoder-7b-Q3_K_S.ggufAdded+3
sqlcoder-7b-Q4_0.ggufAdded+3
sqlcoder-7b-Q4_K_M.ggufAdded+3
sqlcoder-7b-Q4_K_S.ggufAdded+3
sqlcoder-7b-Q5_0.ggufAdded+3
sqlcoder-7b-Q5_K_M.ggufAdded+3
sqlcoder-7b-Q5_K_S.ggufAdded+3
sqlcoder-7b-Q6_K.ggufAdded+3
sqlcoder-7b-Q8_0.ggufAdded+3