Documentation | Bert4torch | Examples | Source code | build_MiniLLM_from_scratch
1. 下载安装
安装稳定版
pip install torch4keras
安装最新版
pip install git+https://github.com/Tongjilibo/torch4keras.git
2. 功能
-
简述:抽象出来的Trainer,适用于一般神经网络的训练,仅需关注网络结构代码
-
特色:进度条展示训练过程,自定义metric,自带Evaluator, Checkpoint, Tensorboard, Logger等Callback,也可自定义Callback
-
初衷:前期功能是作为bert4torch和rec4torch的Trainer
-
训练:
3. 快速上手
- 参考bert4torch的训练过程
- 简单示例: turorials_mnist
4. 版本历史
| 更新日期 | 版本 | 版本说明 |
|---|---|---|
| 20260513 | v0.3.4 | 把transfromers的logging模块迁移,修改名称为DotDict |
| 20260114 | v0.3.3 | 修改功能函数(DottableDict) |
| 20250925 | v0.3.2 | 增加常见 shell命令 |
| 20250721 | v0.3.1 | add cache_text, try_except, TryExcept, 完善耗时计算,修改 load_checkpoint,增加 green等颜色函数 |
| 20250615 | v0.3.0 | 增加 safe_torch_load和 safe_import |
| 20250511 | v0.2.9.post2 | trainer增加kwargs |
| 20250401 | v0.2.9 | 更新torch.amp |
| 20250211 | v0.2.8 | 屏蔽torch.load警告, Timeit提示 |
| 20240928 | v0.2.7 | 修改ddp的init_process_group;增加一些available函数,增加get_max_memory;DottableDict支持.赋值和嵌套;增加cachedict |
| 20240814 | v0.2.6 | 小修改(增加check_url_available_cached, 修复Timeit) |
| 20240730 | v0.2.5 | 小修改(print_table允许中文, 未安装torch时候仅提醒一次) |
5. 更新历史:
Metadata
Release files for torch4keras 0.3.4
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 |
|---|---|---|---|---|
| torch4keras-0.3.4.tar.gz | 69.3 kB | Without provenance | Details for torch4keras-0.3.4.tar.gz |
Release files / torch4keras-0.3.4.tar.gz
| Download URL | torch4keras-0.3.4.tar.gz |
|---|---|
| Size | 69.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cea0401c1f3c4c50c66b81fd99deccd3d028c87fd08781ff2f94ecb163b95357
|
|
BLAKE2b-256 checksum How to use checksums |
22ab910be8194d43296d2976e0bcb9154164005897773536f72ec935c43acb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12
|
Security for torch4keras 0.3.4
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.