Llama 3 Sqlcoder 8B by defog

 ยป  All LLMs  ยป  defog  ยป  Llama 3 Sqlcoder 8B   URL Share it on

  Autotrain compatible   Code   Conversational   Endpoints compatible   Instruct   Llama   Region:us   Safetensors   Sharded   Tensorflow

Llama 3 Sqlcoder 8B Benchmarks

nn.n% — How the model compares to the reference models: Anthropic Sonnet 3.5 ("so35"), GPT-4o ("gpt4o") or GPT-4 ("gpt4").
Llama 3 Sqlcoder 8B (defog/llama-3-sqlcoder-8b)

Llama 3 Sqlcoder 8B Parameters and Internals

Model Type 
Text to SQL
Additional Notes 
A capable language model for text to SQL generation for Postgres, Redshift, and Snowflake that is on-par with the most capable generalist frontier models.
Input Output 
Input Format:
<|begin_of_text|><|start_header_id|>user<|end_header_id|> Generate a SQL query to answer this question: `{user_question}` {instructions} DDL statements: {create_table_statements}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
Output Format:
The following SQL query best answers the question `{user_question}`: ```sql ```
Performance Tips:
Set temperature to 0, and do not do sampling.
LLM NameLlama 3 Sqlcoder 8B
Repository ๐Ÿค—https://huggingface.co/defog/llama-3-sqlcoder-8b 
Model Size8b
Required VRAM16.1 GB
Updated2025-05-31
Maintainerdefog
Model Typellama
Instruction-BasedYes
Model Files  5.0 GB: 1-of-4   5.0 GB: 2-of-4   4.9 GB: 3-of-4   1.2 GB: 4-of-4   0.0 GB
Model ArchitectureLlamaForCausalLM
Licensecc-by-sa-4.0
Context Length8192
Model Max Length8192
Transformers Version4.40.0
Tokenizer ClassPreTrainedTokenizerFast
Vocabulary Size128256
Torch Data Typebfloat16

Best Alternatives to Llama 3 Sqlcoder 8B

Best Alternatives
Context / RAM
Downloads
Likes
...otron 8B UltraLong 4M Instruct4192K / 32.1 GB3498107
UltraLong Thinking4192K / 16.1 GB3002
...a 3.1 8B UltraLong 4M Instruct4192K / 32.1 GB17624
...a 3.1 8B UltraLong 2M Instruct2096K / 32.1 GB8759
...otron 8B UltraLong 2M Instruct2096K / 32.1 GB39015
Zero Llama 3.1 8B Beta61048K / 16.1 GB7071
...otron 8B UltraLong 1M Instruct1048K / 32.1 GB180343
...a 3.1 8B UltraLong 1M Instruct1048K / 32.1 GB138729
...dger Nu Llama 3.1 8B UltraLong1048K / 16.2 GB573
....1 1million Ctx Dark Planet 8B1048K / 32.3 GB942
Note: green Score (e.g. "73.2") means that the model is better than defog/llama-3-sqlcoder-8b.

Rank the Llama 3 Sqlcoder 8B Capabilities

๐Ÿ†˜ Have you tried this model? Rate its performance. This feedback would greatly assist ML community in identifying the most suitable model for their needs. Your contribution really does make a difference! ๐ŸŒŸ

Instruction Following and Task Automation  
Factuality and Completeness of Knowledge  
Censorship and Alignment  
Data Analysis and Insight Generation  
Text Generation  
Text Summarization and Feature Extraction  
Code Generation  
Multi-Language Support and Translation  

What open-source LLMs or SLMs are you in search of? 47753 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Release v20241227