[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
f26948b493
commit
2ee55010d3
2 changed files with 4 additions and 9 deletions
|
|
@ -114,20 +114,14 @@ if os.environ.get("UNSLOTH_ENABLE_LOGGING", "0") != "1":
|
|||
"ignore", message = "invalid escape sequence", category = SyntaxWarning
|
||||
)
|
||||
# PYTORCH_CUDA_ALLOC_CONF is deprecated warning from torch
|
||||
warnings.filterwarnings(
|
||||
"ignore", message = "PYTORCH_CUDA_ALLOC_CONF is deprecated"
|
||||
)
|
||||
warnings.filterwarnings("ignore", message = "PYTORCH_CUDA_ALLOC_CONF is deprecated")
|
||||
# TF32 precision deprecation warning from torch
|
||||
warnings.filterwarnings(
|
||||
"ignore", message = "Please use the new API settings to control TF32"
|
||||
)
|
||||
# Deprecation warnings from torchao
|
||||
warnings.filterwarnings(
|
||||
"ignore", message = "`int4_weight_only` is deprecated"
|
||||
)
|
||||
warnings.filterwarnings(
|
||||
"ignore", message = "`int8_weight_only` is deprecated"
|
||||
)
|
||||
warnings.filterwarnings("ignore", message = "`int4_weight_only` is deprecated")
|
||||
warnings.filterwarnings("ignore", message = "`int8_weight_only` is deprecated")
|
||||
|
||||
|
||||
# Fix up AttributeError: 'MessageFactory' object has no attribute 'GetPrototype'
|
||||
|
|
|
|||
|
|
@ -419,6 +419,7 @@ def _get_fp8_mode_and_check_settings(
|
|||
# Old FBGEMM version - disable and use Triton kernels instead
|
||||
os.environ["UNSLOTH_HAS_FBGEMM"] = "0"
|
||||
from unsloth_zoo.log import logger
|
||||
|
||||
logger.info(
|
||||
f"Unsloth: fbgemm_gpu_genai=={fbgemm_gpu.__version__} is old for FP8 loading. "
|
||||
f"Using Triton kernels instead."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue