Unverified Commit 182afb7d authored by Kaustubh Dhole's avatar Kaustubh Dhole Committed by GitHub
Browse files

Fixed RAG script which was failing on dummy example (#21416)

* do not use prefix="val" for test

The dummy example fails when test_epoch_end is called. The prefix="test" should be dynamic in the log metrics too.

* Create test.source

* Create test.target
parent 7dbee87e
...@@ -408,11 +408,11 @@ class GenerativeQAModule(BaseTransformer): ...@@ -408,11 +408,11 @@ class GenerativeQAModule(BaseTransformer):
self.save_metrics(metrics, prefix) # writes to self.metrics_save_path self.save_metrics(metrics, prefix) # writes to self.metrics_save_path
log_dict = { log_dict = {
"val_avg_em": metrics["val_avg_em"], f"{prefix}_avg_em": metrics[f"{prefix}_avg_em"],
"step_count": metrics["step_count"], "step_count": metrics["step_count"],
"val_avg_loss": metrics["val_avg_loss"], f"{prefix}_avg_loss": metrics[f"{prefix}_avg_loss"],
"val_loss": loss, f"{prefix}_loss": loss,
"val_em": metrics_tensor, f"{prefix}_em": metrics_tensor,
} }
self.log_dict(log_dict) self.log_dict(log_dict)
......
What does Moses' rod turn into ?
Who is Aron?
Where did Moses grow up ?
What happens at the command of the Moses ?
Who manages the Pokémon ?
Who owned the Pokémon trademark ?
What else include in Pokémon franchise ?
How many seasons in Pokémon animme series ?
to a snake
Moses' assistant
Egyptian royal court
let his rod turn in to a snake
The Pokémon Company
Nintendo
world's top-selling toy brand, the top-selling trading card game
over 20 seasons
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment