LLM EXPLORER 63,407 MODELS INDEXED

Llama 3 Sqlcoder 8B by defog

By defog · 1826 downloads

Llama 3 Sqlcoder 8B is an open-source language model by defog. Features: 8b LLM, VRAM: 16.1GB, Context: 8K, License: cc-by-sa-4.0, Instruction-Based, LLM Explorer Score: 0.15.

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

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
Updated2026-08-06
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 GB1135125
UltraLong Thinking4192K / 16.1 GB23
...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 GB12418
Cthulhu 8B V1.41048K / 16.1 GB1010
...raLong 1M Instruct Abliterated1048K / 32.1 GB49
...a 3.1 8B UltraLong 1M Instruct1048K / 32.1 GB138729
...otron 8B UltraLong 1M Instruct1048K / 32.1 GB70259
Zero Llama 3.1 8B Beta61048K / 16.1 GB71
Note: green Score (e.g. "73.2") means that the model is better than defog/llama-3-sqlcoder-8b.