Instructions to use arvindkaphley/finetune_starcoder2_with_Ruby_Data with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arvindkaphley/finetune_starcoder2_with_Ruby_Data with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoder2-3b") model = PeftModel.from_pretrained(base_model, "arvindkaphley/finetune_starcoder2_with_Ruby_Data") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -38,9 +38,9 @@ Ruby Code Generator is a versatile tool crafted to streamline the interaction be
|
|
| 38 |
|
| 39 |
**1. Load Dataset and Model:**
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
**2. Data Preprocessing:**
|
| 46 |
|
|
|
|
| 38 |
|
| 39 |
**1. Load Dataset and Model:**
|
| 40 |
|
| 41 |
+
- Load the bigcode/the-stack-smol dataset using the Hugging Face Datasets library.
|
| 42 |
+
- Filter for the specified subset (data/ruby) and split (train).
|
| 43 |
+
- Load the bigcode/starcoder2-3b model from the Hugging Face Hub with '4-bit' quantization.
|
| 44 |
|
| 45 |
**2. Data Preprocessing:**
|
| 46 |
|