legacy-datasets/wikipedia
Updated โข 40.8k โข 622
Run Suchinthana/T5-Base-Wikigen 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:
Use HF Jobs to fine-tune https://huggingface.co/Suchinthana/T5-Base-Wikigen. 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.
Use HF Jobs to run batch inference with https://huggingface.co/Suchinthana/T5-Base-Wikigen 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.
How to use Suchinthana/T5-Base-Wikigen with Transformers:
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Suchinthana/T5-Base-Wikigen")
model = AutoModelForSeq2SeqLM.from_pretrained("Suchinthana/T5-Base-Wikigen", device_map="auto")This model is fine tuned with articles from Simple English Wikipedia for article generation. Used around 25,000 articles for training.
We have to use "writeWiki: " part at the begining of each prompt.
You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:
>>> from transformers import pipeline
>>> generator = pipeline('text2text-generation', model='Suchinthana/T5-Base-Wikigen')
>>> generator("writeWiki: Microcontroller", do_sample=True, max_length=250)