Views
No views yet
1from huggingface_hub import hf_hub_download
2import torch
3
4# Download compressed model
5model_path = hf_hub_download(
6 repo_id="HammadQ123/genai-compressed-predictor",
7 filename="model_compressed.pt"
8)
9
10# Load model
11model = torch.load(model_path, map_location='cpu')
12
13# Use for predictions...