Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Separate max_seq_len for question and passages in DPR #593

@tholor

Description

@tholor

Is your feature request related to a problem or particular use case?
At the moment we have a single max_seq_len param that is applied to both text sequences (question and passage).

Describe the solution you'd like
As questions are usually way shorter so we should allow a separate param here.
This would save some compute during training as we have shorter sequences for the question encoder.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions