Skip to content

Outdated device management #32

Open
@pacex

Description

@pacex

Executing the example leads to an error of mismatched devices. The model is initialized on the CPU, while during initialization weights are loaded on CUDA. Pytorch doesn't allow mismatched devices between tensors anymore. Solution: handle everythingo on the cpu until initialization is done, then move the model over to CUDA.

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