Answers questions over paper text and structured paper context.
This model is part of the Repository Library stack, a research system for indexing, retrieving, aligning, and reasoning over scientific papers, structured paper content, repositories, and cross-domain links between them.
The training inputs for this package were assembled from the following Repository Library data sources:
1from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
2from peft import PeftModel
3
4repo_id = "PeytonT/paper-qa"
5base_id = "google/flan-t5-base"
6
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8base = AutoModelForSeq2SeqLM.from_pretrained(base_id)
9model = PeftModel.from_pretrained(base, repo_id)