INNER CODE UNIT · Python
default
UKPLab/gpl · gpl/train.py:375
default=-1,
help="Number of Queries Per Passage (QPP) in the query generation step. When set to -1 (by default), the QPP will be chosen automatically: If QPP * |corpus| <= 250K, then QPP will be set to 250K / |corpus|; else QPP will be set 3 and |corpus| will be set to 250K / 3",
)
parser.add_argument(
"--gpl_steps", type=int, default=140000, help="Training steps for GPL."
)
parser.add_argument(
"--use_amp",
action="store_true",
default=False,
help="Whether to use half precision",
)
parser.add_argument(
"--retrievers",
nargs="+",
default=["msmarco-distilbert-base-v3", "msmarco-MiniLM-L-6-v3"],
help='Indicate retriever names for mining negatives. They could be one or many BM25 ("bm25") or dense retrievers (in SBERT format).',
)