TLaunch_dev
Introduction
安装
virtualenv tmarl_env -p python3
# under tmarl_env, go into this repo and execute:
pip install -r requirements_dev.txt
pip install .
Quick Start
1.使用SSH登录TPod
TPod是一款面向分布式场景,为TLaunch准备的用户及资源管理工具。当管理员使用TPod创建用户后,可以自定义的为其指定分配的系统资源(包括CPU、GPU、Memory、Storage),并为该用户创建一个已经预装好TLaunch框架的TPod开发机,用户可以直接通过SSH登录该机器访问集群,以快速进入开发流程。
TPod的存储结构
在TPod中,我们会在/TData目录下创建你的个人文件夹,该文件夹会通过挂载的文件系统与远端同步。/TData内会预先创建以下内容:
code:用于存放训练代码setup.sh:用于指定训练环境及代码的安装方法
data:用于存放训练所需的数据cache:用于存放分布式计算过程中产生的缓存文件models:用于存放模型数据
2.存放算法代码并指定安装方法
在多数分布式场景中,少量的代码往往会经常改动。若每次改动代码都重新构建镜像,会浪费大量的时间。因此,我们可以将这部分代码存放在/TData/code文件夹中。在训练中,每当一个pods被创建时,都将先按照code文件夹中的setup.sh脚本更新环境
3.调用TLaunch创建任务
refs:https://github.com/TARTRL/TMARL/blob/master/docs/tlaunch/README.md
4.管理任务
当任务创建完成后,我们可以调用kubectl来查看任务状态及日志,其中常用的几条指令包括:
- 查看正在运行中的任务:
kubectl get lpjobs - 查看正在运行中的pods:
kubectl get pods - 查看pod节点日志:
kubectl logs ${pod name} - 查看pod节点详细信息:
kubectl describe pods ${pod name} - 删除任务:
kubectl delete lpjobs ${lpjob name}
Metadata
Release files for tlaunch 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tlaunch-0.0.2.tar.gz | 46.0 kB | Without provenance | Details for tlaunch-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tlaunch-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for tlaunch-0.0.2-py3-none-any.whl |
Total release size: 118.8 kB
Release files / tlaunch-0.0.2.tar.gz
| Download URL | tlaunch-0.0.2.tar.gz |
|---|---|
| Size | 46.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5d4083fb03c438a2ebf6e1685cf8f2b98356ca2f3f5dd0d3289d4fe59c26963
|
|
BLAKE2b-256 checksum How to use checksums |
ca4519943292b3cea35defb1cabc3905219d693bd617151975f417d216c44943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / tlaunch-0.0.2-py3-none-any.whl
| Download URL | tlaunch-0.0.2-py3-none-any.whl |
|---|---|
| Size | 72.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
defe63864e948ab4d117261d30ca6f616bae90bac9a29db7cfaf85465d44e049
|
|
BLAKE2b-256 checksum How to use checksums |
015a5a49a2e26803d136c925f28c40e8bf5e3e20ea682f7268aa8b891e65c6eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for tlaunch 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.