Codegen2 1B P by Salesforce

 »  All LLMs  »  Salesforce  »  Codegen2 1B P   URL Share it on

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.08.

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

Codegen2 1B P Benchmarks

nn.n% — How the model compares to the reference models: Anthropic Sonnet 3.5 ("so35"), GPT-4o ("gpt4o") or GPT-4 ("gpt4").

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-05-14
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 GB1322
Codegen2 1B Security0K / 4.1 GB50
Salesforce Codegen2 1B Ov0K / 4.1 GB110
Note: green Score (e.g. "73.2") means that the model is better than Salesforce/codegen2-1B_P.

Rank the Codegen2 1B P 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? 53972 in total.

Our Social Media →  
Original data from HuggingFace, OpenCompass and various public git repos.
Check out Ag3ntum — our secure, self-hosted AI agent for server management.
Release v20260328a