Skip to content

Commit

Permalink
add basic configs
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlatt committed Sep 5, 2024
1 parent b2ec167 commit 03070ce
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
trainer:
callbacks+:
- class_path: RankCallback
- class_path: ReRankCallback
init_args:
save_dir: ./runs
12 changes: 12 additions & 0 deletions configs/data/run-dataset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
data:
class_path: LightningIRDataModule
init_args:
num_workers: 1
inference_batch_size: 4
inference_datasets:
- class_path: RunDataset
init_args:
run_path_or_id: null
depth: 100
sample_size: 100
sampling_strategy: top
4 changes: 4 additions & 0 deletions configs/models/bi-encoder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
model:
class_path: BiEncoderModule
init_args:
model_name_or_path: null
19 changes: 19 additions & 0 deletions configs/models/colbert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
model:
class_path: BiEncoderModule
init_args:
model_name_or_path: ./tests/data/test_model
config:
class_path: ColConfig
init_args:
similarity_function: dot
query_aggregation_function: sum
query_expansion: true
query_length: 32
doc_length: 256
normalize: true
add_marker_tokens: true
embedding_dim: 128
linear_bias: false
loss_functions:
- class_path: RankNet

4 changes: 4 additions & 0 deletions configs/models/cross-encoder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
model:
class_path: CrossEncoderModule
init_args:
model_name_or_path: null

0 comments on commit 03070ce

Please sign in to comment.