Skip to main content

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

This version

0.9

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biobert-pytorch-0.9.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

biobert_pytorch-0.9-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

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

Hashes for biobert-pytorch-0.9.tar.gz
Algorithm Hash digest
SHA256 72ffa7c22a349f6a08c82cee134bbf051dff2461b2cf03152b75331ca85ccbc9
MD5 4b03093fd63cef38e2af4efae935d491
BLAKE2b-256 6440dde1f2c0ff18f08b7ef8a772b4462931bf01efef32e04f8f014c4a22f14f

See more details on using hashes here.

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

Hashes for biobert_pytorch-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 955346b34c3ad4460ccce9fbe993eae256f5a2e1695b1a09592e4594b444de93
MD5 49a96b328afdc513b72ed386cf233fde
BLAKE2b-256 115ad277c8f18208c8a605c7d33b960b7573f2cb4df0062c041ab77de9a8fc29

See more details on using hashes here.

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