Views
No views yet
[user_id, item_1, item_2, ..., item_n]scores: [num_items]1import torch
2
3model = torch.load(
4 "https://huggingface.co/Pcpp/music-transformer/resolve/main/best_model_shared_gated_pro.pth",
5 map_location="cpu"
6)1from huggingface_hub import hf_hub_download
2import torch
3
4path = hf_hub_download(
5 repo_id="Pcpp/music-transformer",
6 filename="best_model_shared_gated_pro.pth"
7)
8
9model = torch.load(path)