Kevin Fink
commited on
Commit
·
599c53e
1
Parent(s):
66722b9
dev
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def fine_tune_model(model_name, dataset_name, hub_id, api_key, num_epochs, batch
|
|
108 |
model_inputs["labels"] = labels["input_ids"]
|
109 |
return model_inputs
|
110 |
|
111 |
-
tokenized_datasets = dataset.map(tokenize_function, batched=True
|
112 |
|
113 |
tokenized_datasets['train'].save_to_disk(f'/data/{hub_id.strip()}_train_dataset')
|
114 |
tokenized_datasets['test'].save_to_disk(f'/data/{hub_id.strip()}_test_dataset')
|
|
|
108 |
model_inputs["labels"] = labels["input_ids"]
|
109 |
return model_inputs
|
110 |
|
111 |
+
tokenized_datasets = dataset.map(tokenize_function, batched=True)
|
112 |
|
113 |
tokenized_datasets['train'].save_to_disk(f'/data/{hub_id.strip()}_train_dataset')
|
114 |
tokenized_datasets['test'].save_to_disk(f'/data/{hub_id.strip()}_test_dataset')
|