Add float16 and float32 (#1115)
This commit is contained in:
parent
2ac4d5e2bf
commit
1ac4ccf73c
@ -93,7 +93,9 @@ class EngineArgs:
|
|||||||
'--dtype',
|
'--dtype',
|
||||||
type=str,
|
type=str,
|
||||||
default=EngineArgs.dtype,
|
default=EngineArgs.dtype,
|
||||||
choices=['auto', 'half', 'bfloat16', 'float'],
|
choices=[
|
||||||
|
'auto', 'half', 'float16', 'bfloat16', 'float', 'float32'
|
||||||
|
],
|
||||||
help='data type for model weights and activations. '
|
help='data type for model weights and activations. '
|
||||||
'The "auto" option will use FP16 precision '
|
'The "auto" option will use FP16 precision '
|
||||||
'for FP32 and FP16 models, and BF16 precision '
|
'for FP32 and FP16 models, and BF16 precision '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user