-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note: This commit requires an update to the environment and may break existing code.
- Loading branch information
Showing
82 changed files
with
4,966 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @package _global_ | ||
datamodule: | ||
_target_: dpr_scale.datamodule.citadel.DenseRetrieverQueriesDataModule | ||
test_batch_size: 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @package _global_ | ||
datamodule: | ||
_target_: dpr_scale.datamodule.dpr.DenseRetrieverQueriesDataModule | ||
test_batch_size: 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
defaults: | ||
- config | ||
- override trainer: slurm_aws | ||
- override task/optim: adamw | ||
|
||
task: | ||
shared_model: false | ||
in_batch_eval: false | ||
optim: | ||
lr: 3e-5 | ||
warmup_steps: 10000 | ||
|
||
datamodule: | ||
_target_: dpr_scale.datamodule.dpr.DenseRetrieverMultiJsonlDataModule | ||
corpus_path: /fsx/s269lin/data/msmarco/msmarco-passage/corpus/collection.tsv | ||
train_path: [/fsx/s269lin/data/msmarco/msmarco-passage/train/uniCOIL.sentence.train.jsonl,/fsx/s269lin/data/msmarco/msmarco-passage/train/uniCOIL.doct5query.train.jsonl] | ||
val_path: /fsx/s269lin/data/msmarco/msmarco-passage/train/dev.jsonl | ||
test_path: /fsx/s269lin/data/msmarco/msmarco-passage/train/dev.jsonl | ||
batch_size: 64 | ||
num_negative: 1 | ||
pos_ctx_sample: true | ||
num_val_negative: 10 | ||
num_test_negative: 50 | ||
drop_last: false | ||
use_title: false | ||
|
||
trainer: | ||
gpus: 8 | ||
num_nodes: 4 | ||
max_epochs: 20 | ||
num_sanity_val_steps: 0 | ||
log_every_n_steps: 10 | ||
gradient_clip_val: 2.0 | ||
precision: 16 | ||
strategy: ddp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
defaults: | ||
- config | ||
- override trainer: slurm_aws | ||
- override task/optim: adamw | ||
|
||
task: | ||
shared_model: false | ||
in_batch_eval: false | ||
optim: | ||
lr: 2e-5 | ||
warmup_steps: 3000 | ||
|
||
datamodule: | ||
train_path: /fsx/mhli/msmarco_passage/msmarco_exp_train.jsonl | ||
val_path: /fsx/mhli/msmarco_passage/msmarco_exp_dev.jsonl | ||
test_path: /fsx/mhli/msmarco_passage/msmarco_exp_dev.jsonl | ||
batch_size: 16 | ||
num_negative: 1 | ||
num_val_negative: 1 | ||
num_test_negative: 50 | ||
drop_last: false | ||
use_title: true | ||
|
||
trainer: | ||
gpus: 8 | ||
num_nodes: 1 | ||
max_epochs: 20 | ||
num_sanity_val_steps: 0 | ||
log_every_n_steps: 10 | ||
gradient_clip_val: 2.0 | ||
precision: 16 | ||
strategy: ddp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
defaults: | ||
- config | ||
- override trainer: gpu_1_host | ||
- override task/optim: adamw | ||
|
||
task: | ||
shared_model: false | ||
in_batch_eval: false | ||
optim: | ||
lr: 3e-5 | ||
warmup_steps: 10000 | ||
|
||
datamodule: | ||
_target_: dpr_scale.datamodule.dpr.DenseRetrieverMultiJsonlDataModule | ||
corpus_path: /fsx/s269lin/data/msmarco/msmarco-passage/corpus/collection.tsv | ||
train_path: [/fsx/s269lin/data/msmarco/msmarco-passage/train/official_train.jsonl] | ||
val_path: /fsx/s269lin/data/msmarco/msmarco-passage/train/dev.jsonl | ||
test_path: /fsx/s269lin/data/msmarco/msmarco-passage/train/dev.jsonl | ||
batch_size: 8 | ||
num_negative: 7 | ||
pos_ctx_sample: true | ||
num_val_negative: 10 | ||
num_test_negative: 50 | ||
drop_last: false | ||
use_title: false | ||
|
||
trainer: | ||
gpus: 1 | ||
num_nodes: 1 | ||
max_epochs: 3 | ||
num_sanity_val_steps: 0 | ||
log_every_n_steps: 10 | ||
gradient_clip_val: 2.0 | ||
precision: 16 | ||
strategy: ddp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
defaults: | ||
- config | ||
- override trainer: slurm_aws | ||
|
||
task: | ||
shared_model: false | ||
in_batch_eval: false | ||
optim: | ||
lr: 2e-5 | ||
warmup_steps: 1237 | ||
|
||
datamodule: | ||
train_path: /fsx/xilun/dpr_data/retriever/nq-train.jsonl | ||
val_path: /fsx/xilun/dpr_data/retriever/nq-dev.jsonl | ||
test_path: /fsx/xilun/dpr_data/retriever/nq-dev.jsonl | ||
batch_size: 16 | ||
num_negative: 1 | ||
num_val_negative: 1 | ||
num_test_negative: 50 | ||
drop_last: false | ||
use_title: true | ||
|
||
trainer: | ||
gpus: 8 | ||
num_nodes: 1 | ||
max_epochs: 40 | ||
num_sanity_val_steps: 0 | ||
log_every_n_steps: 10 | ||
gradient_clip_val: 2.0 | ||
precision: 16 | ||
strategy: ddp_sharded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,4 @@ trainer: | |
log_every_n_steps: 10 | ||
gradient_clip_val: 2.0 | ||
precision: 16 | ||
plugins: ddp_sharded | ||
strategy: ddp_sharded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.task.cross_encoder_eval_task.RerankCrossEncoderTask | ||
shared_model: false | ||
in_batch_eval: false | ||
# Temporary till we reformat LightningModule | ||
datamodule: null | ||
warmup_steps: null | ||
pretrained_checkpoint_path: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.task.dpr_rerank_task.RerankDenseRetrieverTask | ||
shared_model: false | ||
in_batch_eval: false | ||
# Temporary till we reformat LightningModule | ||
datamodule: null | ||
warmup_steps: null | ||
pretrained_checkpoint_path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.models.citadel_models.citadel_model.CITADELEncoder | ||
model_path: bert-base-uncased | ||
cls_projection_dim: 128 | ||
tok_projection_dim: 32 | ||
dropout: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.models.citadel_models.coil_model.COILEncoder | ||
model_path: bert-base-uncased | ||
projection_dim: 128 | ||
cls_projection_dim: 128 | ||
dropout: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.models.citadel_models.colbert_model.ColBERTEncoder | ||
model_path: bert-base-uncased | ||
projection_dim: 128 | ||
dropout: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.models.citadel_models.cross_encoder.CrossEncoder | ||
model_path: /fsx/mhli/pre-trained/ms-marco-MiniLM-L-6-v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.models.citadel_models.splade_model.SPLADEEncoder | ||
model_path: bert-base-uncased | ||
dropout: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.task.citadel_task.MultiVecRetrieverTask | ||
shared_model: false | ||
in_batch_eval: false | ||
# Temporary till we reformat LightningModule | ||
datamodule: null | ||
warmup_steps: null | ||
pretrained_checkpoint_path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.task.citadel_eval_task.RerankMultiVecRetrieverTask | ||
shared_model: false | ||
in_batch_eval: false | ||
# Temporary till we reformat LightningModule | ||
datamodule: null | ||
warmup_steps: null | ||
pretrained_checkpoint_path: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# @package _group_ | ||
_target_: dpr_scale.task.citadel_retrieval_task.CITADELRetrievalTask | ||
shared_model: false | ||
in_batch_eval: false | ||
# Temporary till we reformat LightningModule | ||
datamodule: null | ||
warmup_steps: null | ||
pretrained_checkpoint_path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.