Kevin Fink
commited on
Commit
·
97a2943
1
Parent(s):
2dfd84c
dev
Browse files
app.py
CHANGED
@@ -177,7 +177,7 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
|
|
177 |
dataset['train'] = first_third
|
178 |
del dataset['test']
|
179 |
del dataset['validation']
|
180 |
-
tokenized_first_third = dataset.map(tokenize_function, batched=True)
|
181 |
|
182 |
tokenized_first_third.save_to_disk(f'/data/{hub_id.strip()}_train_dataset')
|
183 |
print('DONE')
|
|
|
177 |
dataset['train'] = first_third
|
178 |
del dataset['test']
|
179 |
del dataset['validation']
|
180 |
+
tokenized_first_third = dataset.map(tokenize_function, batched=True, batch_size=80)
|
181 |
|
182 |
tokenized_first_third.save_to_disk(f'/data/{hub_id.strip()}_train_dataset')
|
183 |
print('DONE')
|