You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# How to save your 🤗 Transformer?
accelerator.wait_for_everyone()
unwrapped_model = accelerator.unwrap_model(model)
unwrapped_model.save_pretrained(save_dir, save_function=accelerator.save, state_dict=accelerator.get_state_dict(model))
roformer-v1 没有这个问题;roformer-v2 有这个问题,删除了多次
The text was updated successfully, but these errors were encountered:
XiaoqingNLP
changed the title
roformer-v2结合huggingface的库accelerate 使用时会导致保存的模型被多次删除
roformer-v2结合huggingface的库accelerate 使用时会导致保存的模型被多次删除;导致部分模型没有被保存
Jul 28, 2022
accelerate的保存模型方法:
roformer-v1 没有这个问题;roformer-v2 有这个问题,删除了多次
The text was updated successfully, but these errors were encountered: