silienty skip falcon h1 import is transformers_version < 4.53.0 (#2912)

This commit is contained in:
DoubleMathew 2025-07-09 16:05:41 -05:00 committed by GitHub
commit c4901fd894

View file

@ -19,7 +19,11 @@ from .qwen2 import FastQwen2Model
from .qwen3 import FastQwen3Model
from .qwen3_moe import FastQwen3MoeModel
from .granite import FastGraniteModel
from .falcon_h1 import FastFalconH1Model
try:
from .falcon_h1 import FastFalconH1Model
except:
# transformers_version < 4.53.0 does not have falcon_h1 so silenty skip it for now
pass
from .dpo import PatchDPOTrainer, PatchKTOTrainer
from ._utils import is_bfloat16_supported, is_vLLM_available, __version__
from .rl import PatchFastRL, vLLMSamplingParams