All models

biogpt

A GPT-2-based generative language model pretrained on 15 million PubMed abstracts.

Language · 708 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (54 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
346.8M
Operations
708
Framework
PyTorch
Recurrent
No
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3687
Graph hash
fa6a818e4ea92cf1246dfd112d00d194ce78574c9bb32f57b0e6dcb372f9977a
Skeleton hash
24bff06fab254e632cc7b4f7d71f668ebcc909d0ed9dc8abdcba29c6a51a32fa
Architecture hash
506a8eabd0c14681e7571eb76811a198664bf97599da8561b2e1a5de75783723
Diagram SHA-256
e7176f149d9ac12f227f8c8a8a3a3c7cf79216bc2f1fc63fcd62e9463d20ff46
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForCausalLM.from_config()

What it is

BioGPT is a generative Transformer language model for biomedical text, based on GPT-2 and pretrained on 15 million PubMed abstracts. It is designed for biomedical language tasks. Besides the causal language model that generates text, the library provides versions for token classification and sequence classification.

Inputs should be padded on the right, because BioGPT uses absolute position embeddings. The model can also reuse previously computed key-value attention pairs. The original BioGPT checkpoints are published under the Microsoft organization.

Key idea. BioGPT is a generative Transformer based on GPT-2 that was pretrained on 15 million PubMed abstracts for biomedical language tasks.

  • BioGPT
  • biomedical language model
  • biomedical text generation
  • PubMed
  • causal language model
  • text generation
  • microsoft/biogpt

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.