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

Bug: Input device hardcode need to be adjusted #9

Open
JeffWang987 opened this issue Nov 7, 2023 · 0 comments
Open

Bug: Input device hardcode need to be adjusted #9

JeffWang987 opened this issue Nov 7, 2023 · 0 comments

Comments

@JeffWang987
Copy link

Hi, dear OpenAI contributors.

I encountered an issue while running the following code:

self.consistency_dec = ConsistencyDecoder(device=model.device)  # maybe cuda:3
self.consistency_dec(latents / self.vae.config.scaling_factor)

The problem likely arises from a hardcoding that forces the input set to be on cuda:0, which doesn't match the device of consistency_dec.

RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
  File "code/__torch__/dalle_runner_api/model_infra/modules/public_diff_vae.py", line 91, in forward
    **_input = torch.to(features, torch.device("cuda:0"), 6)_**
    features0 = torch.upsample_nearest2d(input, None, [8., 8.])
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