llm-foundry
llm-foundry copied to clipboard
Fix autocast dtype
Minor bug, we can't pass devices like torch.device('cuda:0') into the autocast funciton. Instead you need to pass torch.device('cuda:0').type which is 'cuda'.
Tested on an interactive instance.