Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CodeWeave-LlamaCode
|
| 2 |
+
|
| 3 |
+
A fine-tuned code generation model built on Meta's CodeLlama foundation, specialized for enterprise code development.
|
| 4 |
+
|
| 5 |
+
## Model Description
|
| 6 |
+
|
| 7 |
+
CodeWeave-LlamaCode extends **codellama/CodeLlama-7b-Instruct-hf** with domain-specific fine-tuning for improved code quality and developer productivity.
|
| 8 |
+
|
| 9 |
+
### Base Model
|
| 10 |
+
- **Foundation**: CodeLlama-7b-Instruct-hf from Meta AI
|
| 11 |
+
- **Architecture**: Llama 2-based transformer
|
| 12 |
+
- **Parameters**: 7B
|
| 13 |
+
|
| 14 |
+
### Training Data
|
| 15 |
+
Fine-tuned using CodeWeave-Enterprise dataset containing:
|
| 16 |
+
- 40K enterprise code samples
|
| 17 |
+
- API integration patterns
|
| 18 |
+
- Security-focused code examples
|
| 19 |
+
- Documentation generation tasks
|
| 20 |
+
|
| 21 |
+
## Usage
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 25 |
+
|
| 26 |
+
model = AutoModelForCausalLM.from_pretrained("toolevalxm/CodeWeave-LlamaCode")
|
| 27 |
+
tokenizer = AutoTokenizer.from_pretrained("toolevalxm/CodeWeave-LlamaCode")
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## Evaluation Results
|
| 31 |
+
|
| 32 |
+
| Benchmark | Score |
|
| 33 |
+
|-----------|-------|
|
| 34 |
+
| HumanEval | 70.1% |
|
| 35 |
+
| MBPP | 65.8% |
|
| 36 |
+
|
| 37 |
+
## Acknowledgements
|
| 38 |
+
|
| 39 |
+
We thank Meta AI for developing the CodeLlama series.
|