pytrio-cookbook
用PyTRIO做模型训练案例、RL训练框架设计
长期目标
- 专门用于训练大模型RL算法的框架,要求实现通用性、实用性
- 基于框架提供实际案例
框架适配
PPO一类,GRPO一类,DPO一类
期望使用类似于TRL的Trainer形式实现基于PyTRIO的强化学习训练
环境安装
使用 uv(推荐,依赖版本由 uv.lock 锁定):
uv sync
uv run python --version
# The local package is installed by uv, so this import works:
uv run python -c "import trio_cookbook"
也可以继续使用 requirements 文件:
pip install -r requirements.txt
# Install this repository as well when using pip directly:
pip install -e .
发布到 PyPI 后,也可以直接安装:
pip install pytrio-cookbook
Metadata
Release files for pytrio-cookbook 0.1.0
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 | |
|---|---|---|---|---|
| pytrio_cookbook-0.1.0.tar.gz | 71.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytrio_cookbook-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.0 kB
Release files / pytrio_cookbook-0.1.0.tar.gz
| Download URL | pytrio_cookbook-0.1.0.tar.gz |
|---|---|
| Size | 71.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
032433746dee2ffc18f9e92f397b2b9527e2963d9e993a2bf33419ee0cbf2ef1
|
|
BLAKE2b-256 checksum How to use checksums |
b40245e4251b8e8edb2ff983dee4ed7d12d38b928f81abb28d7e67b88e0e95a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pytrio_cookbook-0.1.0-py3-none-any.whl
| Download URL | pytrio_cookbook-0.1.0-py3-none-any.whl |
|---|---|
| Size | 54.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a04f697e550d3d0e44e99b406c07e43a512de386fb144f366e0e2e995761ca36
|
|
BLAKE2b-256 checksum How to use checksums |
cdbbdc3ae4455ddad0d22f569b2ad06d4c365802b802d99f753aad80f801a576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pytrio-cookbook 0.1.0
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.