Run this model with HF Jobs
Run kaejo98/bart-base_question_generation on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/kaejo98/bart-base_question_generation. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kaejo98/bart-base_question_generation on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use kaejo98/bart-base_question_generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kaejo98/bart-base_question_generation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("kaejo98/bart-base_question_generation") model = AutoModelForSeq2SeqLM.from_pretrained("kaejo98/bart-base_question_generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files6 unmodified lines7891011121314151617181920212223248 unmodified lines3334353637382 unmodified lines41424344454647486 unmodified lines5556575859606 unmodified linesresults: []---<!-- 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. --># bart-base_question_generationThis model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on an unknown dataset.## Model descriptionMore information needed## Intended uses & limitationsThe model takes context as an input sequence, and will generate a full question sentence as an output sequence. There are two ways the model can be queried produce the questions:- <b> Casual-Generation </b>: where the model is tasked to generate questions answerable by a given passage. The input should be follow the structure or format: '\<generate_questions\> paragraph: put your passage text here'. <br/>8 unmodified linesThe input sequence can then be encoded and passed as the input_ids argument in the model's generate() method.## Training and evaluation dataThe dataset used to train the model comprises the training datasets from:2 unmodified lines- DROP (Discrete Reasoning Over Paragraphs): https://allenai.org/data/drop- SciQ## Training procedure### Training hyperparametersThe following hyperparameters were used during training:6 unmodified lines- lr_scheduler_warmup_ratio: 0.25- num_epochs: 5### Framework versions- Transformers 4.23.16 unmodified lines78910111213141516171819208 unmodified lines29303132333435363738392 unmodified lines424344454647484950516 unmodified lines58596061626364656 unmodified linesresults: []---# BART-base Question GenerationThis model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on different questions and answering dataset. It was trained to generation question using two different approaches, <b> Casual-Generation </b> and <b> Context-based-Generation </b>.## Model descriptionThe model takes context as an input sequence, and will generate a full question sentence as an output sequence. There are two ways the model can be queried produce the questions:- <b> Casual-Generation </b>: where the model is tasked to generate questions answerable by a given passage. The input should be follow the structure or format: '\<generate_questions\> paragraph: put your passage text here'. <br/>8 unmodified linesThe input sequence can then be encoded and passed as the input_ids argument in the model's generate() method.## limitationsThe model was trained on only a limited amount of data hence questions might be poor quality. In addition the questions generated have style similar to that of the training data.## Training and evaluation dataThe dataset used to train the model comprises the training datasets from:2 unmodified lines- DROP (Discrete Reasoning Over Paragraphs): https://allenai.org/data/drop- SciQAfter preprocessing the data from the above listed datasets, we had 408372 examples for training the model and 25k for development and 18k for testing.## Training procedureThe model is trained (finetuned) for 5 epochs with the hyperparameters listed below:### Training hyperparametersThe following hyperparameters were used during training:6 unmodified lines- lr_scheduler_warmup_ratio: 0.25- num_epochs: 5At the end of 5 epochs, the Evaluation loss was: 1.6493076086044312 and the training loss was: 0.9671.### Framework versions- Transformers 4.23.1
README.md+13-8