silienty skip falcon h1 import is transformers_version < 4.53.0 (#2912)
This commit is contained in:
parent
7dde992481
commit
c4901fd894
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue