Skip to content

CUDA error: invalid device ordinal #6

@qxu99gh

Description

@qxu99gh

I got "RuntimeError: CUDA error: invalid device ordinal" at \1Prompt1Story\app.py", line 26, in main_gradio
pipe, _ = utils.load_pipe_from_path(model_path, "cuda:1", torch.float16 if precision == "fp16" else torch.float32, precision).

I tried to set cuda:0 in app.py, but got "RuntimeError: expected mat1 and mat2 to have the same dtype, but got: float != struct c10::Half".

Anyway to fix these errors? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions