Instructions to use Shaier/pubmedqa_roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shaier/pubmedqa_roberta with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultipleChoice tokenizer = AutoTokenizer.from_pretrained("Shaier/pubmedqa_roberta") model = AutoModelForMultipleChoice.from_pretrained("Shaier/pubmedqa_roberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update model card README.md
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758---license: mittags:- generated_from_trainerdatasets:- pubmed_qamodel-index:- name: pubmedqa_roberta results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# pubmedqa_roberta
This model is a fine-tuned version of [roberta-base](https://huggingface.co/roberta-base) on the pubmed_qa dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 8- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 25- total_train_batch_size: 200- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 1
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 0.79 | 2 | 1.0976 | 0.552 |
### Framework versions
- Transformers 4.25.1- Pytorch 1.13.1- Datasets 2.8.0- Tokenizers 0.11.0README.mdAdded+58