mtasic85 commited on
Commit
756b2ff
·
1 Parent(s): 2a2899b

cpt core 4

Browse files
Files changed (1) hide show
  1. scripts/cpt_core_model_4.py +2 -1
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, max_steps=len(litgpt_streaming_dataset), streaming=True)
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,