Run this model with HF Jobs
Run valhalla/t5-small-e2e-qg 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/valhalla/t5-small-e2e-qg. 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/valhalla/t5-small-e2e-qg 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 valhalla/t5-small-e2e-qg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use valhalla/t5-small-e2e-qg with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("valhalla/t5-small-e2e-qg") model = AutoModelForSeq2SeqLM.from_pretrained("valhalla/t5-small-e2e-qg", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Migrate model card from transformers-repo
Browse filesRead announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755
Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/valhalla/t5-small-e2e-qg/README.md
1234567891011121314151617181920212223242526272829303132333435363738---datasets:- squadtags:- question-generationwidget:- text: "Python is developed by Guido Van Rossum and released in 1991. </s>"license: mit---
## T5 for question-generationThis is [t5-small](https://arxiv.org/abs/1910.10683) model trained for end-to-end question generation task. Simply input the text and the model will generate multile questions.
You can play with the model using the inference API, just put the text and see the results!
For more deatils see [this](https://github.com/patil-suraj/question_generation) repo.
### Model in action 🚀
You'll need to clone the [repo](https://github.com/patil-suraj/question_generation).
[](https://colab.research.google.com/github/patil-suraj/question_generation/blob/master/question_generation.ipynb)
```python3from pipelines import pipeline
text = "Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum \and first released in 1991, Python's design philosophy emphasizes code \readability with its notable use of significant whitespace."
nlp = pipeline("e2e-qg")nlp(text)=> [ 'Who created Python?', 'When was Python first released?', "What is Python's design philosophy?"]```README.mdAdded+38