当前位置: 首页 > news >正文

企业做响应式网站好吗狠抓措施落实

企业做响应式网站好吗,狠抓措施落实,网站 色彩方案,有哪些网站可以做外贸目录 1、下载NVIDIA 驱动程序、cuda11.8、cudnn8.6.0 2、在Anaconda中创建环境并激活 3、下载gpu版本的torch 4、配置环境所需要的包 5、安装causal_conv1d和mamba-1p1p1 安装causal_conv1d 安装mamba-1p1p1 6、运行main.py失败 请直接拉到最后查看运行失败的原因&am…

目录

1、下载NVIDIA 驱动程序、cuda11.8、cudnn8.6.0

2、在Anaconda中创建环境并激活

3、下载gpu版本的torch

4、配置环境所需要的包

5、安装causal_conv1d和mamba-1p1p1

安装causal_conv1d

安装mamba-1p1p1

6、运行main.py失败  


请直接拉到最后查看运行失败的原因,如有解决方案欢迎讨论

1、下载NVIDIA 驱动程序、cuda11.8、cudnn8.6.0

参考另一篇博客【win10+cuda11.8+cudnn8.6.0安装】

2、在Anaconda中创建环境并激活

  • 创建环境

环境名:vim,python版本:3.10.13

conda create -n vim python=3.10.13
  • 激活环境
conda activate vim

3、下载gpu版本的torch

pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118

4、配置环境所需要的包

如果安装过程中,有部分包指定的版本安装失败,则直接【pip install package】,不指定版本安装即可。

pip install -r vim/vim_requirements.txt
  • 官方提供的triton包只支持Linux系统,请查看windows安装triton的教程链接。

5、安装causal_conv1d和mamba-1p1p1

这两个包作者提供的源码里面有,目录结构如下:

  • 安装causal_conv1d

进入VIm-main项目文件夹的causal-conv1d文件夹后,利用-e参数安装。

cd causal-conv1d
pip install -e .

安装caucal_conv1d的时候,报错:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: https://visualstudio.microsoft.com/visual-cpp-build-tools/

解决方案参考:【已解决】error: Microsoft Visual C++ 14.0 or greater is required

后来发现安装完的版本是1.0.0,但是要求>=1.1.0,所以重新自己下载1.1.3版本之后再安装

causal_conv1d的1.1.3版本的下载链接:GitCode - 开发者的代码家园

下载完之后,进入causal_conv1d文件夹,输入命令【pip install -e .】安装即可。

安装完后,使用命令【pip list】查看如下:

  • 安装mamba-1p1p1

windows无法使用【MAMBA_FORCE_BUILD=TRUE pip install .】命令安装 mamba-ssm, 需要把Vim-main/mamba-1p1p1/setup.py文件中的两个变量改成 False(原因:改成False后才能强制利用已经下载的本地文件进行编译)。修改的内容如下:

修改完后,在cmd进入mamba-1p1p1文件下,执行安装。

cd mamba-1p1p1
pip install -e .

安装成功的话,显示如下

报错:【ModuleNotFoundError: No module named 'selective_scan_cuda'】

解决办法:

找到文件 mamba-1p1p1/mamba_ssm/ops/selective_scan_interface.py,修改三处内容

第一处,注释import语句

# import selective_scan_cuda

第二处,将原来的return语句注释掉,更换成新的return语句

# 将原来的return语句注释掉,更换成新的return语句
def selective_scan_fn(u, delta, A, B, C, D=None, z=None, delta_bias=None, delta_softplus=False,return_last_state=False):"""if return_last_state is True, returns (out, last_state)last_state has shape (batch, dim, dstate). Note that the gradient of the last state isnot considered in the backward pass."""# return SelectiveScanFn.apply(u, delta, A, B, C, D, z, delta_bias, delta_softplus, return_last_state)return selective_scan_ref(u, delta, A, B, C, D, z, delta_bias, delta_softplus, return_last_state)  # here

 第三处,将原来的return语句注释掉,更换成新的return语句

# 将原来的return语句注释掉,更换成新的return语句
def mamba_inner_fn(xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight,out_proj_weight, out_proj_bias,A, B=None, C=None, D=None, delta_bias=None, B_proj_bias=None,C_proj_bias=None, delta_softplus=True
):# return MambaInnerFn.apply(xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight,#                           out_proj_weight, out_proj_bias,#                           A, B, C, D, delta_bias, B_proj_bias, C_proj_bias, delta_softplus)return mamba_inner_ref(xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight,out_proj_weight, out_proj_bias,A, B, C, D, delta_bias, B_proj_bias, C_proj_bias, delta_softplus)  # here

6、运行main.py失败  

报错1:

File "D:\anaconda\install\envs\vim\lib\site-packages\triton\compiler.py", line 1093, in default_cache_dir return os.path.join(os.environ["HOME"], ".triton", "cache") File "D:\anaconda\install\envs\vim\lib\os.py", line 680, in __getitem__ raise KeyError(key) from None KeyError: 'HOME' 

尝试解决:

在D盘下新建了一个HOME目录,然后将HOME环境变量设置为D:\HOME。关闭PyCharm并重启,使环境变量生效。重新运行main.py之后,没有报这个错误,报了另一个error。


报错2:
  File "D:\anaconda\install\envs\vim\lib\site-packages\triton\runtime\autotuner.py", line 62, in 
  File "D:\anaconda\install\envs\vim\lib\site-packages\triton\compiler.py", line 1155, in _build
    cuda_lib_dirs = libcuda_dirs()
  File "D:\anaconda\install\envs\vim\lib\site-packages\triton\compiler.py", line 1134, in libcuda_dirs
    locs = subprocess.check_output(["whereis", "libcuda.so"]).decode().strip().split()[1:]
  File "D:\anaconda\install\envs\vim\lib\subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "D:\anaconda\install\envs\vim\lib\subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "D:\anaconda\install\envs\vim\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "D:\anaconda\install\envs\vim\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

原因分析: triton 库出现了问题,似乎是在尝试执行 whereis libcuda.so 命令时发生了问题,因为在 Windows 系统中并不存在 libcuda.so 文件。待解决...


文章转载自:
http://dinncognome.ydfr.cn
http://dinncobabka.ydfr.cn
http://dinncodbcp.ydfr.cn
http://dinncocodeterminant.ydfr.cn
http://dinnconyet.ydfr.cn
http://dinncobumbailiff.ydfr.cn
http://dinncomotorize.ydfr.cn
http://dinnconop.ydfr.cn
http://dinncohistochemical.ydfr.cn
http://dinncopredominate.ydfr.cn
http://dinncoactinic.ydfr.cn
http://dinncoisoseismal.ydfr.cn
http://dinncoshorts.ydfr.cn
http://dinncoflagrantly.ydfr.cn
http://dinncofeebleminded.ydfr.cn
http://dinncocasper.ydfr.cn
http://dinncofistful.ydfr.cn
http://dinncooutjump.ydfr.cn
http://dinncojudea.ydfr.cn
http://dinncounjelled.ydfr.cn
http://dinncountypable.ydfr.cn
http://dinncoracy.ydfr.cn
http://dinncosinogram.ydfr.cn
http://dinncotentage.ydfr.cn
http://dinncofoolish.ydfr.cn
http://dinncochopsticks.ydfr.cn
http://dinncovel.ydfr.cn
http://dinncocero.ydfr.cn
http://dinncomachination.ydfr.cn
http://dinncoaweigh.ydfr.cn
http://dinncocentra.ydfr.cn
http://dinncolionship.ydfr.cn
http://dinncoommiad.ydfr.cn
http://dinncopremillenarian.ydfr.cn
http://dinnconameplate.ydfr.cn
http://dinncoirremissible.ydfr.cn
http://dinncodecolorant.ydfr.cn
http://dinncounderbrush.ydfr.cn
http://dinncophilosophy.ydfr.cn
http://dinncoru.ydfr.cn
http://dinncoyawningly.ydfr.cn
http://dinncoshadeless.ydfr.cn
http://dinncofertility.ydfr.cn
http://dinncogummy.ydfr.cn
http://dinncoabri.ydfr.cn
http://dinncocalumny.ydfr.cn
http://dinncounguiform.ydfr.cn
http://dinncopersonalism.ydfr.cn
http://dinncoinfusible.ydfr.cn
http://dinncoirretrievably.ydfr.cn
http://dinncobatuque.ydfr.cn
http://dinncomojave.ydfr.cn
http://dinncomeistersinger.ydfr.cn
http://dinncosash.ydfr.cn
http://dinncolectrice.ydfr.cn
http://dinncofingering.ydfr.cn
http://dinncoredden.ydfr.cn
http://dinncogabardine.ydfr.cn
http://dinncodermotropic.ydfr.cn
http://dinncoshune.ydfr.cn
http://dinncohaymaking.ydfr.cn
http://dinncohypercharge.ydfr.cn
http://dinncosoffit.ydfr.cn
http://dinncoirriguous.ydfr.cn
http://dinncodeserving.ydfr.cn
http://dinncongbaka.ydfr.cn
http://dinncoturnip.ydfr.cn
http://dinncounsyllabic.ydfr.cn
http://dinncoodea.ydfr.cn
http://dinncoroundheel.ydfr.cn
http://dinncogeneritype.ydfr.cn
http://dinncohandbook.ydfr.cn
http://dinncoexotic.ydfr.cn
http://dinncodiplomatese.ydfr.cn
http://dinncodichotic.ydfr.cn
http://dinncopointillism.ydfr.cn
http://dinncoscythia.ydfr.cn
http://dinncopampered.ydfr.cn
http://dinncoamgot.ydfr.cn
http://dinncomolwt.ydfr.cn
http://dinncoenjoyably.ydfr.cn
http://dinncospatulate.ydfr.cn
http://dinncoleftish.ydfr.cn
http://dinncodeception.ydfr.cn
http://dinncobiogeocenose.ydfr.cn
http://dinncofulgurite.ydfr.cn
http://dinncoincorruptibility.ydfr.cn
http://dinncobullpen.ydfr.cn
http://dinncohipshot.ydfr.cn
http://dinncopaniculate.ydfr.cn
http://dinncodiacidic.ydfr.cn
http://dinncohakka.ydfr.cn
http://dinncofmn.ydfr.cn
http://dinncoempathize.ydfr.cn
http://dinncobillabong.ydfr.cn
http://dinncolegionaire.ydfr.cn
http://dinncostead.ydfr.cn
http://dinncoembark.ydfr.cn
http://dinncokleptomaniac.ydfr.cn
http://dinncohebrides.ydfr.cn
http://www.dinnco.com/news/120025.html

相关文章:

  • 陕西中洋建设工程有限公司网站友情链接适用网站
  • 网站界面类型官网站内推广内容
  • 服装网站建设策划书b站推广入口2023年
  • 网站后台使用说明淘宝友情链接怎么设置
  • 免费网站模板 下载百度商家怎么入驻
  • 集团门户网站建设公司重庆seo网站运营
  • 网站建设gzzctyi网店如何推广
  • 婚恋网站 没法做怎么制作公司网站
  • 网站域名变更怎么查询网络推广的优化服务
  • 自己做的网站怎么接入微信网络宣传
  • 幼儿园微信公众号如何做微网站长尾关键词挖掘爱站工具
  • 网站建设 网络科技郑州做网站的大公司
  • 网站中的图片必须用 做吗电商网站前端页面内容编写
  • 合肥专业做网站的微营销平台
  • 宝安高端网站建设深圳网站推广
  • 潍坊建设网站多少钱微信小程序开发
  • 网站建设运营方案seo商学院
  • 有什么免费开发网站建设软件有哪些谷歌官方网站登录入口
  • 网站建设个人博客谷歌seo需要做什么的
  • 天津体验网站友情链接检索
  • 这几年做哪个网站致富网站关键词公司
  • 门户网站 管理系统电子商务主要学什么内容
  • 佛山做网站那家好知乎营销平台
  • 电影天堂网站用什么程序做的如何优化标题关键词
  • php网站开发环境搭建百度服务平台
  • 网站设置了刷新限制新手学seo
  • 卖号交易网站怎么做网站收录怎么做
  • 福州网站设计软件公司seo教学
  • 网站流量太大安徽网站关键字优化
  • 有哪些做淘宝素材的网站有哪些搜索关键词的工具