stable-code-instruct-3b

Maintained By
stabilityai

Stable Code Instruct 3B

PropertyValue
Parameter Count2.7B
Model TypeDecoder-only Language Model
LicenseStabilityAI Community License
PaperStable Code Technical Report
DeveloperStability AI

What is stable-code-instruct-3b?

Stable Code Instruct 3B is a specialized programming language model developed by Stability AI, fine-tuned from the base stable-code-3b model using Direct Preference Optimization (DPO). This model represents a significant advancement in code generation and understanding, demonstrating state-of-the-art performance for its size class across multiple programming languages.

Implementation Details

The model utilizes a transformer decoder architecture and has been trained using a combination of publicly available datasets and synthetic data. It operates with BF16 precision and is optimized for both code generation and conversational tasks related to software engineering.

  • Achieves 32.4% pass@1 on Python tasks
  • Supports multiple programming languages including C++, Java, JavaScript, PHP, and Rust
  • Implements advanced conversation handling for code-related queries
  • Optimized for SQL-related generation and conversation

Core Capabilities

  • Multi-language code generation and understanding
  • General-purpose software engineering conversations
  • SQL query generation and optimization
  • Interactive code assistance and debugging support
  • Performance competitive with larger models in specific tasks

Frequently Asked Questions

Q: What makes this model unique?

The model stands out for its efficient size-to-performance ratio, achieving competitive results against larger models like CodeLlama-7B in various programming tasks. It's particularly notable for scoring 5.8 on MT-Bench coding tasks, surpassing several larger models.

Q: What are the recommended use cases?

The model excels in code generation across multiple programming languages, SQL query development, and technical conversations about software engineering. It's particularly well-suited for developers needing interactive coding assistance and SQL database queries.

🍰 Interesting in building your own agents?
PromptLayer provides Huggingface integration tools to manage and monitor prompts with your whole team. Get started here.