Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not appear to have a file named config.json #482

Open
5zjk5 opened this issue Mar 27, 2024 · 2 comments
Open

does not appear to have a file named config.json #482

5zjk5 opened this issue Mar 27, 2024 · 2 comments
Labels
question Further information is requested

Comments

@5zjk5
Copy link

5zjk5 commented Mar 27, 2024

    def gpt_model(self, texts=None):
        if texts is None:
            texts = ['今天新情很好', '你找到你最喜欢的工作,我也很高心。']
        m = GptCorrector("../model/chatglm3-6b-csc-chinese-lora")
        res = m.correct_batch(texts)
        print('MacBert4CSC模型', texts, '=>', res)
        return res[0]['target']

使用 gpt 模型报错少了 config 文件,下载链接中也没有 config https://huggingface.co/shibing624/chatglm3-6b-csc-chinese-lora/tree/main

@5zjk5 5zjk5 added the question Further information is requested label Mar 27, 2024
@shibing624
Copy link
Owner

@5zjk5
Copy link
Author

5zjk5 commented Mar 27, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants