Skip to main content

以配置文件的形式构建transformer模型

Project description

osc-transformers

以配置文件的方式构建transformer模型

当前使用transformer类模型最流行的方式是使用transformers,这个库的特点是开箱即用,使用方便,但在构建transformer类模型上面不够灵活,因此本项目旨在提供一种更优雅、更灵活构建transformer类模型的方式.

安装

  • 首先安装pytorch: osc-transformers需要torch>=2.0
pip install osc-transformers

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

osc_transformers-0.1.0.tar.gz (11.8 kB view hashes)

Uploaded Source

Built Distribution

osc_transformers-0.1.0-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

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