pucpr / gpt2-bio-pt

huggingface.co
Total runs: 38
24-hour runs: 0
7-day runs: 6
30-day runs: 20
Model's Last Updated: November 23 2022
text-generation

Introduction of gpt2-bio-pt

Model Details of gpt2-bio-pt

Logo GPt2-Bio-Pt

GPT2-BioPT - a Language Model for Portuguese Biomedical text generation

Introduction

GPT2-BioPT (Portuguese Biomedical GPT-2 small) is a language model for Portuguese based on the OpenAI GPT-2 model, trained from the GPorTuguese-2 with biomedical literature.

We used Transfer Learning and Fine-tuning techniques with 110MB of training data, corresponding to 16,209,373 tokens and 729,654 sentences.

GPT-2

Note: information copied/pasted from Model: gpt2 >> GPT-2

Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in this paper and first released at this page (February 14, 2019).

Disclaimer: The team releasing GPT-2 also wrote a model card for their model. Content from this model card has been written by the Hugging Face team to complete the information they provided and give specific examples of bias.

Model description

Note: information copied/pasted from Model: gpt2 >> Model description

GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences.

More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token i only uses the inputs from 1 to i but not the future tokens.

This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a prompt.

How to use GPT2-BioPT with HuggingFace
from transformers import pipeline

chef = pipeline('text-generation',model="pucpr/gpt2-bio-pt", tokenizer="pucpr/gpt2-bio-pt",config={'max_length':800})

result = chef('O paciente chegou no hospital')[0]['generated_text']
print(result)

Resultado:

O paciente chegou no hospital três meses após a operação, não houve complicações graves. Entre os grupos que apresentaram maior número de lesões, o exame da cavidade pélvica estava significantemente associado à ausência de complicações. Foi encontrada uma maior incidência de fraturas (...)

Citation
@INPROCEEDINGS{9474713,
  author={Schneider, Elisa Terumi Rubel and de Souza, João Vitor Andrioli and Gumiel, Yohan Bonescki and Moro, Claudia and Paraiso, Emerson Cabrera},
  booktitle={2021 IEEE 34th International Symposium on Computer-Based Medical Systems (CBMS)}, 
  title={A GPT-2 Language Model for Biomedical Texts in Portuguese}, 
  year={2021},
  volume={},
  number={},
  pages={474-479},
  doi={10.1109/CBMS52027.2021.00056}}
Questions?

Post a Github issue on the GPT2-Bio-Pt repo .

Runs of pucpr gpt2-bio-pt on huggingface.co

38
Total runs
0
24-hour runs
1
3-day runs
6
7-day runs
20
30-day runs

More Information About gpt2-bio-pt huggingface.co Model

gpt2-bio-pt huggingface.co

gpt2-bio-pt huggingface.co is an AI model on huggingface.co that provides gpt2-bio-pt's model effect (), which can be used instantly with this pucpr gpt2-bio-pt model. huggingface.co supports a free trial of the gpt2-bio-pt model, and also provides paid use of the gpt2-bio-pt. Support call gpt2-bio-pt model through api, including Node.js, Python, http.

gpt2-bio-pt huggingface.co Url

https://huggingface.co/pucpr/gpt2-bio-pt

pucpr gpt2-bio-pt online free

gpt2-bio-pt huggingface.co is an online trial and call api platform, which integrates gpt2-bio-pt's modeling effects, including api services, and provides a free online trial of gpt2-bio-pt, you can try gpt2-bio-pt online for free by clicking the link below.

pucpr gpt2-bio-pt online free url in huggingface.co:

https://huggingface.co/pucpr/gpt2-bio-pt

gpt2-bio-pt install

gpt2-bio-pt is an open source model from GitHub that offers a free installation service, and any user can find gpt2-bio-pt on GitHub to install. At the same time, huggingface.co provides the effect of gpt2-bio-pt install, users can directly use gpt2-bio-pt installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gpt2-bio-pt install url in huggingface.co:

https://huggingface.co/pucpr/gpt2-bio-pt

Url of gpt2-bio-pt

gpt2-bio-pt huggingface.co Url

Provider of gpt2-bio-pt huggingface.co

pucpr
ORGANIZATIONS

Other API from pucpr

huggingface.co

Total runs: 24.5K
Run Growth: 13.0K
Growth Rate: 52.87%
Updated:July 29 2025
huggingface.co

Total runs: 8.1K
Run Growth: 7.6K
Growth Rate: 93.52%
Updated:November 28 2022
huggingface.co

Total runs: 216
Run Growth: -990
Growth Rate: -458.33%
Updated:November 28 2022
huggingface.co

Total runs: 11
Run Growth: 5
Growth Rate: 55.56%
Updated:August 31 2021