"examples/tuners/vscode:/vscode.git/clone" did not exist on "593a275c923d6a4b0fa0c3c9dea1bb676563b304"
Commit 3d4c4cd6 authored by Herbie Bradley's avatar Herbie Bradley
Browse files

Add evaluator temp code for debug

parent be95d945
......@@ -428,6 +428,7 @@ def evaluate(
torch_device_tensor = lm.accelerator.pad_across_processes(
metrics_tensor.to(torch.float32), pad_index=pad_value
)
gathered_item = lm.accelerator.gather(torch_device_tensor)
if numitem > 0:
gathered_filtered = gathered_item[gathered_item[:, 0] != pad_value]
......
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