通义万相2.1部署报错

部署运行你感兴趣的模型镜像

第一种报错(安装pip install flash-attn)

      
      
      torch.__version__  = 2.6.0+cu124
      
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

第二种报错(保存视频报错)

cache_video failed, error: result type Float can't be cast to the desired output type Byte

目前遇到这两种报错比较多,归根结底就是flash-attn没有安装,可行的版本就是下载一个编译后的版本进行pip安装,最好不要自己编译,步骤比较复杂,很容易因为版本不匹配出错!!!

  1. 查看你的torch版本
import torch
print(torch.__version__)
  1. 下载地址:https://github.com/Dao-AILab/flash-attention/releases
  2. 例如我选的就是:flash_attn-2.7.4.post1+cu12torch2.3cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
    其中cu12代表cuda版本大于12,torch2.3代表torch版本大于2.3,cp311代表Python版本为3.11
  3. 在下载好的文件夹下运行
pip install flash_attn-2.7.4.post1+cu12torch2.3cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
  1. 后边再运行,就可以解决大部分问题!

您可能感兴趣的与本文相关的镜像

Wan2.2-I2V-A14B

Wan2.2-I2V-A14B

图生视频
Wan2.2

Wan2.2是由通义万相开源高效文本到视频生成模型,是有​50亿参数的轻量级视频生成模型,专为快速内容创作优化。支持480P视频生成,具备优秀的时序连贯性和运动推理能力

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值