Instructions to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="duyntnet/sqlcoder-7b-2-imatrix-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("duyntnet/sqlcoder-7b-2-imatrix-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use duyntnet/sqlcoder-7b-2-imatrix-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 duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf duyntnet/sqlcoder-7b-2-imatrix-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 duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf duyntnet/sqlcoder-7b-2-imatrix-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 duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
Use Docker
docker model run hf.co/duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "duyntnet/sqlcoder-7b-2-imatrix-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "duyntnet/sqlcoder-7b-2-imatrix-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
- SGLang
How to use duyntnet/sqlcoder-7b-2-imatrix-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 "duyntnet/sqlcoder-7b-2-imatrix-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": "duyntnet/sqlcoder-7b-2-imatrix-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 "duyntnet/sqlcoder-7b-2-imatrix-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": "duyntnet/sqlcoder-7b-2-imatrix-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with Ollama:
ollama run hf.co/duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with Docker Model Runner:
docker model run hf.co/duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
- Lemonade
How to use duyntnet/sqlcoder-7b-2-imatrix-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull duyntnet/sqlcoder-7b-2-imatrix-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.sqlcoder-7b-2-imatrix-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload sqlcoder-7b-2-Q8_0.gguf with huggingface_hub
Verified signatureab9f78c -
Upload sqlcoder-7b-2-Q6_K.gguf with huggingface_hub
Verified signature0de141e -
Upload sqlcoder-7b-2-Q5_K_S.gguf with huggingface_hub
Verified signature2bf0a93 -
Upload sqlcoder-7b-2-Q5_K_M.gguf with huggingface_hub
Verified signature89f1db4 -
Upload sqlcoder-7b-2-Q5_1.gguf with huggingface_hub
Verified signature70eb39e -
Upload sqlcoder-7b-2-Q5_0.gguf with huggingface_hub
Verified signaturec61b238 -
Upload sqlcoder-7b-2-IQ4_XS.gguf with huggingface_hub
Verified signature1032e46 -
Upload sqlcoder-7b-2-IQ4_NL.gguf with huggingface_hub
Verified signature858427b -
Upload sqlcoder-7b-2-Q4_K_S.gguf with huggingface_hub
Verified signaturedcbef8f -
Upload sqlcoder-7b-2-Q4_K_M.gguf with huggingface_hub
Verified signaturee9c0db1 -
Upload sqlcoder-7b-2-Q4_1.gguf with huggingface_hub
Verified signature354287f -
Upload sqlcoder-7b-2-Q4_0.gguf with huggingface_hub
Verified signaturea30e4e9 -
Upload sqlcoder-7b-2-IQ3_XXS.gguf with huggingface_hub
Verified signaturec841972 -
Upload sqlcoder-7b-2-IQ3_XS.gguf with huggingface_hub
Verified signatured13b94a -
Upload sqlcoder-7b-2-IQ3_M.gguf with huggingface_hub
Verified signature4984b07 -
Upload sqlcoder-7b-2-IQ3_S.gguf with huggingface_hub
Verified signature3047036 -
Upload sqlcoder-7b-2-Q3_K_L.gguf with huggingface_hub
Verified signature17a42f6 -
Upload sqlcoder-7b-2-Q3_K_M.gguf with huggingface_hub
Verified signature65a0c83 -
Upload sqlcoder-7b-2-Q3_K_S.gguf with huggingface_hub
Verified signature7ff09c6 -
Upload sqlcoder-7b-2-IQ2_XXS.gguf with huggingface_hub
Verified signature5c813f3 -
Upload sqlcoder-7b-2-IQ2_XS.gguf with huggingface_hub
Verified signature21c2724 -
Upload sqlcoder-7b-2-IQ2_M.gguf with huggingface_hub
Verified signaturedc082c0 -
Upload sqlcoder-7b-2-IQ2_S.gguf with huggingface_hub
Verified signature8e516c4 -
Upload sqlcoder-7b-2-Q2_K_S.gguf with huggingface_hub
Verified signatured4f7f0c -
Upload sqlcoder-7b-2-Q2_K.gguf with huggingface_hub
Verified signature2e8cda9 -
Upload sqlcoder-7b-2-IQ1_M.gguf with huggingface_hub
Verified signatureb8803b4 -
Upload sqlcoder-7b-2-IQ1_S.gguf with huggingface_hub
Verified signature54244b3 -
Upload README.md with huggingface_hub
Verified signaturea637edd -
initial commit
Verified signature979aec9