Instructions to use robvanderg/flan-t5-base-starwars with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use robvanderg/flan-t5-base-starwars with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("robvanderg/flan-t5-base-starwars") model = AutoModelForSeq2SeqLM.from_pretrained("robvanderg/flan-t5-base-starwars") - Notebooks
- Google Colab
- Kaggle
This is flan-t5-base finetuned on wookieepedia. First, the data was downloaded using: https://robvanderg.github.io/datasets/wikia/ , then I created a script for doing LM with T5, which is uploaded in this repository (run_t5_mlm_torch.py; note that not all functionality is tested). Finally, it was trained with the following command:
python3 retrain_torch.py --train_file ../starwarsfandomcom-20200223.txt.cleaned.tok.uniq.txt --output_dir flan-t5-base-starwars --validation_split_percentage 1 --model_name_or_path google/flan-t5-base --max_seq_length 512 --do_train --do_eval
Final perplexity was 3.38
- Downloads last month
- 7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support