BART é um modelo do tipo transformer encoder-decoder (seq2seq) com um encoder bidirecional (semelhante a BERT) e um decoder autorregressivo (semelhante a GPT). O BART é pré-treinado (1) corrompendo o texto com uma função de ruído arbitrária e (2) aprendendo um modelo para reconstruir o texto original.
O BART é particularmente eficaz quando feito fine-tuning para geração de texto (por exemplo, resumo, tradução), mas também funciona bem para tarefas de compreensão (por exemplo, classificação de texto e QA).
Usos e limitações
Você pode usar o modelo base para preenchimento de texto. No entanto, o modelo será mais útil após o fine-tuning em um dataset para uma tarefa específica.
Como usar
from transformers import BartTokenizer, BartModel
tokenizer = BartTokenizer.from_pretrained('adalbertojunior/bart-base-portuguese')
model = BartModel.from_pretrained('adalbertojunior/bart-base-portuguese')
inputs = tokenizer("No meio do caminho havia uma pedra", return_tensors="pt")
outputs = model(**inputs)
last_hidden_states = outputs.last_hidden_state
Runs of adalbertojunior bart-base-portuguese on huggingface.co
84
Total runs
2
24-hour runs
4
3-day runs
7
7-day runs
20
30-day runs
More Information About bart-base-portuguese huggingface.co Model
bart-base-portuguese huggingface.co
bart-base-portuguese huggingface.co is an AI model on huggingface.co that provides bart-base-portuguese's model effect (), which can be used instantly with this adalbertojunior bart-base-portuguese model. huggingface.co supports a free trial of the bart-base-portuguese model, and also provides paid use of the bart-base-portuguese. Support call bart-base-portuguese model through api, including Node.js, Python, http.
bart-base-portuguese huggingface.co is an online trial and call api platform, which integrates bart-base-portuguese's modeling effects, including api services, and provides a free online trial of bart-base-portuguese, you can try bart-base-portuguese online for free by clicking the link below.
adalbertojunior bart-base-portuguese online free url in huggingface.co:
bart-base-portuguese is an open source model from GitHub that offers a free installation service, and any user can find bart-base-portuguese on GitHub to install. At the same time, huggingface.co provides the effect of bart-base-portuguese install, users can directly use bart-base-portuguese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
bart-base-portuguese install url in huggingface.co: