LLM Reference

SQLCoder Models by Defog.ai

Defog.aiCC-BY-SA-4.0Coding
7 models2023–2024Up to 100k ctx

About

SQLCoder is a family of large language models developed by Defog.ai, tailored for transforming natural language queries into SQL commands. These models stand out for their capability to enable non-technical users to easily interact with databases by converting human-readable questions into accurate SQL queries. Fine-tuned on vast datasets of human-curated questions and SQL queries, SQLCoder achieves state-of-the-art performance across various benchmarks. The family includes various versions such as the 7B parameter model, optimized for different hardware from high-end GPUs to consumer-grade devices. Designed specifically for read-only database interactions, these models are not suitable for tasks involving write access. Defog.ai is committed to continuously enhancing SQLCoder, refining its features, and addressing limitations based on user feedback 10 5 13.

Current Variants

Use-when guidance is derived from seed capabilities, context, release, and replacement fields.

7 in view

Use when the workload needs 8k context and 8B parameters.

2024-058k context8B parameters

Use when the workload needs 32k context and 7B parameters.

2024-0232k context7B parameters

Use when the workload needs 16k context and 70B parameters.

2024-0116k context70B parameters

Use when the workload needs 100k context and 34B parameters.

2023-11100k context34B parameters

Use when the workload needs 100k context and 7B parameters.

2023-10100k context7B parameters
SQLCoder 2Current

Use when the workload needs 100k context and 15B parameters.

2023-10100k context15B parameters
SQLCoderCurrent

Use when the workload needs 8k context and 15B parameters.

2023-088k context15B parameters

Release Timeline

6 release groups
2024-05
1 current
Llama 3 SQLCoder 8B
8k context8B parameters
Current
2024-02
1 current
SQLCoder 7B 2
32k context7B parameters
Current
2024-01
1 current
SQLCoder 70B Alpha
16k context70B parameters
Current
2023-11
1 current
SQLCoder 34B Alpha
100k context34B parameters
Current
2023-10
2 current
SQLCoder 2
100k context15B parameters
Current
SQLCoder 7B
100k context7B parameters
Current
2023-08
1 current
SQLCoder
8k context15B parameters
Current

Specifications(7 models)

SQLCoder model specifications comparison
ModelReleasedContextParameters
Llama 3 SQLCoder 8B2024-058k8B
SQLCoder 7B 22024-0232k7B
SQLCoder 70B Alpha2024-0116k70B
SQLCoder 34B Alpha2023-11100k34B
SQLCoder 7B2023-10100k7B
SQLCoder 22023-10100k15B
SQLCoder2023-088k15B

Available From(1 provider)

Frequently Asked Questions

What is SQLCoder used for?
SQLCoder is used for coding. The family description and listed model capabilities point to those workloads as the best fit.
How does SQLCoder compare to StarCoder?
SQLCoder by Defog.ai is strongest where you need coding, while StarCoder by ServiceNow Research is the closest related family to check for coding. SQLCoder has 7 listed variants and reaches up to 100k context, while StarCoder reaches up to 8k context, so compare the specs and pricing tables before choosing a production model.
Which SQLCoder model should I use?
If price is the main constraint, use the pricing table first because SQLCoder does not have complete provider pricing in the local data. For the most capable/latest local choice, evaluate SQLCoder 34B Alpha with 100k context.

Models(7)