fix checkpoint_path

This commit is contained in:
Kashif Rasul
2024-05-10 12:01:42 +02:00
parent f04d4d637d
commit 4a2b0ae837
+2 -1
View File
@@ -16,6 +16,7 @@
import logging
import multiprocessing
from os import path
import time
from typing import Any, Literal, Sequence
@@ -235,7 +236,7 @@ class TimesFm:
step: step of the checkpoint to load. If `None`, load lastest checkpoint.
"""
# Download the checkpoint from Hugging Face Hub
checkpoint_path = snapshot_download(repo_id)
checkpoint_path = path.join(snapshot_download(repo_id), "checkpoints")
# Initialize the model weights.
self._logging("Constructing model weights.")