Lalit Pagaria
0193c8290d
[RAG] Propagating of n_docs as parameter to all RagModel's related functions ( #7891 )
...
* Propagating n_docs as parameter to all RagModel's related functions that defaults to self.config.n_docs
* Making n_docs parameter's default value to None in marginalize function
* Fixing code quality issues
* Handle the special case when generator is of T5PreTrainedModel instance type. T5PreTrainedModel do not have n_docs as parameter
* T5PreTrainedModel do not have n_docs as parameter
* Addressing review comment
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
* Correcting comment by addressing review comment
* Adding assert statement verifying that n_docs is correctly set. n_docs should be the same for both retriever and generator.
* Fixing flake8 reported issue
* Correcting test datasets for rag
* Using doc_scores instead of context_input_ids to check assert as in RagSequenceForGeneration context_input_ids can be null
* doc_scores second dimension have number of retrieved docs
* Changing assert comment
* Apply suggestions from code review
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com >
2020-10-19 15:15:52 +02:00
..
2020-10-18 20:51:24 +02:00
2020-01-06 15:11:12 +01:00
2020-09-14 07:50:51 -04:00
2020-09-16 07:03:47 -04:00
2020-08-24 11:03:01 -04:00
2020-09-23 13:25:24 -04:00
2020-09-23 13:25:24 -04:00
2020-08-27 20:01:17 -04:00
2020-07-01 10:31:17 -04:00
2020-03-05 17:16:57 -05:00
2020-09-22 12:21:52 -04:00
2020-07-01 10:31:17 -04:00
2020-08-24 11:03:01 -04:00
2020-07-31 04:44:23 -04:00
2020-09-09 04:08:01 -04:00
2020-01-06 15:11:12 +01:00
2020-09-11 12:01:33 -04:00
2020-08-26 17:20:22 +02:00
2020-10-07 19:09:23 -04:00
2020-10-18 20:18:08 -04:00
2020-09-10 16:40:51 +02:00
2020-08-26 17:20:22 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-07 19:09:23 -04:00
2020-08-26 17:20:22 +02:00
2020-10-18 20:51:24 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-08-26 17:20:22 +02:00
2020-09-11 09:57:53 +02:00
2020-08-26 17:20:22 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-14 13:40:24 +02:00
2020-09-22 09:28:02 -04:00
2020-10-18 20:51:24 +02:00
2020-09-04 16:08:54 +02:00
2020-10-18 20:18:08 -04:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-13 05:06:15 -04:00
2020-10-18 20:51:24 +02:00
2020-10-19 15:15:52 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-08-24 11:03:01 -04:00
2020-08-24 11:03:01 -04:00
2020-10-05 09:58:45 -04:00
2020-10-18 20:51:24 +02:00
2020-10-01 17:38:50 +02:00
2020-08-26 17:20:22 +02:00
2020-09-02 10:54:40 -04:00
2020-08-26 17:20:22 +02:00
2020-10-18 20:51:24 +02:00
2020-09-22 09:31:13 -04:00
2020-10-01 17:38:50 +02:00
2020-10-18 20:51:24 +02:00
2020-09-03 04:02:25 -04:00
2020-08-24 11:03:01 -04:00
2020-09-01 12:38:25 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-09-02 10:54:40 -04:00
2020-10-18 20:51:24 +02:00
2020-08-26 17:20:22 +02:00
2020-09-02 10:54:40 -04:00
2020-08-26 17:20:22 +02:00
2020-10-18 20:51:24 +02:00
2020-08-26 17:20:22 +02:00
2020-10-01 17:38:50 +02:00
2020-10-18 20:51:24 +02:00
2020-08-24 11:03:01 -04:00
2020-08-27 18:31:51 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-19 07:08:34 -04:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-09-18 13:16:43 -04:00
2020-10-07 19:09:23 -04:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-08 11:32:16 +02:00
2020-09-30 07:07:30 -04:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-09-17 11:31:29 -04:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-09-18 13:16:43 -04:00
2020-10-13 14:34:22 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-08 11:32:16 +02:00
2020-10-18 20:51:24 +02:00
2020-10-18 20:51:24 +02:00
2020-10-08 11:32:16 +02:00
2020-10-18 20:51:24 +02:00
2020-10-16 03:19:51 -04:00
2020-10-14 11:41:45 -04:00
2020-10-14 11:41:45 -04:00
2020-10-14 11:41:45 -04:00
2020-10-18 20:51:24 +02:00
2020-09-30 10:05:14 +02:00