NotShrirang / DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: February 23 2025
text-generation

Introduction of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

Model Details of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

DeepSeek R1 Distill Qwen 1.5B finetuned for SQL query generation

This model is a fine-tuned version of DeepSeek R1 Distill Qwen 1.5B, specifically optimized for SQL query generation. It has been trained on the GretelAI Synthetic Text-to-SQL dataset to enhance its ability to convert natural language prompts into accurate SQL queries.

Due to its lightweight architecture, this model can be deployed efficiently on local machines without requiring a GPU, making it ideal for on-premises inference in resource-constrained environments. It offers a balance between performance and efficiency, making it suitable for businesses and developers looking for a cost-effective SQL generation solution.

Training Methodology
  1. Fine-tuning approach: LoRA (Low-Rank Adaptation) for efficient parameter tuning.
  2. Precision: bfloat16 (bf16) to reduce memory consumption while maintaining numerical stability.
  3. Gradient Accumulation: Used to handle larger batch sizes within GPU memory limits.
  4. Optimizer: AdamW with learning rate scheduling.
  5. Cosine Scheduler: Used cosine learning rate scheduler for training stability. (500 warm-up steps, 2000 steps for the cosine schedule.)
  6. Hardware: Trained on 8xA100 GPUs with mixed precision training.
Use Cases
  1. Assisting developers and analysts in writing SQL queries.
  2. Automating SQL query generation from user prompts in chatbots.
  3. Enhancing SQL-based retrieval-augmented generation (RAG) systems.
Limitations & Considerations
  1. The model may generate incorrect or suboptimal SQL queries for complex database schemas.
  2. It does not perform schema reasoning and requires clear table/column references in the input.
  3. Further fine-tuning on domain-specific SQL data may be required for better accuracy.
How to Use

You can load the model using 🤗 Transformers:

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "NotShrirang/sql-deepseek-r1-distill-qwen-1.5B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

prompt = "Write a SQL query to get the total revenue from the sales table."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Runs of NotShrirang DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co Model

More DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder license Visit here:

https://choosealicense.com/licenses/apache-2.0

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co is an AI model on huggingface.co that provides DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder's model effect (), which can be used instantly with this NotShrirang DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder model. huggingface.co supports a free trial of the DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder model, and also provides paid use of the DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder. Support call DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder model through api, including Node.js, Python, http.

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co Url

https://huggingface.co/NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

NotShrirang DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder online free

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co is an online trial and call api platform, which integrates DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder's modeling effects, including api services, and provides a free online trial of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder, you can try DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder online for free by clicking the link below.

NotShrirang DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder online free url in huggingface.co:

https://huggingface.co/NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder install

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder is an open source model from GitHub that offers a free installation service, and any user can find DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder on GitHub to install. At the same time, huggingface.co provides the effect of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder install, users can directly use DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder install url in huggingface.co:

https://huggingface.co/NotShrirang/DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

Url of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder

DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co Url

Provider of DeepSeek-R1-Distill-Qwen-1.5B-SQL-Coder huggingface.co

NotShrirang
ORGANIZATIONS

Other API from NotShrirang

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 21 2026