Views
No views yet
huggingface_hub
1import torch 2from huggingface_hub import hf_hub_download 3 4cached_path = hf_hub_download( 5 'trl-lib', 6 'aesthetic-model.pth' 7) 8 9state_dict = torch.load(cached_path)