Skip to content

Conversation

Jintao-Huang
Copy link
Collaborator

  1. add multi round chat dataset: agent dataset
  2. update agent sh
  3. update revision of model

trainer_args._frozen = False # Compatible with transformers==4.32.0
trainer_args.ddp_find_unused_parameters = False
trainer_args.ddp_broadcast_buffers = False
trainer_args._frozen = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么两次分别置为False和True呢

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为transformers 4.32.0默认在初始化training_args后, 不能再修改, 需要设置_frozen为False才能修改

def download_dataset(model_id: str,
files: List[str],
force_download: bool = False) -> str:
url = f'http://www.modelscope.cn/api/v1/datasets/{model_id}/repo?Revision=master&FilePath={{fpath}}'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个方法的意义是?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

支持 firefly dataset的使用

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.

2 participants