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

performance regression on MPS #117

Open
vikhyat opened this issue Jul 23, 2024 · 1 comment
Open

performance regression on MPS #117

vikhyat opened this issue Jul 23, 2024 · 1 comment

Comments

@vikhyat
Copy link
Owner

vikhyat commented Jul 23, 2024

Appears to be caused by this:

/Users/vikhyat/Coding/moondream/.venv/lib/python3.12/site-packages/transformers/generation/utils.py:1513: UserWarning: The operator 'aten::isin.Tensor_Tensor_out' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/mps/MPSFallback.mm:13.)
  if eos_token_id is not None and torch.isin(elements=eos_token_id, test_elements=pad_token_id).any():
@vikhyat
Copy link
Owner Author

vikhyat commented Jul 23, 2024

Looks like this was fixed here: huggingface/transformers#31695

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

1 participant