[Model] Handle trust_remote_code for transformers backend (#32194)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-01-13 09:30:12 +08:00
committed by GitHub
parent a307ac0734
commit 78d13ea9de
2 changed files with 14 additions and 1 deletions

View File

@@ -887,6 +887,7 @@ class _ModelRegistry:
module,
model_config.model,
revision=model_config.revision,
trust_remote_code=model_config.trust_remote_code,
warn_on_fail=False,
)
@@ -899,6 +900,7 @@ class _ModelRegistry:
module,
model_config.model,
revision=model_config.revision,
trust_remote_code=model_config.trust_remote_code,
warn_on_fail=True,
)
if model_module is not None: