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

StableCode Fails During Inference (stabilityai/stablecode-completion-alpha-3b-4k) #13

Closed
JustinMeans opened this issue Aug 9, 2023 · 2 comments

Comments

@JustinMeans
Copy link

JustinMeans commented Aug 9, 2023

stabilityai/stablecode-completion-alpha-3b-4k fails at the assert here but converts successfully using:
python -m exporters.coreml --model=stabilityai/stablecode-completion-alpha-3b-4k exported/

Screenshot 2023-08-09 at 3 44 43 AM

It's a gpt_neox model with GPTNeoXForCausalLM architecture.

When removing the assert and re-running, the SwiftChat app is able to load and run the model, but generates gibberish.

Screenshot 2023-08-09 at 3 46 51 AM

I have the converted model currently uploading to HF but it's going to take a bit to complete.

@pcuenca
Copy link
Member

pcuenca commented Aug 9, 2023

Thanks for the report, @JustinMeans!

The default task in exporters is feature-extraction: https://github.com/huggingface/exporters/blob/80d37d8004e31a9cbd00ce4bc5ef261c175f62ce/src/exporters/coreml/__main__.py#L83

Could you please try to convert adding --feature text-generation to your command line?

(We should probably use different defaults in exporters based on the model type).

@pcuenca
Copy link
Member

pcuenca commented Aug 23, 2023

Closing for now, feel free to reopen if appropriate!

@pcuenca pcuenca closed this as completed Aug 23, 2023
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

No branches or pull requests

2 participants