
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
PyTorch Lightning安装
使用conda create -n lgt python=3.11创建虚拟环境lgt后。如果先install torch,在install lightning,很大可能会报错。直接使用python -m pip install lightning。使用conda activate lgt进入。这会自动install所匹配的torch包。

使用清华镜像站下载pytorch时显示没有匹配的版本
这是pytorch官网的安装命令,通常在安装torch、torchvision和torchaudio时速度尚可,但在安装依赖包时可能显示网络超时。很有可能找不到对应的torch版本,但是清华镜像站在下载依赖包时速度快。

torch.nn.parallel.DistributedDataParallel使用
1. torch.nn.parallel.DistributedDataParallel简单介绍Implements distributed data parallelism that is based onpackage at the module level.这个container通过在每个模型副本上同步梯度来提供数据并行性。要同步的设备是由输入process_group指定的,默认情况下它是

到底了







