Skip to content

[Bug Report] torch 2.8.0 makes model generation go haywire #1062

@hijohnnylin

Description

@hijohnnylin

Describe the bug

  • model.generate works fine on torch 2.7.1 but in 2.8.0 (on macos at least), it goes haywire

  • workaround is to force version <=2.8.0 on macos

  • macos 15.6.1

  • python 3.11.8

I'll dig into this more later (eg test if it affects linux too) but just flagging this for now so it doesn't get lost.

System Info

  • I have checked that there is no similar issue in the repo (required)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions