Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
相关的Issue
【910B】【Telechat2-7B】【MindIE-Service封装】Import模型报错,无法识别TelechatForCausalLM
报错log:import MindIEModelRunner from module TelechatForCausalLM failed
Reason(目的、解决的问题等)
无法导入模型,telechat2模型未完成注册
Description
完成telechat2模型注册
Step1:在mindformers/models下创建telechat2文件夹,完成api注册,模型目录结构如下:
telechat2
├── init.py
├── telechat.py # 模型实现
├── telechat_config.py # 模型配置项
└── tokenization_telechat2.py # tokenizer
Step2:其中/mindformers/models/telechat2/init.py import导入相应对外接口,保证装饰器注册方式被执行
Step3:mindformers/models/init.py import telechat2包下所有对外开放的API,以保证所有模块被自动执行注册
启动mindIE服务成功截图:


调用api截图: