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

include to_json_string #151

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

include to_json_string #151

wants to merge 1 commit into from

Conversation

jcrangel
Copy link

@jcrangel jcrangel commented Feb 1, 2024

To fix :

    trainer.train()
  File "/home/julio/anaconda3/envs/mamba/lib/python3.10/site-packages/transformers/trainer.py", line 1555, in train
    return inner_training_loop(
  File "/home/julio/anaconda3/envs/mamba/lib/python3.10/site-packages/transformers/trainer.py", line 1789, in _inner_training_loop
    self.control = self.callback_handler.on_train_begin(args, self.state, self.control)
  File "/home/julio/anaconda3/envs/mamba/lib/python3.10/site-packages/transformers/trainer_callback.py", line 363, in on_train_begin
    return self.call_event("on_train_begin", args, state, control)
  File "/home/julio/anaconda3/envs/mamba/lib/python3.10/site-packages/transformers/trainer_callback.py", line 407, in call_event
    result = getattr(callback, event)(
  File "/home/julio/anaconda3/envs/mamba/lib/python3.10/site-packages/transformers/integrations/integration_utils.py", line 631, in on_train_begin
    model_config_json = model.config.to_json_string()
AttributeError: 'MambaConfig' object has no attribute 'to_json_string'

when training with hugging face and saving the model.

@albertfgu albertfgu force-pushed the main branch 2 times, most recently from 6d45666 to 41d30ce Compare June 3, 2024 12:56
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