We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
examples
from trl import AutoModelForCausalLMWithValueHead trl_model = AutoModelForCausalLMWithValueHead.from_pretrained("trl-internal-testing/tiny-DbrxForCausalLM") trl_model.save_pretrained("tmp_dir") AutoModelForCausalLMWithValueHead.transformers_parent_class.from_pretrained("tmp_dir")
outputs:
Traceback (most recent call last): File "/fsx/qgallouedec/trl/t.py", line 5, in <module> AutoModelForCausalLMWithValueHead.transformers_parent_class.from_pretrained("tmp_dir") File "/fsx/qgallouedec/transformers/src/transformers/models/auto/auto_factory.py", line 526, in from_pretrained config, kwargs = AutoConfig.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/fsx/qgallouedec/transformers/src/transformers/models/auto/configuration_auto.py", line 1085, in from_pretrained return config_class.from_dict(config_dict, **unused_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/fsx/qgallouedec/transformers/src/transformers/configuration_utils.py", line 740, in from_dict config = cls(**config_dict) ^^^^^^^^^^^^^^^^^^ File "/fsx/qgallouedec/transformers/src/transformers/models/dbrx/configuration_dbrx.py", line 202, in __init__ self.attn_config = DbrxAttentionConfig(**attn_config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/fsx/qgallouedec/transformers/src/transformers/models/dbrx/configuration_dbrx.py", line 64, in __init__ raise ValueError(f"Found unknown {kwargs=}") ValueError: Found unknown kwargs={'torch_dtype': 'float32'}
This error occurs after huggingface/transformers#34873
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
System Info
Information
Tasks
examples
folderReproduction
outputs:
Expected behavior
This error occurs after huggingface/transformers#34873
Checklist
The text was updated successfully, but these errors were encountered: