cpt core 4
Browse files
scripts/cpt_core_model_4.py
CHANGED
@@ -85,7 +85,7 @@ def unlsoth_generator():
|
|
85 |
break
|
86 |
|
87 |
|
88 |
-
train_dataset = Dataset.from_generator(unlsoth_generator,
|
89 |
|
90 |
|
91 |
from trl import SFTTrainer
|
@@ -101,6 +101,7 @@ trainer = UnslothTrainer(
|
|
101 |
dataset_text_field='text',
|
102 |
max_seq_length=max_seq_length,
|
103 |
dataset_num_proc=32,
|
|
|
104 |
|
105 |
args = UnslothTrainingArguments(
|
106 |
per_device_train_batch_size=8,
|
|
|
85 |
break
|
86 |
|
87 |
|
88 |
+
train_dataset = Dataset.from_generator(unlsoth_generator, streaming=True)
|
89 |
|
90 |
|
91 |
from trl import SFTTrainer
|
|
|
101 |
dataset_text_field='text',
|
102 |
max_seq_length=max_seq_length,
|
103 |
dataset_num_proc=32,
|
104 |
+
max_steps=len(litgpt_streaming_dataset),
|
105 |
|
106 |
args = UnslothTrainingArguments(
|
107 |
per_device_train_batch_size=8,
|