LLM EXPLORER 59,358 MODELS INDEXED

Nsql 2B by NumbersStation

By NumbersStation · 15 downloads

Nsql 2B is an open-source language model by NumbersStation. Features: 2b LLM, VRAM: 11.3GB, License: bsd-3-clause, Code Generating, LLM Explorer Score: 0.08.

  Codegen   Endpoints compatible   Pytorch   Region:us   Safetensors   Sharded   Tensorflow
Model Card on HF πŸ€—: https://huggingface.co/NumbersStation/nsql-2B 

Nsql 2B Parameters and Internals

Model Type 
autoregressive, text-to-SQL generation
Use Cases 
Areas:
SQL generation tasks
Applications:
Database querying, Natural language to SQL conversion
Primary Use Cases:
Text-to-SQL generation, Database query formation
Considerations:
The model should be used with the defined prompt format for optimal results.
Additional Notes 
Model is fine-tuned for SQL generation with predefined prompt format and designed to output SELECT queries.
Training Details 
Data Sources:
The Stack, 20 public sources for text-to-SQL pairs
Data Volume:
1M training samples from The Stack
Methodology:
Cross-entropy loss for SQL generation tasks
Hardware Used:
80GB A100s
Model Architecture:
Autoregressive model
LLM NameNsql 2B
Repository πŸ€—https://huggingface.co/NumbersStation/nsql-2B 
Model Size2b
Required VRAM11.3 GB
Updated2026-07-27
MaintainerNumbersStation
Model Typecodegen
Model Files  10.1 GB: 1-of-2   1.2 GB: 2-of-2   10.1 GB: 1-of-2   1.2 GB: 2-of-2
Generates CodeYes
Model ArchitectureCodeGenForCausalLM
Licensebsd-3-clause
Model Max Length2048
Transformers Version4.28.1
Tokenizer ClassGPT2Tokenizer
Vocabulary Size51200
Torch Data Typefloat32
Activation Functiongelu_new

Best Alternatives to Nsql 2B

Best Alternatives
Context / RAM
Downloads
Likes
Archgen 2B V10K / 5.6 GB70
...Python 18K Alpaca Full Dataset0K / 5.6 GB60
Salesforce Codegen 2B Multi Ov0K / 11.1 GB70
Instruct Codegen 2B Multi0K / 11.3 GB101
Diff Codegen 2B V20K / 5.7 GB266
...en 2B Mono Instruct Py Revised0K / 11.3 GB71
Codegen 2B Mono Xlcost0K / 5.7 GB61
Codegen 2B Multi Xlcost0K / 5.7 GB1121
Fine Tuned Codegen 2B Verilog0K / 11.3 GB1068
Codegen 2B Mono0K / 5.7 GB763221
Note: green Score (e.g. "73.2") means that the model is better than NumbersStation/nsql-2B.