Skip to content

More helpful error message if prepare_for_*() not called #1141

Description

@terrykong

Internal report:

If someone is making large changes or writing their own training loop. Users may encounter "illegal memory access" if the model is offloaded and not moved to the GPU before that API call. We should either document or give more helpful error messages when the appropriate prepare step is not called.

Activity

  1. added a commit that references this issue on Aug 23, 2026
    f4cc142
  2. added 2 commits that reference this issue on Sep 21, 2026
    b28a06c
    9540bea
  3. added 2 commits that reference this issue on Oct 1, 2026
    bc3cc08
    3229f55
  4. added a commit that references this issue on Oct 1, 2026
    ed267d7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXRelated to user experiencegood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions