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

Assert batch_size==1 error when batch_size is higher than 1 #18

Open
dingquanyu opened this issue Feb 3, 2023 · 1 comment
Open

Assert batch_size==1 error when batch_size is higher than 1 #18

dingquanyu opened this issue Feb 3, 2023 · 1 comment

Comments

@dingquanyu
Copy link

Hi,

Thanks for developing this powerful package. When I trained a programme using a batch_size higher than 1, Uni-Core will assert whether the batch_seize is equal to 1 and return AssertionError. Is this normal or it will affect downstream processes?

@guolinke
Copy link
Member

can you provide the settings? If you use the per-sample gradient clipping, the batch size is limited to 1.

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

No branches or pull requests

2 participants