Update synthetic.py
This commit is contained in:
parent
6216f946c5
commit
04ec7af3e8
1 changed files with 1 additions and 0 deletions
|
|
@ -84,6 +84,7 @@ class SyntheticDataKit:
|
|||
if dtype_val == torch.float16: dtype_val = "float16"
|
||||
elif dtype_val == torch.bfloat16: dtype_val = "bfloat16"
|
||||
elif dtype_val == torch.float32: dtype_val = "float32"
|
||||
engine_args["dtype"] = dtype_val
|
||||
# Convert torch.bfloat16, torch.float16, etc. to valid CLI string
|
||||
if hasattr(dtype_val, "name"):
|
||||
engine_args["dtype"] = dtype_val.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue