Fix AssertionError on macOS - need to check CUDA availability for bf16
This commit is contained in:
1 parent
4eb7a96b07
commit
1eaceae193
3 files changed
+3
-3
No files matched your search
@@ -15,7 +15,7 @@ bias = False
|
||||
real_data = True
|
||||
seed = 1337
|
||||
device = 'cuda' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1', etc.
|
||||
dtype = 'bfloat16' if torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'
|
||||
dtype = 'bfloat16' if torch.cuda.is_available() and torch.cuda.is_bf16_supported() else 'float16' # 'float32' or 'bfloat16' or 'float16'
|
||||
compile = True # use PyTorch 2.0 to compile the model to be faster
|
||||
profile = False # use pytorch profiler, or just simple benchmarking?
|
||||
exec(open('configurator.py').read()) # overrides from command line or config file
|
||||
|
||||
Reference in new issue
Block a user