Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -123,6 +123,7 @@ training_args = TrainingArguments(
|
|
123 |
#save_total_limit=1,
|
124 |
#fp16=True,
|
125 |
save_strategy = "no",
|
|
|
126 |
load_best_model_at_end=False,
|
127 |
#push_to_hub=True,
|
128 |
)
|
@@ -162,12 +163,12 @@ text = "Was ist Tis?"
|
|
162 |
|
163 |
#outputs = trainer.model(**encoding)
|
164 |
#logits = outputs.logits
|
165 |
-
print(logits.shape)
|
166 |
|
167 |
#greedy_output = model.generate(input_ids, max_length=50)
|
168 |
|
169 |
print("Output:\n" )
|
170 |
-
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
171 |
|
172 |
|
173 |
print("Save to Space")
|
|
|
123 |
#save_total_limit=1,
|
124 |
#fp16=True,
|
125 |
save_strategy = "no",
|
126 |
+
optim="adamw_torch"
|
127 |
load_best_model_at_end=False,
|
128 |
#push_to_hub=True,
|
129 |
)
|
|
|
163 |
|
164 |
#outputs = trainer.model(**encoding)
|
165 |
#logits = outputs.logits
|
166 |
+
#print(logits.shape)
|
167 |
|
168 |
#greedy_output = model.generate(input_ids, max_length=50)
|
169 |
|
170 |
print("Output:\n" )
|
171 |
+
#print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
172 |
|
173 |
|
174 |
print("Save to Space")
|