Instructions to use mlabonne/codellama-2-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use mlabonne/codellama-2-7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "mlabonne/codellama-2-7b") - Notebooks
- Google Colab
- Kaggle
Librarian Bot: Add base_model information to model
#3
by librarian-bot - opened
README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
| 4 |
-
- mlabonne/CodeLlama-2-20k
|
| 5 |
tags:
|
| 6 |
- code
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# 🦙💻 CodeLlama
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
library_name: peft
|
|
|
|
| 4 |
tags:
|
| 5 |
- code
|
| 6 |
+
datasets:
|
| 7 |
+
- mlabonne/CodeLlama-2-20k
|
| 8 |
+
base_model: meta-llama/Llama-2-7b-hf
|
| 9 |
---
|
| 10 |
|
| 11 |
# 🦙💻 CodeLlama
|