thak123 commited on
Commit
b24d99b
1 Parent(s): 86f28e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,8 +53,8 @@ model_link = hf_hub_download(repo_id="FFZG-cleopatra/Croatian-News-Classifier",f
53
  multitask_model.load_state_dict(torch.load(
54
  model_link #"multitask_model_3ep/pytorch_model.bin"
55
  ))
56
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
57
- multitask_model.to(device)
58
  predictions = []
59
  for _, batch in enumerate(features_dict["document"]['test']):
60
  for key, value in batch.items():
@@ -81,7 +81,7 @@ trainer = MultitaskTrainer(
81
  do_eval=True,
82
  # evaluation_strategy ="steps",
83
  # num_train_epochs=epochs,
84
- fp16=True,
85
  # Adjust batch size if this doesn't fit on the Colab GPU
86
  per_device_train_batch_size=batch_size,
87
  per_device_eval_batch_size=batch_size,
 
53
  multitask_model.load_state_dict(torch.load(
54
  model_link #"multitask_model_3ep/pytorch_model.bin"
55
  ))
56
+ # device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
57
+ # multitask_model.to(device)
58
  predictions = []
59
  for _, batch in enumerate(features_dict["document"]['test']):
60
  for key, value in batch.items():
 
81
  do_eval=True,
82
  # evaluation_strategy ="steps",
83
  # num_train_epochs=epochs,
84
+ # fp16=True,
85
  # Adjust batch size if this doesn't fit on the Colab GPU
86
  per_device_train_batch_size=batch_size,
87
  per_device_eval_batch_size=batch_size,