LLM EXPLORER 59,420 MODELS INDEXED

Codegen2 1B P by Salesforce

By Salesforce · 696 downloads

Codegen2 1B P is an open-source language model by Salesforce. Features: 1b LLM, VRAM: 4.1GB, License: apache-2.0, Code Generating, LLM Explorer Score: 0.07.

  Arxiv:2305.02309   Codegen   Custom code   Endpoints compatible   Pytorch   Region:us

Codegen2 1B P Parameters and Internals

Model Type 
autoregressive, language model, program synthesis
Use Cases 
Areas:
program synthesis
Applications:
generating executable code
Primary Use Cases:
Generating executables from English prompts, Completing partially-generated code
Supported Languages 
c (supported), c++ (supported), c-sharp (supported), dart (supported), go (supported), java (supported), javascript (supported), kotlin (supported), lua (supported), php (supported), python (supported), ruby (supported), rust (supported), scala (supported), shell (supported), sql (supported), swift (supported), typescript (supported), vue (supported)
Training Details 
Data Sources:
the deduplicated version of the Stack dataset (v1.1)
Methodology:
cross-entropy loss to maximize the likelihood of sequential inputs
Input Output 
Accepted Modalities:
text
LLM NameCodegen2 1B P
Repository πŸ€—https://huggingface.co/Salesforce/codegen2-1B_P 
Model Size1b
Required VRAM4.1 GB
Updated2026-07-24
MaintainerSalesforce
Model Typecodegen
Model Files  4.1 GB
Generates CodeYes
Model ArchitectureCodeGenForCausalLM
Licenseapache-2.0
Model Max Length1024
Transformers Version4.25.1
Tokenizer ClassGPT2Tokenizer
Vocabulary Size51200
Torch Data Typefloat32
Activation Functiongelu_new

Best Alternatives to Codegen2 1B P

Best Alternatives
Context / RAM
Downloads
Likes
Tiny Random Codegen20K / 0 GB3982
Codegen2 1B Security0K / 4.1 GB70
Salesforce Codegen2 1B Ov0K / 4.1 GB60
Note: green Score (e.g. "73.2") means that the model is better than Salesforce/codegen2-1B_P.