Build CUDA from Source

This is a note for Blog-1 and Blog-2:

复制代码
git clone git@github.com:TimDettmers/bitsandbytes.git
cd bitsandbytes
export CUDA_HOME=/usr/local/cuda-12.1 && make cuda12x CUDA_VERSION=121
export CUDA_HOME=/usr/local/cuda-12.1 && make cuda12x_nomatmul CUDA_VERSION=121
CUDA_VERSION=121 && python setup.py install

This will generate 2 files one with approximately 7mb and other with 14mb

复制代码
libbitsandbytes_cuda121.so
libbitsandbytes_cuda121_nocublaslt.so

Copy those files topython3.9/site-packages/bitsandbytes/.

相关推荐
Betelgeuse7617 分钟前
Django 项目远程服务器部署教程:从开发到生产
python·django·vue
2501_9181269141 分钟前
学习python所有用来写ai的语句
人工智能·python·学习
m0_518019481 小时前
使用Kivy开发跨平台的移动应用
jvm·数据库·python
Sammyyyyy1 小时前
9个Python库把一个月的AI开发周期缩短到了3天
人工智能·后端·python·servbay
tryCbest1 小时前
PyCharm有利于开发的常用设置
python·pycharm
hnxaoli1 小时前
统信小程序(十一)快捷地址栏
linux·python·小程序
weixin_421922691 小时前
机器学习模型部署:将模型转化为Web API
jvm·数据库·python
twc8291 小时前
Query 改写 大模型测试的数据倍增器
开发语言·人工智能·python·rag·大模型测试
Fortune791 小时前
Python迭代器(Iterator)揭秘:for循环背后的故事
jvm·数据库·python