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

name ‘bare_metal_version‘ is not mamba_ssm安装

目录

解决方法:

测试ok:


mamba_ssm安装报错,windows 安装时,

pip install mamba_ssm

name 'bare_metal_version' is not defined

mamba代码地址:

https://github.com/state-spaces/mamba/tree/main

解决方法:

可以试试这个博客:

Ubuntu和Windows系统之Mamba_ssm安装_mamba-ssm安装-CSDN博客

https://github.com/state-spaces/mamba/tree/main

这个安装成功:

mamba_ssm-2.2.3.post2+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64

linux pip install mamba_ssm也可以。

测试ok:

import torch
from mamba_ssm import Mambabatch, length, dim = 2, 64, 16
x = torch.randn(batch, length, dim).to("cuda")
model = Mamba(# This module uses roughly 3 * expand * d_model^2 parametersd_model=dim, # Model dimension d_modeld_state=16,  # SSM state expansion factord_conv=4,    # Local convolution widthexpand=2,    # Block expansion factor
).to("cuda")
y = model(x)
assert y.shape == x.shapeprint("Success!")


http://www.mrgr.cn/news/93625.html

相关文章:

  • Redis|Springboot集成Redis
  • 完整版已注册,永久授权!
  • 计算机毕业设计SpringBoot+Vue.js车辆管理系统(源码+文档+PPT+讲解)
  • C语言学习笔记-进阶(7)字符串函数3
  • Day04 模拟原生开发app过程 Androidstudio+逍遥模拟器
  • 安装完flash-attn,使用时报错undefined symbol
  • vocabulary is from your listening,other speaking and your thought.
  • Spark数据倾斜深度解析与实战解决方案
  • Java并发编程面试题:内存模型(6题)
  • 一步步解析 HTTPS
  • C/C++蓝桥杯算法真题打卡(Day4)
  • 【愚公系列】《Python网络爬虫从入门到精通》045-Charles的SSL证书的安装
  • 高品质汉化解锁!
  • 【小技巧】百度网盘清除重复文件详细步骤
  • Spring Boot自动装配原理
  • MySQL第一次作业
  • 将wq9001驱动集成到rv1106 SDK
  • DeepSeek开启AI办公新模式,WPS/Office集成DeepSeek-R1本地大模型!
  • Vulnhub-Node
  • dp_走方格(包含dfs分析,记忆化搜索)