Instructions to use lfcc/bert-portuguese-squad2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lfcc/bert-portuguese-squad2 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="lfcc/bert-portuguese-squad2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("lfcc/bert-portuguese-squad2") model = AutoModelForQuestionAnswering.from_pretrained("lfcc/bert-portuguese-squad2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
7ca960c -
Update README.md
ed570a6 -
Update README.md
463d523 -
Update README.md
0bb192d -
Update README.md
2a73caf -
Update README.md
c51e5ca -
Update README.md
0a41b8f -
Delete README copy.md
2f40222 -
Update README.md
37267aa -
Update README.md
6502869 -
Update README.md
3b2344a -
Update README.md
ea6cff3 -
First version of the pt-squad-v2 model and tokenizer.
lfc876a97c -
Update from dock
lfcae32a63 -
initial commit
f174a51