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

全新配置ubuntu18.04深度学习环境

1、下载显卡驱动

1.1、驱动下载

连接:显卡驱动

手动驱动搜索-》查找-》查看-》下载

下载可使用指令

wget https://us.download.nvidia.com/XFree86/Linux-x86_64/535.216.01/NVIDIA-Linux-x86_64-535.216.01.run

2、下载安装cuda12.0

wget https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda_12.0.0_525.60.13_linux.run

sudo sh cuda_12.2.0_535.54.03_linux.run

 3、下载cudnn

链接:cuDNN Archive | NVIDIA Developer

下载cudnn8.80版本的tar文件

解压文件

tar -xvf *.tar.xz

cp cudnn/include/* /usr/local/cuda/include

cp cudnn/lib/* /usr/local/cuda/lib64

4、安装miniconda

wget  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

bash Miniconda3-latest-Linux-x86_64.sh -p /home/miniconda3;-p后面是指定安装路径

5、创建虚拟环境

conda create -n ken python=3.8

6、安装pytorch-gpu

进入到torch,选好指定版本。

 pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121 -i https://pypi.tuna.tsinghua.edu.cn/simple

测试

import torch

torch.cuda.is_available()

 

http://www.lryc.cn/news/490270.html

相关文章:

  • 持续集成与持续部署:CI/CD实现教程
  • 深度学习实验十二 卷积神经网络(3)——基于残差网络实现手写体数字识别实验
  • Linux系统如何排查端口占用
  • Linux常用命令之id命令详解
  • WGCLOUD如何部署在ARM平台
  • K8S + Jenkins 做CICD
  • HarmonyOS4+NEXT星河版入门与项目实战(11)------Button组件
  • 小米note pro一代(leo)线刷、twrp、magisk、TODO: android源码编译
  • 鸿蒙开发Hvigor插件动态生成代码
  • 使用ENSP实现静态路由
  • Java String 字符串常用操作
  • 4.4 MySQL 触发器(Trigger)
  • C语言——break、continue、goto
  • oracle数据恢复总结篇
  • 运维面试题.云计算面试题之四.K8S
  • el-select 和el-tree二次封装
  • C++11:多线程编程
  • 【H2O2|全栈】JS进阶知识(八)ES6(4)
  • OmniDiskSweeper :一款专为 macOS 设计的磁盘使用分析工具
  • 【什么是Redis?】
  • React第十六章(useLayoutEffect)
  • shell 基础知识2 ---条件测试
  • 【线程】Java线程操作
  • Linux内核
  • Sentinel服务保护
  • python代码制作数据集的测试和数据质量检测思路
  • 笔记记录 k8s-install
  • 丹摩征文活动|基于丹摩算力的可图(Kolors)的部署与使用
  • 【Vue】 npm install amap-js-api-loader指南
  • MacOS下的Opencv3.4.16的编译