服务器使用指南
服务器使用指南
配置
使用VScode进行SSH连接
Host Dual4090
HostName
Port
User zzh #向管理员申请的用户
IdentityFile "" #服务器私钥
后台运行程序
# screen 简单使用指南
# 1. 创建一个 screen会话
screen -S name1
# 2. 运行你的程序,使用tee输出log
python run.py | tee log/run_1.log
# 3. 离开当前会话
Ctrl+A D
# 查看后台正在运行的会话
screen -ls
# 回到会话
screen -R name1
# 删除当前会话
Ctrl+A K
代理
开启代理
export https_proxy=http://127.0.0.1:987
export http_proxy=http://127.0.0.1:987
export all_proxy=socks5://127.0.0.1:987
查看代理
env | grep proxy
curl ipinfo.io
清除代理
unset http_proxy https_proxy ftp_proxy all_proxy HTTP_PROXY HTTPS_PROXY FTP_PROXY

上传文件
首先在vscode上下载SFTP

然后在主机输入sftp Dual4090 进行连接
交互文件的指令如下
# 连接到服务器(使用您配置的 Host 别名 ‘Dual4090’)
sftp Dual4090
# 连接后进入 sftp 命令行,可以执行:
put local_file.txt # 上传文件
get remote_file.txt # 下载文件
put -r local_folder/ # 上传整个文件夹
lls # 列出本地文件
ls # 列出服务器文件
exit # 退出
当然为了更快的传输,可以先把要上传/下载的文件进行压缩后在上传/下载
zip -r 压缩文件名.zip 文件夹名
unzip 压缩文件名.zip
实测下来该方法属实很慢,基于本服务器适用的“服情”,我计划利用huggingface仓库作为中转方案。
下载大模型
HF_ENDPOINT=https://hf-mirror.com huggingface-cli download --resume-download openvla/openvla-7b
上传大模型
huggingface-cli login
HF_ENDPOINT=https://hf-mirror.com huggingface-cli upload Zxben/dp diffusion_viola_noclip/ .

浙公网安备 33010602011771号