Error with pretrained model: 'dict' object has no attribute 'to_json_string'
Simply trying to get the SetFit quickstart running:huggingface.coQuickstartWe’re on a journey to advance and democratize artificial intelligence through open source and open science.All is well:image1319×614 65.6 KBuntil I train:image1334×559 36 KBThen boom2024-03-13 16_23_20-Untitled.ipynb (2) - JupyterLab1253×1027 108 KB2024-03-13 16_23_44-Untitled.ipynb (2) - JupyterLab1245×1027 144 KBPerhaps related to this issue:github.com/state-spaces/mambainclude to_json_stringstate-spaces:main←jcrangel:mainopened03:05AM - 01 Feb 24 UTCjcrangel+6-2To 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.I just need a workaround/hack if anyone has one.  Thank you
2024-03-14T12:20:02Z
To rule out any issues I might be having caused by installed libraries, I tried this again with a preconfigured Paperspace Gradient notebook (setfit/notebooks at main · huggingface/setfit · GitHub).I got the exact same error during training howeverimage1839×567 75.5 KB
2024-03-14T13:54:13Z
Hey, works on Collabimage1194×541 32 KB