-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial pull request for efficient splade (#16)
* release configs for efficient splade * update environment with efficient splade * fix overwrite final * Add readme for pisa indexes * force_new for inverted indexes
- Loading branch information
Showing
14 changed files
with
399 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,32 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## TRAIN ################################### | ||
- ../train/config: efficient_splade | ||
- ../train/data: distil_from_ensemble | ||
- ../train/model: separate_mixed_mlmflops | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
loss: KlDiv | ||
regularizer: | ||
FLOPS: | ||
lambda_d: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: FLOPS | ||
L1: | ||
lambda_q: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: L1 | ||
checkpoint_dir: models/efficient/VI/BT/large/checkpoint | ||
index_dir: models/efficient/VI/BT/large/index | ||
out_dir: models/efficient/VI/BT/large/out |
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 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## TRAIN ################################### | ||
- ../train/config: efficient_splade | ||
- ../train/data: distil_from_ensemble | ||
- ../train/model: separate_mixed_mlmflops | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
loss: KlDiv | ||
regularizer: | ||
FLOPS: | ||
lambda_d: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: FLOPS | ||
L1: | ||
lambda_q: 5e-3 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: L1 | ||
checkpoint_dir: models/efficient/VI/BT/medium/checkpoint | ||
index_dir: models/efficient/VI/BT/medium/index | ||
out_dir: models/efficient/VI/BT/medium/out |
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 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## TRAIN ################################### | ||
- ../train/config: efficient_splade | ||
- ../train/data: distil_from_ensemble | ||
- ../train/model: separate_mixed_mlmflops | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
loss: KlDiv | ||
regularizer: | ||
FLOPS: | ||
lambda_d: 5e-3 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: FLOPS | ||
L1: | ||
lambda_q: 5e-3 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: L1 | ||
checkpoint_dir: models/efficient/VI/BT/small/checkpoint | ||
index_dir: models/efficient/VI/BT/small/index | ||
out_dir: models/efficient/VI/BT/small/out |
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,26 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
checkpoint_dir: models/hf/V/large/checkpoint | ||
index_dir: models/hf/V/large/index | ||
out_dir: models/hf/V/large/out | ||
pretrained_no_yamlconfig: true | ||
tokenizer_type: naver/efficient-splade-V-large-doc | ||
index_batch_size: 500 | ||
eval_batch_size: 500 | ||
init_dict: | ||
model_type_or_dir: naver/efficient-splade-V-large-doc | ||
model_type_or_dir_q: naver/efficient-splade-V-large-query | ||
freeze_d_model: 0 | ||
agg: max | ||
fp16: true |
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 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## TRAIN ################################### | ||
- ../train/config: efficient_splade | ||
- ../train/data: distil_from_ensemble | ||
- ../train/model: separate_distilbert_mlmflops | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
loss: KlDiv | ||
regularizer: | ||
FLOPS: | ||
lambda_d: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: FLOPS | ||
L1: | ||
lambda_q: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: L1 | ||
checkpoint_dir: models/efficient/V/large/checkpoint | ||
index_dir: models/efficient/V/large/index | ||
out_dir: models/efficient/V/large/out |
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 @@ | ||
# @package _global_ | ||
|
||
# FILES | ||
defaults: # (these specify which config FILES to use) | ||
############## TRAIN ################################### | ||
- ../train/config: efficient_splade | ||
- ../train/data: distil_from_ensemble | ||
- ../train/model: separate_distilbert_mlmflops | ||
############## INDEX ################################### | ||
- ../index: msmarco | ||
############## RETRIEVE ################################ | ||
- ../retrieve_evaluate: all | ||
############### FLOPS ################################## | ||
- ../flops: msmarco | ||
|
||
# Direct PARAMETER setting | ||
config: | ||
loss: KlDiv | ||
regularizer: | ||
FLOPS: | ||
lambda_d: 5e-4 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: FLOPS | ||
L1: | ||
lambda_q: 5e-3 | ||
T: 50000 | ||
targeted_rep: rep | ||
reg: L1 | ||
checkpoint_dir: models/efficient/V/medium/checkpoint | ||
index_dir: models/efficient/V/medium/index | ||
out_dir: models/efficient/V/medium/out |
Oops, something went wrong.