Skip to main content

Deep Learning - Transformers

Project description

  • nami = not an mmlab implementation
  • 原先基于mmengine,现fork了mmengine并改为franky
  • 安装:pip install pynami
  • 模型需要继承自:HFModel,并实现forward方法
  • 预训练的模型使用pretrained关键字
  • 当子模块模型基于transformers时需要:
    • type为NamiAutoModel
    • model_type和config_type必须
    • config_pretrained和model_pretrained优先级
      1. model_pretrained
      2. config_pretrained
      3. None
  • 新增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

pynami-0.0.5.tar.gz (19.4 kB view hashes)

Uploaded Source

Built Distribution

pynami-0.0.5-py3-none-any.whl (23.9 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