Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

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

DoubleMathewc4901fd8946e
diff --git a/unsloth/models/__init__.py b/unsloth/models/__init__.py
index 3378049014b..89d3fd76309 100644
--- a/unsloth/models/__init__.py
+++ b/unsloth/models/__init__.py
@@ -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
\ No newline at end of file