# 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 - [Google Colab](https://colab.research.google.com/github/huggingface/deep-rl-class/blob/main/notebooks/unit8/unit8_part2.ipynb#scrollTo=alxUt7Au-O8e) # How to Fix pip install the latest sample-factory: `!pip install sample-factory==2.1.3`