Views
No views yet
torch.export.load() workflows.5.1, which causes torch.export.load() to fail on newer PyTorch versions (e.g., 2.2+), due to a mismatch in how versioning is handled internally.ValueError: invalid literal for int() with base 10: b'5.1'7.3, fully compatible with current and future versions of PyTorch...._bfloat16.pt2: Re-exported IR checkpointtorch.export.load() in PyTorch ≥ 2.3.01from torch.export import load
2from huggingface_hub import hf_hub_download
3
4model_path = hf_hub_download("RyanL22/sapiens-bfloat16", "pose/checkpoints/sapiens_1b_goliath_best_goliath_AP_639_bfloat16.pt2")
5model = load(model_path).module()