Instructions to use chatdb/natural-sql-7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chatdb/natural-sql-7b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chatdb/natural-sql-7b-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("chatdb/natural-sql-7b-GGUF", dtype="auto") - llama-cpp-python
How to use chatdb/natural-sql-7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="chatdb/natural-sql-7b-GGUF", filename="natural-sql-7b.Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use chatdb/natural-sql-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 chatdb/natural-sql-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf chatdb/natural-sql-7b-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf chatdb/natural-sql-7b-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf chatdb/natural-sql-7b-GGUF:Q4_K_M
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 chatdb/natural-sql-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf chatdb/natural-sql-7b-GGUF:Q4_K_M
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 chatdb/natural-sql-7b-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf chatdb/natural-sql-7b-GGUF:Q4_K_M
Use Docker
docker model run hf.co/chatdb/natural-sql-7b-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use chatdb/natural-sql-7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chatdb/natural-sql-7b-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chatdb/natural-sql-7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/chatdb/natural-sql-7b-GGUF:Q4_K_M
- SGLang
How to use chatdb/natural-sql-7b-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 "chatdb/natural-sql-7b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chatdb/natural-sql-7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "chatdb/natural-sql-7b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chatdb/natural-sql-7b-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use chatdb/natural-sql-7b-GGUF with Ollama:
ollama run hf.co/chatdb/natural-sql-7b-GGUF:Q4_K_M
- Unsloth Studio new
How to use chatdb/natural-sql-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 chatdb/natural-sql-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 chatdb/natural-sql-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 chatdb/natural-sql-7b-GGUF to start chatting
- Docker Model Runner
How to use chatdb/natural-sql-7b-GGUF with Docker Model Runner:
docker model run hf.co/chatdb/natural-sql-7b-GGUF:Q4_K_M
- Lemonade
How to use chatdb/natural-sql-7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull chatdb/natural-sql-7b-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.natural-sql-7b-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- natural-sql-7b.Q2_K.gguf +3 -0
- natural-sql-7b.Q3_K_L.gguf +3 -0
- natural-sql-7b.Q3_K_M.gguf +3 -0
- natural-sql-7b.Q3_K_S.gguf +3 -0
- natural-sql-7b.Q4_0.gguf +3 -0
- natural-sql-7b.Q4_1.gguf +3 -0
- natural-sql-7b.Q4_K_S.gguf +3 -0
- natural-sql-7b.Q5_0.gguf +3 -0
- natural-sql-7b.Q5_1.gguf +3 -0
- natural-sql-7b.Q5_K_S.gguf +3 -0
- natural-sql-7b.Q6_K.gguf +3 -0
- natural-sql-7b.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
natural-sql-7b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
natural-sql-7b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
natural-sql-7b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
natural-sql-7b.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
natural-sql-7b.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
natural-sql-7b.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
natural-sql-7b.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
natural-sql-7b.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
natural-sql-7b.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
natural-sql-7b.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
natural-sql-7b.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
natural-sql-7b.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
natural-sql-7b.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
natural-sql-7b.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
natural-sql-7b.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
natural-sql-7b.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
natural-sql-7b.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34fc0e2d97216991bc0aeb39b38a0e527bbc16a0104d0779df47a6fad804f6a6
|
| 3 |
+
size 2718835040
|
natural-sql-7b.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a313fc7d7c016e32a7d0553bd781662f064e9fe738171f28ccd76688524d1d17
|
| 3 |
+
size 3746685280
|
natural-sql-7b.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d63314e046152dfeb19bdfbd30c265a87954f971308fc31d403860477ec572f
|
| 3 |
+
size 3461603680
|
natural-sql-7b.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7a47933cd11cbae2863d6f26885f6797e413ea1a02dcf2df864b3a261dc3131
|
| 3 |
+
size 3138429280
|
natural-sql-7b.Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ec018adeb4f7d906beb125ae040f4d5db28641978c998299840dd41351dec16
|
| 3 |
+
size 4000473440
|
natural-sql-7b.Q4_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecbbf8e07c4c80665b03f5c83b1b2b4420a0411d138386eb72f3397d1d5078b1
|
| 3 |
+
size 4406141280
|
natural-sql-7b.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12b8035a649230d3074cffadbe0d9b6bddf0b5d655b210e5f7d31b600c6eb1c8
|
| 3 |
+
size 4025770336
|
natural-sql-7b.Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5219610862abc706921621f70db19f73df03affef6688e97a8fd685110c283b2
|
| 3 |
+
size 4811809120
|
natural-sql-7b.Q5_1.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:731531c4910839ebb26b4962da74d0f412f9511a2049b599762bf6ad88ad274a
|
| 3 |
+
size 5217476960
|
natural-sql-7b.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2480c02b08d3f97d8d9c08da8d886b0929931b7e12125fc22a337fd48e69854
|
| 3 |
+
size 4811809120
|
natural-sql-7b.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86d7c5f60e8249e93f97e0ba7fa1a3594f59419b8ed99512cd23adc72b56e9e6
|
| 3 |
+
size 5673853280
|
natural-sql-7b.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66a9592f39d3d9680d5e66ca2b4febd049a63b662f9813285c3ba28eb135aa53
|
| 3 |
+
size 7347396960
|