facebook / rag-token-nq

huggingface.co
Total runs: 26.5K
24-hour runs: 0
7-day runs: -487
30-day runs: -340
Model's Last Updated: November 14 2023

Introduction of rag-token-nq

Model Details of rag-token-nq

RAG

This is the RAG-Token Model of the the paper Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks by Patrick Lewis, Ethan Perez, Aleksandara Piktus et al.

The model is a uncased model, which means that capital letters are simply converted to lower-case letters.

The model consists of a question_encoder , retriever and a generator . The retriever extracts relevant passages from the wiki_dpr train datasets, which is linked above. The question_encoder and retriever are based on facebook/dpr-question_encoder-single-nq-base and facebook/bart-large , which were jointly finetuned on on the wiki_dpr QA dataset in an end-to-end fashion.

Usage:

Note : In the usage example below only the dummy retriever of wiki_dpr is used because the complete lecagy index requires over 75 GB of RAM. The model can generate answers to any factoid question as follows:

from transformers import RagTokenizer, RagRetriever, RagTokenForGeneration

tokenizer = RagTokenizer.from_pretrained("facebook/rag-token-nq")
retriever = RagRetriever.from_pretrained("facebook/rag-token-nq", index_name="exact", use_dummy_dataset=True)
model = RagTokenForGeneration.from_pretrained("facebook/rag-token-nq", retriever=retriever)

input_dict = tokenizer.prepare_seq2seq_batch("who holds the record in 100m freestyle", return_tensors="pt") 

generated = model.generate(input_ids=input_dict["input_ids"]) 
print(tokenizer.batch_decode(generated, skip_special_tokens=True)[0]) 

# should give michael phelps => sounds reasonable

Runs of facebook rag-token-nq on huggingface.co

26.5K
Total runs
0
24-hour runs
8
3-day runs
-487
7-day runs
-340
30-day runs

More Information About rag-token-nq huggingface.co Model

More rag-token-nq license Visit here:

https://choosealicense.com/licenses/apache-2.0

rag-token-nq huggingface.co

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

rag-token-nq huggingface.co Url

https://huggingface.co/facebook/rag-token-nq

facebook rag-token-nq online free

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

facebook rag-token-nq online free url in huggingface.co:

https://huggingface.co/facebook/rag-token-nq

rag-token-nq install

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

rag-token-nq install url in huggingface.co:

https://huggingface.co/facebook/rag-token-nq

Url of rag-token-nq

rag-token-nq huggingface.co Url

Provider of rag-token-nq huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.2M
Run Growth: 4.4M
Growth Rate: 49.40%
Updated: January 17 2024
huggingface.co

Total runs: 6.3M
Run Growth: -970.9K
Growth Rate: -16.12%
Updated: September 15 2023
huggingface.co

Total runs: 3.1M
Run Growth: -357.0K
Growth Rate: -11.88%
Updated: November 17 2022
huggingface.co

Total runs: 2.0M
Run Growth: 1.9M
Growth Rate: 99.94%
Updated: June 13 2023
huggingface.co

Total runs: 1.3M
Run Growth: 12.4K
Growth Rate: 0.94%
Updated: February 29 2024
huggingface.co

Total runs: 1.1M
Run Growth: -1.1M
Growth Rate: -103.67%
Updated: March 23 2023
huggingface.co

Total runs: 806.6K
Run Growth: 139.7K
Growth Rate: 17.08%
Updated: January 12 2024
huggingface.co

Total runs: 618.6K
Run Growth: -145.5K
Growth Rate: -22.93%
Updated: January 20 2022
huggingface.co

Total runs: 591.9K
Run Growth: 62.7K
Growth Rate: 10.25%
Updated: September 06 2023
huggingface.co

Total runs: 307.9K
Run Growth: 155.7K
Growth Rate: 51.95%
Updated: January 25 2024
huggingface.co

Total runs: 278.5K
Run Growth: 50.5K
Growth Rate: 18.58%
Updated: September 15 2023
huggingface.co

Total runs: 265.5K
Run Growth: 104.6K
Growth Rate: 40.73%
Updated: September 05 2023
huggingface.co

Total runs: 249.7K
Run Growth: -18.4M
Growth Rate: -7339.74%
Updated: September 15 2023
huggingface.co

Total runs: 247.2K
Run Growth: -27.5K
Growth Rate: -11.16%
Updated: May 22 2023
huggingface.co

Total runs: 233.3K
Run Growth: -1.2M
Growth Rate: -500.46%
Updated: September 06 2023
huggingface.co

Total runs: 229.2K
Run Growth: -248.3K
Growth Rate: -109.15%
Updated: January 12 2024
huggingface.co

Total runs: 225.4K
Run Growth: -146.3K
Growth Rate: -62.61%
Updated: January 12 2024
huggingface.co

Total runs: 184.2K
Run Growth: 166.7K
Growth Rate: 90.52%
Updated: November 20 2023
huggingface.co

Total runs: 160.7K
Run Growth: 17.7K
Growth Rate: 10.78%
Updated: January 25 2023
huggingface.co

Total runs: 146.1K
Run Growth: 21.3K
Growth Rate: 14.74%
Updated: June 03 2022
huggingface.co

Total runs: 136.1K
Run Growth: -507.0K
Growth Rate: -395.61%
Updated: June 15 2023
huggingface.co

Total runs: 113.1K
Run Growth: 75.8K
Growth Rate: 67.15%
Updated: March 13 2024
huggingface.co

Total runs: 103.1K
Run Growth: -1.6K
Growth Rate: -1.54%
Updated: November 16 2023
huggingface.co

Total runs: 92.6K
Run Growth: 23.7K
Growth Rate: 25.29%
Updated: May 22 2023
huggingface.co

Total runs: 79.3K
Run Growth: -87.1K
Growth Rate: -110.86%
Updated: September 06 2023
huggingface.co

Total runs: 60.0K
Run Growth: 38.4K
Growth Rate: 99.21%
Updated: September 01 2023
huggingface.co

Total runs: 43.6K
Run Growth: 27.1K
Growth Rate: 62.12%
Updated: January 25 2023
huggingface.co

Total runs: 40.6K
Run Growth: 10.7K
Growth Rate: 26.47%
Updated: September 15 2023
huggingface.co

Total runs: 30.7K
Run Growth: 9.3K
Growth Rate: 30.48%
Updated: November 20 2023
huggingface.co

Total runs: 30.7K
Run Growth: 10.3K
Growth Rate: 33.29%
Updated: January 25 2023
huggingface.co

Total runs: 29.1K
Run Growth: -158.9K
Growth Rate: -447.40%
Updated: June 14 2023
huggingface.co

Total runs: 28.3K
Run Growth: -226.9K
Growth Rate: -815.63%
Updated: June 05 2023
huggingface.co

Total runs: 27.0K
Run Growth: 9.1K
Growth Rate: 33.44%
Updated: March 17 2023
huggingface.co

Total runs: 26.9K
Run Growth: 9.4K
Growth Rate: 34.31%
Updated: February 12 2023
huggingface.co

Total runs: 25.5K
Run Growth: -9.8K
Growth Rate: -45.96%
Updated: September 06 2023
huggingface.co

Total runs: 23.4K
Run Growth: -4.8K
Growth Rate: -20.44%
Updated: September 15 2023
huggingface.co

Total runs: 21.1K
Run Growth: 12.5K
Growth Rate: 47.75%
Updated: February 29 2024
huggingface.co

Total runs: 19.8K
Run Growth: 17.3K
Growth Rate: 86.94%
Updated: January 18 2023