Skip to content

Commit

Permalink
add autocast option
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Jun 7, 2024
1 parent d673c79 commit f988a7f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/anemoi/inference/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@


AUTOCAST = {
"16": torch.float16,
"16-mixed": torch.float16,
"16": torch.float16,
"32": torch.float32,
"b16": torch.bfloat16,
"b16-mixed": torch.bfloat16,
"b16": torch.bfloat16,
"bf16-mixed": torch.bfloat16,
"bf16": torch.bfloat16,
"bfloat16": torch.bfloat16,
"f16": torch.float16,
"f32": torch.float32,
"float16": torch.float16,
"float32": torch.float32,
}
Expand Down

0 comments on commit f988a7f

Please sign in to comment.