Instructions to use bew/t5_sentence_to_triplet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use bew/t5_sentence_to_triplet with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large") model = PeftModel.from_pretrained(base_model, "bew/t5_sentence_to_triplet") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from bew/t5_sentence_to_triplet: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/bew/t5_sentence_to_triplet/resolve/main/README.md
- Command line
-
hf download hf://bew/t5_sentence_to_triplet/README.md
-
curl -L -o README.md https://huggingface.co/bew/t5_sentence_to_triplet/resolve/main/README.md
383 Bytes
metadata
language:
- en
license: apache-2.0
library_name: peft
pipeline_tag: text2text-generation
base_model: google/flan-t5-large
This is a proof-of-concept fine-tuned version of flan-t5-large which takes in a sentence and outputs triplets (subject-relation-object) to be used for generating a knowledge graph.
t5_sentence_to_triplet_xl has a better description and performance