Closed Rakin061 closed 3 months ago
Hey! Not sure we will have time to dive into this, maybe adding a piece of doc to make sure poeple use the rag-sequence-nq not splitted would be nice?
Hey! Not sure we will have time to dive into this, maybe adding a piece of doc to make sure poeple use the rag-sequence-nq not splitted would be nice?
Hello,
Actually the purpose of the consolidate_rag_checkpoint.py
script is to initialize finetuning with a base model using different question encoder and generator architectures.
In that case alternative solutions will be needed if I want to train RAG models on different generator other than BART or downstream question encoder instead of forcing to use rag-sequence-nq as a composite one.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
System Info
transformers
version: 4.41.2Who can help?
@ArthurZucker @younesbelkada @LysandreJik
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
Got accuracy of F1 score and EM score over 80 when I evaluate directly from rag-sequence-nq.
But, when I split the rag-sequence-nq model with bart-large and dpr-question_encoder-single-nq-base models separately and then consolidate the checkpoint for evaluation, then I'm getting score less than 5 for each metrics with same test set of questions.
It's pretty surprising as rag-sequence-nq also comprises of bart-large and dpr-question_encoder-single-nq-base but still lacks performance when loaded separately with the
consolidate_rag_checkpoint.py
script.Need attention to the
consolidate_rag_checkpoint.py
script while saving the models as safetensors.Unexpected Behaviors:
Example:
Q: In which year Nasif got Turing Prize ? A: Sakib Reza / Sakib, a 25-year-old BCS Cadre, was born and raised in Bangladesh, where he developed a deep love for cricket, a passion that remains integral to his life. Sakib