Fix duplicated imports in hf_transformers_utils.py (#1141)

This commit is contained in:
Lianmin Zheng
2024-08-17 18:03:00 -07:00
committed by GitHub
parent 57d0bd91ec
commit 3c1f5a9220
3 changed files with 9 additions and 14 deletions

View File

@@ -44,11 +44,6 @@ except ImportError:
from sglang.srt.utils import is_multimodal_model
_CONFIG_REGISTRY: Dict[str, Type[PretrainedConfig]] = {
ChatGLMConfig.model_type: ChatGLMConfig,
DbrxConfig.model_type: DbrxConfig,
}
def download_from_hf(model_path: str):
if os.path.exists(model_path):