Skip to main content

Use torch like keras

Project description

torch4keras

licence GitHub release PyPI PyPI - Downloads GitHub stars GitHub Issues contributions welcome

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

  • 初衷:前期功能是作为bert4torchrec4torch的Trainer

  • 训练:

    torch4keras

3. 快速上手

4. 版本历史

更新日期 版本 版本说明
20250925 v0.3.2 增加常见 shell命令
20250721 v0.3.1 add cache_text, try_except, TryExcept, 完善耗时计算,修改 load_checkpoint,增加 green等颜色函数
20250615 v0.3.0 增加 safe_torch_loadsafe_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. 更新历史:

更多历史

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torch4keras-0.3.3.tar.gz (66.3 kB view details)

Uploaded Source

File details

Details for the file torch4keras-0.3.3.tar.gz.

File metadata

  • Download URL: torch4keras-0.3.3.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for torch4keras-0.3.3.tar.gz
Algorithm Hash digest
SHA256 5542e62971ab85dc5e8ffb6c9e4de24722d076b8876aed520d5b44f78d0c26d5
MD5 80091dcfd2bdd6501b05dad133c5f998
BLAKE2b-256 a43f56ebbf74860ee469e65b466f9c5c7b3352f1dbf5d70ce9ecb304168eaaad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page