TimesFM(Time Series Foundation Model)安装(2)

TimesFM(Time Series Foundation Model)安装简介

readme

TimesFM(Time Series Foundation Model)安装简介(1)-优快云博客icon-default.png?t=O83Ahttps://blog.youkuaiyun.com/chenchihwen/article/details/144359861?spm=1001.2014.3001.5501

在Window 上安装并执行出现报错,

{
    "name": "TypeError",
    "message": "TimesFmBase.__init__() got an unexpected keyword argument 'context_len'",
    "stack": "---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[9], line 8
      3 from jax._src import config
      4 config.update(
      5     \"jax_platforms\", {\"cpu\": \"cpu\", \"gpu\": \"cuda\", \"tpu\": \"\"}[timesfm_backend]
      6 )
----> 8 model = timesfm.TimesFm(
      9     context_len=512,
     10     horizon_len=128,
     11     input_patch_len=32,
     12     output_patch_len=128,
     13     num_layers=20,
     14     model_dims=1280,
     15     backend=timesfm_backend,
     16 )
     17 model.load_from_checkpoint(repo_id=\"google/timesfm-1.0-200m\")

TypeError: TimesFmBase.__init__() got an unexpected keyword argument 'context_len'"
}

决定在 小红帽ubuntu UBUNTU

安装 timesFM

在 ide.cloud.tencent.com 的环境上进行安装 环境 

We recommend at least 16GB RAM to load TimesFM dependencies.

慎选环境,确保>16G

安装Conda  3.10 python

重要步骤 安装  pyenv and poetry

## Installation

### Local installation using poetry

We will be using `pyenv` and `poetry`. In order to set these things up please follow the instructions [here](https://substack.com/home/post/p-148747960?r=28a5lx&utm_campaign=post&utm_medium=web). Note that the PAX (or JAX) version needs to run on python 3.10.x and the PyTorch version can run on >=3.11.x. Therefore make sure you have two versions of python installed:

确认已经完成安装

(base) root@VM-0-170-ubun
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值