以配置文件的形式构建transformer模型
Project description
osc-transformers
以配置文件的方式构建transformer模型
当前使用transformer类模型最流行的方式是使用transformers,这个库的特点是开箱即用,使用方便,但在构建transformer类模型上面不够灵活,因此本项目旨在提供一种更优雅、更灵活构建transformer类模型的方式.
安装
- 首先安装pytorch: osc-transformers需要torch>=2.0
pip install osc-transformers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osc_transformers-0.1.0.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for osc_transformers-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52745fd60cd96deff7d8b2b4f83e71e74fd9f7053657d07bc2c4e598d3b92009 |
|
MD5 | 0926c1d3c0a2c8bddced50bd38626e21 |
|
BLAKE2b-256 | eceb638f9d7532c7f43a304b7dc77475f73c73f9afcfd24db2acc500b225564d |