LLM Reference

SQLCoder 7B 2

About

SQLCoder-7B-2 is a large language model developed by Defog, Inc., designed to translate natural language questions into SQL queries, effectively bridging the gap for non-technical users to interact with databases. With its 7 billion parameters, this model is fine-tuned from the CodeLlama-7B base and operates efficiently on consumer-grade hardware. Its key capabilities include high accuracy in text-to-SQL tasks, particularly with complex queries like joins, while focusing on PostgreSQL syntax. SQLCoder-7B-2 is accessible via open-source platforms like Hugging Face and integrates with tools to facilitate user-friendly database querying interfaces. However, it is primarily a translator and requires schema descriptions for effective query generation, with some limitations such as database system specificity and not functioning as an analyst.

Capabilities

MultimodalFunction CallingTool UseJSON Mode

Providers(1)

ProviderInput (per 1M)Output (per 1M)Type
Cloudflare Workers AI
Serverless

Specifications

FamilySQLCoder
Released2024-02-05
Parameters7B
ArchitectureDecoder Only
Specializationgeneral