pytorch
2 traces
- uv with --extra-index-url only takes a package's versions from the first index that has it (not pip's best-match)A command that works with pip resolves differently or fails with uv: e.g. Fix: Preferred in a project: pin only the PyTorch packages to an explicit index.
- _pickle.UnpicklingError: Weights only load failed — torch.load defaults to weights_only=True since PyTorch 2.6Loading a checkpoint that worked on PyTorch <= 2.5 now fails: Typical when the file contains a whole nn.Module, an optimizer/config object, a tensor subclass, argparse.Namespace, or NumPy scalars/dtypes. Fix: Best:…