-
Notifications
You must be signed in to change notification settings - Fork 487
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
BetterTransformer not supporting CodeGen2 #1050
Comments
it seems like the problem is in the modeling for |
The modeling of |
I see. Thanks for the input. I am curious if it will be easy to support the next generation of CodeGen as it supports infilling. Thanks! |
@ganler It should be easy since all the necessary code is already in there. But it also depends on the authors' choice. This discussion gives more details about adding native support huggingface/transformers#22290. |
I got a similar error: optimum-cli export onnx --model=Salesforce/codegen2-1B --trust-remote-code onnx/ returns │ .py:919 in from_pretrained │
│ │
│ 916 │ │ config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_n │
│ 917 │ │ if "auto_map" in config_dict and "AutoConfig" in config_dict["auto_map"]: │
│ 918 │ │ │ if not trust_remote_code: │
│ ❱ 919 │ │ │ │ raise ValueError( │
│ 920 │ │ │ │ │ f"Loading {pretrained_model_name_or_path} requires you to execute th │
│ 921 │ │ │ │ │ " repo on your local machine. Make sure you have read the code there │
│ 922 │ │ │ │ │ " set the option `trust_remote_code=True` to remove this error." │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: Loading Salesforce/codegen2-1B requires you to execute the configuration file in that repo on your local machine. Make sure
you have read the code there to avoid malicious use, then set the option `trust_remote_code=True` to remove this error.``` |
@michaelfeil This command with |
System Info
Who can help?
@fx
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
It should work as this is basically the codegen architecture which is stated to be supported in https://huggingface.co/docs/optimum/v1.8.3/bettertransformer/overview
However, it will fail by throwing an exception saying
None
has no attribute of ...The text was updated successfully, but these errors were encountered: