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/.

相关推荐
benchmark_cc18 分钟前
一次获取多只股票实时行情:QuantDash `quotes.get(symbols=[...])` 批量快照
开发语言·python·数据分析·pandas·量化交易·股票数据·quantdash
geovindu22 分钟前
python: PCA
开发语言·后端·python·算法
AI模型调用笔记1 小时前
流式 API 的 usage 为 null?用 cURL 看尾帧,别漏空 choices
python
天诰2 小时前
SA-T-06 轨迹数据工程 脏数据检测
人工智能·python·算法·语言模型·ai编程
Java后端的Ai之路3 小时前
Anthropic 官方文章《Building always-on agents》构建指南
开发语言·网络·python
badhope4 小时前
Agent 说发布成功,文章却 404:我补了 4 张回读收据
后端·python·ai编程
xurileidian4 小时前
第 30 篇 · 边玩边学Python · 猜数字小游戏 把判断循环异常串起来
前端·python·算法
leeshuqing5 小时前
剪刀石头布-Python练习
python·游戏·优化·列表·字典·控制语句
ZhuoAIStage5 小时前
图上有设备,机房条件0命中:剧院舞台音视频提资缺项,AI智能体为何判「需补充」不判「设计错漏」
python·正则表达式·舞台工艺·智能体审图·提资核查
汤姆宝库5 小时前
HNSW:分层图上的贪心检索
开发语言·python