Fix typo bloat16 -> bfloat16 (#1257)
This commit is contained in:
@@ -322,7 +322,7 @@ def validate_config(cfg):
|
|||||||
LOG.warning("BetterTransformers probably doesn't work with PEFT adapters")
|
LOG.warning("BetterTransformers probably doesn't work with PEFT adapters")
|
||||||
if cfg.fp16 or cfg.bf16:
|
if cfg.fp16 or cfg.bf16:
|
||||||
raise ValueError("AMP is not supported with BetterTransformer")
|
raise ValueError("AMP is not supported with BetterTransformer")
|
||||||
if cfg.float16 is not True and cfg.bloat16 is not True:
|
if cfg.float16 is not True and cfg.bfloat16 is not True:
|
||||||
LOG.warning(
|
LOG.warning(
|
||||||
"You should probably set bfloat16 or float16 to true to "
|
"You should probably set bfloat16 or float16 to true to "
|
||||||
"load the model in float16 for BetterTransformers"
|
"load the model in float16 for BetterTransformers"
|
||||||
|
|||||||
Reference in New Issue
Block a user