remove transformer flax/torch warning

This commit is contained in:
Awni Hannun 2024-10-26 18:11:14 -07:00
parent 00b67e2f97
commit db7d3c7a76

View File

@ -1,4 +1,10 @@
# Copyright © 2023-2024 Apple Inc. # Copyright © 2023-2024 Apple Inc.
from ._version import __version__ from ._version import __version__
import os
os.environ["TRANSFORMERS_NO_ADVISORY_WARNINGS"] = "1"
from .utils import convert, generate, load, stream_generate from .utils import convert, generate, load, stream_generate