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优先级
- model_pretrained
- config_pretrained
- 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)
Built Distribution
pynami-0.0.5-py3-none-any.whl
(23.9 kB
view hashes)