Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.


title: README authors: - Zhiyuan Chen date: 2023-06-06

README

本项目将一个UniRNA Checkpoint转换成一个HuggingFace Transformers兼容的Pretrained。

安装

pip install .

转换

python -m unirna.convert unirna_L16_E1024_DPRNA500M_STEP400K.pt 

对于预训练的Checkpoint,在本例中使用unirna_L16_E1024_DPRNA500M_STEP400K.pt。 convert将会自动识别模型结构参数,生成恰当的配置文件,并转换模型结构。 最终结果将保存在同名(但没有扩展名)的目录中,本例为unirna_L16_E1024_DPRNA500M_STEP400K。

使用

DeepProtein

在DeepProtein训练时,请在--sequence.pretrained指定转换后的文件路径,建议指定绝对路径。

python -m deepprotein.train --sequence.pretrained /path/to/unirna_L16_E1024_DPRNA500M_STEP400K

Transformers

在通过transformers使用转换后的Pretrained时,请务必import unirna来确保配置、模型和令牌器被正确注册。

import unirna  # import的顺序不重要
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("unirna_L16_E1024_DPRNA500M_STEP400K")
model = AutoModel.from_pretrained("unirna_L16_E1024_DPRNA500M_STEP400K")

文件结构

- {unirna}
-   |- convert.py
-   |- config.py
-   |- model.py
-   |- tokenizer.py
-   |- template
-     |- vocab.txt
-     |- tokenizer_config.json
-     |- special_tokens_map.json

Metadata

Release files for unirna 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for unirna 0.0.1
File Size Uploaded Provenance Actions
unirna-0.0.1.tar.gz 8.8 kB Without provenance Details for unirna-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unirna 0.0.1
File Interpreter ABI Platform Actions
unirna-0.0.1-py3-none-any.whl Python 3 none any Details for unirna-0.0.1-py3-none-any.whl

Total release size: 14.6 kB

Release files / unirna-0.0.1.tar.gz

Download URL unirna-0.0.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d39fe6d009b8ffea402ebce2cabcd4211185ceebfecbff4a1499e83c0d581ad1
BLAKE2b-256 checksum
How to use checksums
e9e03924e6efe131312cb60b1dba69c21c9c4fbc2b8a39f09e4c73fa83fbb353
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / unirna-0.0.1-py3-none-any.whl

Download URL unirna-0.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aeafb71f265037d52c5d5f94b222fb35df7223f2b1cad2e452217a487da20502
BLAKE2b-256 checksum
How to use checksums
eb82bd81800747759cf6012211363a5831bd7b46b1693b564ce1a6dc0606f338
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for unirna 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page