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

Add Codeshell Support #291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MeJerry215
Copy link

hugging face model card: WisdomShell/CodeShell-7B-Chat

Model Description: CodeShell is a multi-language code LLM developed by the Knowledge Computing Lab of Peking University. CodeShell has 7 billion parameters and was trained on 500 billion tokens with a context window length of 8194. On authoritative code evaluation benchmarks (HumanEval and MBPP), CodeShell achieves the best performance of its scale. Meanwhile, we provide deployment solutions and IDE plugins that complement CodeShell. Please refer to the CodeShell code repository for more details. This repository is for the CodeShell-7B-Chat model.

Although Codeshell supports 4-bit BitsandBytes quantization, I still want to run Codeshell using AWQ's method. In real-world tests, AWQ has shown higher performance compared to BitsandBytes.

Specifically, in WisdomShell/CodeShell-7B, the model failed to load due to the 'model_type' being configured as 'kclgpt' in the model.config, whereas the actual 'model_type' is 'codeshell'. This was due to an error made by the uploader.

image

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

Successfully merging this pull request may close these issues.

1 participant