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

remove append_dims from to_d to allow sigmas on cpu #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drhead
Copy link

@drhead drhead commented May 19, 2024

This would close #108.

I changed the one operation that actually relies on sigmas being on the same device as the model samples and changed it so that it is a simple scalar multiplication. As far as I know, this should work as long as we can assume that sigmas passed into the model is a 1d tensor. Please let me know if this is a bad assumption! The only way I could see it failing is if people regularly are passing in batched samples with differing per-batch-item sigmas.

With this, the samplers will allow CPU tensors as the input for sigmas, and won't block dispatch anymore.

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.

Blocking ops in several samplers, usually from sigmas being a GPU tensor
1 participant