When it comes to selecting the best 12-14 billion parameter models for coding tasks, there are several excellent options available. These models strike a balance between capability and resource efficiency, making them suitable for various coding-related applications such as code completion, code generation, bug fixing, and documentation. Here are some of the top models in the 12B to 14B parameter range for coding:
1. StarCoder 15B
- Parameters: 15B (close to the 14B range)
- Developer: BigCode
- License: Open-source (Railway License)
- Specialization: Specifically trained on a vast amount of code from GitHub, making it exceptionally good at code-related tasks.
- Use Cases: Code completion, code generation, code explanation, and more.
- Access: Available on Hugging Face
Why StarCoder?
- Code-Specialised Training: Trained on 80+ programming languages from permissively licensed GitHub repositories.
- Performance: Outperforms general-purpose models like GPT-3.5 on code-related benchmarks.
- Open Source: Freely available for commercial and research use under the Railway License.
2. CodeLlama 13B
- Parameters: 13B
- Developer: Meta AI
- License: Open-source (Llama 2 Community License)
- Specialization: Fine-tuned from Llama 2 for code-related tasks.
- Use Cases: Code completion, code generation, and natural language to code translation.
- Access: Available on Hugging Face
Why CodeLlama?
- Fine-Tuning: Specifically fine-tuned on code, outperforming the base Llama 2 model on coding tasks.
- Variants: Comes in three versions: CodeLlama-13B, CodeLlama-13B-Python (specialised for Python), and CodeLlama-13B-Instruct for instruction following.
- Open Source: Free for both research and commercial uses under the Llama 2 Community License
- Performance: Shows significant improvements over Llama 2 on code-related benchmarks.
3. DeepSeek Coder 13B
- Parameters: 13B
- Developer: DeepSeek
- License: Apache 2.0
- Specialization: Trained on a large-scale, high-quality, and permissively licensed code dataset.
- Use Cases: Code completion, code generation, and multi-turn code dialogue.
- Access: Available on Hugging Face
Why DeepSeek Coder?
- Training Data: Trained on 2 trillion tokens of high-quality permissively licensed code.
- Performance: Achieves state-of-the-art results on several code-related benchmarks, outperforming StarCoder and CodeLlama on some metrics.
- Open Source: Available under the Apache 2.0 license, making it suitable for both research and commercial use.
- Variants: Available in multiple sizes, including 1.3B, 7B and 33B, so you can choose based on your resource constraints
4. WizardCoder 15B
- Parameters: 15B (close to the 14B range)
- Developer: Open Assistant
- License: Apache 2.0
- Specialization: Fine-tuned from WizardLM for coding tasks.
- Use Cases: Code completion, code generation, and code explanation.
- Access: Available on Hugging Face
Why WizardCoder?
- Fine-Tuning: Based on WizardLM, which is known for its instruction-following capabilities, making WizardCoder excellent at understanding and executing coding instructions.
- Performance: Performs well on various code-related benchmarks.
- Open Source: Available under the Apache 2.0 license
5. GPT-3.5 Turbo
- Parameters: ~13B (exact number not disclosed)
- Developer: OpenAI
- License: Proprietary
- Specialization: General-purpose, but performs well on coding tasks.
- Use Cases: Code completion, code generation, bug fixing, and documentation.
- Access: Available via OpenAI API
Why GPT-3.5 Turbo?
- Versatility: Excels in a wide range of tasks, including coding.
- API Access: Easy to integrate into applications via the OpenAI API.
- Cost-Effective: More affordable than larger GPT models, making it suitable for regular use.
- Performance: While not specialised for code, it still performs remarkably well on coding tasks due to its general knowledge and understanding.
Conclusion
For open-source options specialised in coding, StarCoder 15B, CodeLlama 13B, and DeepSeek Coder 13B are the top choices. Each has its strengths, with StarCoder and DeepSeek Coder leading in specialised code benchmarks and CodeLlama offering excellent instruction-following capabilities.
If you prefer a proprietary model and don't mind API costs, GPT-3.5 Turbo remains a strong contender due to its versatility and ease of use.
Choose based on your specific needs, whether it's specialised coding performance, license type, or ease of integration.