Skip to content

[HANDS-ON BUG] Unit 8 part 2, sample-factory 2.1.1 not compatible with pytorch 2.6+ #626

Open
@B-ramB

Description

@B-ramB

Describe the bug

Sample-factory utilizes a pytorch function:
checkpoint_dict = torch.load(latest_checkpoint, map_location=device)

Pytorch 2.6+ requires an additional weights_only=False variable for the function.

Material

How to Fix

pip install the latest sample-factory:
!pip install sample-factory==2.1.3

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