当前位置:网站首页>Deploy the project to GPU and run
Deploy the project to GPU and run
2022-07-28 06:11:00 【Alan and fish】
1. Set up my running environment

2. Log in to my GPU

3. In my GPU Select the corresponding environment
Choose the virtual environment you want to run python
Select the folder you want to synchronize , Two boxes will appear , The front box is your local directory , The latter is the directory you want to upload .
4. see GPU Every piece on the GPU The capacity of
Enter the code
nvidia-smi

If your video memory is small , There may be a mistake
RuntimeError:CURD out of memory
At this time, you need to choose the larger part of the video memory GPU function , Or turn down your own batc_size
# Appoint GPU Run my project
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
The last number 0 Indicates using the 0 block GPU
5. Synchronous data
Method of synchronizing data :
6. When you run someone else's code, you report an error path error


边栏推荐
- 4个角度教你选小程序开发工具?
- The project does not report an error, operates normally, and cannot request services
- What should we pay attention to when making template application of wechat applet?
- Dataset class loads datasets in batches
- 【4】 Redis persistence (RDB and AOF)
- Centos7 installing MySQL
- KubeSphere安装版本问题
- 【5】 Redis master-slave synchronization and redis sentinel (sentinel)
- Service reliability guarantee -watchdog
- 【一】redis简介
猜你喜欢

transformer的理解

微信小程序开发详细步骤是什么?

小程序开发系统有哪些优点?为什么要选择它?

Deep learning (self supervision: Moco V2) -- improved bases with momentum contractual learning

There is a problem with MySQL paging

Flink CDC (MySQL as an example)

Idempotent component

分布式集群架构场景优化解决方案:分布式ID解决方案

小程序开发

深度学习(自监督:SimSiam)——Exploring Simple Siamese Representation Learning
随机推荐
self-attention学习笔记
Dataset类分批加载数据集
The business of digital collections is not so easy to do
How to improve the efficiency of small program development?
Distributed cluster architecture scenario optimization solution: session sharing problem
小程序开发如何提高效率?
Deep learning (incremental learning) - (iccv) striking a balance between stability and plasticity for class incremental learning
面试官:让你设计一套图片加载框架,你会怎么设计?
What should we pay attention to when making template application of wechat applet?
Centos7 installing MySQL
Self attention learning notes
There is a problem with MySQL paging
Marsnft: how do individuals distribute digital collections?
深度学习(增量学习)——(ICCV)Striking a Balance between Stability and Plasticity for Class-Incremental Learning
Briefly understand MVC and three-tier architecture
What are the detailed steps of wechat applet development?
更新包与已安装应用签名不一致
【三】redis特点功能
Applet development
深度学习——Pay Attention to MLPs