From 8c87a9d8a7c2f136053476670a9a83980f142aec Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 28 六月 2024 17:28:09 +0800
Subject: [PATCH] Dev gzf deepspeed (#1858)

---
 funasr/download/download_from_hub.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/funasr/download/download_from_hub.py b/funasr/download/download_from_hub.py
index f1c01bd..df4f33d 100644
--- a/funasr/download/download_from_hub.py
+++ b/funasr/download/download_from_hub.py
@@ -85,8 +85,10 @@
 
         install_requirements(requirements)
     if kwargs.get("trust_remote_code", False):
+        from funasr.utils.dynamic_import import import_module_from_path
 
-        import model
+        model_code = kwargs.get("remote_code", "model")
+        import_module_from_path(model_code)
 
         # from funasr.register import tables
         # tables.print("model")

--
Gitblit v1.9.1