-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
checkpoint可以下载到本地来加载吗? #5
Comments
当然可以。从Hugging Face Hub预先下载模型到本地,然后从本地加载是一种常见做法,尤其在你可能需要多次使用该模型或网络不稳定的情况下。以下是大致步骤: 下载模型到本地 使用CLI下载:另外,你也可以使用Hugging Face的命令行工具huggingface-cli来下载模型。首先确保你安装了这个工具,然后执行如下命令: Bash 从本地加载模型 Python 指定本地路径加载模型local_model_path = "./models/google_timesfm-1.0-200m" 或者对于timesfm模型,如果你使用的是特定的加载方式,可能是这样的注意:下面的代码是示意性的,具体加载方法取决于timesfm模型实际的加载逻辑tfm = TimesFm(context_len=context_len, horizon_len=horizon_len, input_patch_len=32, output_patch_len=128, num_layers=20, model_dims=1280, backend='cpu') |
这是ai给的回复。 |
应该改为
|
WARNING:absl:No registered CheckpointArgs found for handler type: <class 'paxml.checkpoints.FlaxCheckpointHandler'> |
这个可以忽略 |
google/timesfm-1.0-200m这个可以提前从huggingface下载到本地,从本地加载吗?
tfm.load_from_checkpoint(repo_id="google/timesfm-1.0-200m") # 这句应该怎么改?
The text was updated successfully, but these errors were encountered: