Instructions to use figurative-nlp/English-Simile-Generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use figurative-nlp/English-Simile-Generation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("figurative-nlp/English-Simile-Generation") model = AutoModelForSeq2SeqLM.from_pretrained("figurative-nlp/English-Simile-Generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from figurative-nlp/English-Simile-Generation: direct link, hf CLI and curl.
- Browser
- Download file 1.36 MB
-
https://huggingface.co/figurative-nlp/English-Simile-Generation/resolve/refs%2Fpr%2F2/tokenizer.json
- Command line
-
hf download hf://figurative-nlp/English-Simile-Generation@refs/pr/2/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/figurative-nlp/English-Simile-Generation/resolve/refs%2Fpr%2F2/tokenizer.json
1.36 MB
File too large to display, you can check the raw version instead.