Ready to use BioBert pytorch weights for HuggingFace pytorch BertModel.
Project description
Biobertology
Ready to use BioBert pytorch weights for HuggingFace pytorch BertModel.
To load the model:
from biobertology import get_biobert, get_tokenizer
biobert = get_biobert(model_dir=None, download=True)
tokenizer = get_tokenizer()
Example of fine tuning biobert here.
How was it converted to pytorch?
Model weights have been downloaded from here and converted
by following the commands described here.pytorch
Specifically, using the command:
pytorch_transformers bert biobert_v1.1_pubmed/model.ckpt-1000000 biobert_v1.1_pubmed/bert_config.json biobert_v1.1_pubmed/pytorch_model.bin
followed by the renaming of the config file:
mv biobert_v1.1_pubmed/bert_config.json biobert_v1.1_pubmed/config.json
all of the other files inside the original weights file have been deleted.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file biobert-pytorch-0.9.tar.gz.
File metadata
- Download URL: biobert-pytorch-0.9.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72ffa7c22a349f6a08c82cee134bbf051dff2461b2cf03152b75331ca85ccbc9
|
|
| MD5 |
4b03093fd63cef38e2af4efae935d491
|
|
| BLAKE2b-256 |
6440dde1f2c0ff18f08b7ef8a772b4462931bf01efef32e04f8f014c4a22f14f
|
File details
Details for the file biobert_pytorch-0.9-py3-none-any.whl.
File metadata
- Download URL: biobert_pytorch-0.9-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
955346b34c3ad4460ccce9fbe993eae256f5a2e1695b1a09592e4594b444de93
|
|
| MD5 |
49a96b328afdc513b72ed386cf233fde
|
|
| BLAKE2b-256 |
115ad277c8f18208c8a605c7d33b960b7573f2cb4df0062c041ab77de9a8fc29
|