DeepPavlov / t5-wikidata5M-with-neighbors

huggingface.co
Total runs: 26
24-hour runs: 0
7-day runs: 2
30-day runs: 20
Model's Last Updated: July 21 2023
text-generation

Introduction of t5-wikidata5M-with-neighbors

Model Details of t5-wikidata5M-with-neighbors

This is a t5-small model trained on the wikidata5M dataset.

This model was trained on tail and entity prediction in a knowledge graph using the graph's context represented by the node's neighborhood.

Textual representation was obtained from wikidata entities and relation titles. Entity description was used to disambiguate if two entities had the same title. If still, no disambiguation was possible, we assigned unique numerical ids for such entities.

The neighborhood for the input was obtained as follows:

  1. sort the neighborhood by semantic similarity of relations from its triplets to the relation from the input triplet in order to prioritize more important information in the context;
  2. limit the sorted neighborhood to 512 triplets, since this will always be at least as big as the size of the allowed context, and, after verbalization, specify the maximum length of 512 for the model tokenizer to fit the resulting verbalized neighborhood representation into the language model context.

Neighborhood sorting by semantic proximity was performed using a pre-calculated matrix of cosine similarity of relations in KG, for similarity calculation the relations were embedded by the fasttext model.

We trained the model on the Wikidata5M dataset for approximately 5M iterations on 8xA100 GPUs using a batch size of 320.

To evaluate the model, we sample 50 times from the decoder for each input and then rank the predictions by their log probabilities. We achieve 0.319 Hits@1 on the test set.

One can load this model for their personal use of fine-tuning as follows:

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("DeepPavlov/t5-wikidata5M-with-neighbors")
model = AutoModelForSeq2SeqLM.from_pretrained("DeepPavlov/t5-wikidata5M-with-neighbors")

Runs of DeepPavlov t5-wikidata5M-with-neighbors on huggingface.co

26
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
20
30-day runs

More Information About t5-wikidata5M-with-neighbors huggingface.co Model

More t5-wikidata5M-with-neighbors license Visit here:

https://choosealicense.com/licenses/openrail

t5-wikidata5M-with-neighbors huggingface.co

t5-wikidata5M-with-neighbors huggingface.co is an AI model on huggingface.co that provides t5-wikidata5M-with-neighbors's model effect (), which can be used instantly with this DeepPavlov t5-wikidata5M-with-neighbors model. huggingface.co supports a free trial of the t5-wikidata5M-with-neighbors model, and also provides paid use of the t5-wikidata5M-with-neighbors. Support call t5-wikidata5M-with-neighbors model through api, including Node.js, Python, http.

t5-wikidata5M-with-neighbors huggingface.co Url

https://huggingface.co/DeepPavlov/t5-wikidata5M-with-neighbors

DeepPavlov t5-wikidata5M-with-neighbors online free

t5-wikidata5M-with-neighbors huggingface.co is an online trial and call api platform, which integrates t5-wikidata5M-with-neighbors's modeling effects, including api services, and provides a free online trial of t5-wikidata5M-with-neighbors, you can try t5-wikidata5M-with-neighbors online for free by clicking the link below.

DeepPavlov t5-wikidata5M-with-neighbors online free url in huggingface.co:

https://huggingface.co/DeepPavlov/t5-wikidata5M-with-neighbors

t5-wikidata5M-with-neighbors install

t5-wikidata5M-with-neighbors is an open source model from GitHub that offers a free installation service, and any user can find t5-wikidata5M-with-neighbors on GitHub to install. At the same time, huggingface.co provides the effect of t5-wikidata5M-with-neighbors install, users can directly use t5-wikidata5M-with-neighbors installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

t5-wikidata5M-with-neighbors install url in huggingface.co:

https://huggingface.co/DeepPavlov/t5-wikidata5M-with-neighbors

Url of t5-wikidata5M-with-neighbors

t5-wikidata5M-with-neighbors huggingface.co Url

Provider of t5-wikidata5M-with-neighbors huggingface.co

DeepPavlov
ORGANIZATIONS

Other API from DeepPavlov