-
Notifications
You must be signed in to change notification settings - Fork 84
Reorder #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
XKTZ
wants to merge
60
commits into
castorini:main
Choose a base branch
from
XKTZ:reorder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Reorder #143
Changes from 52 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
60d5e7f
First step update - during create_prompt, use selected_index to subst…
XKTZ 74118c4
Allow selected index to be variable on each step
XKTZ 36bbcdc
Added basic _get_model_function - it is wrong now, we want to return …
XKTZ 6d2094a
Renamed indexes to indices, [indices] is renamed to indices_batch
XKTZ cc78522
Renamed ReorderExecutor to Reorder Policy
XKTZ 4936c8c
Moved LiT5Distill to policy
XKTZ 95f065a
Transition rank listwise os llm to using reorder policy
XKTZ 438c8bd
Added reorder policy for rank listwise os and fid score
XKTZ 2aa8644
Revised bug in OS LLM, add Rank GPT, deprecated old functions
XKTZ 7a19b87
Finish the tournament sort node
XKTZ c8734f0
Finish tournament sort
XKTZ 7981c06
Finish reorganize of parameters, move window_size to ListwiseRankLLM
XKTZ bbbdc31
Added window size back
XKTZ bb0ad2b
Fix Rerankers
XKTZ 62785bc
Merge pull request #4 from castorini/main
XKTZ 9b1972a
Merge branch 'reorder' into main
XKTZ 06b9f1f
Merge pull request #5 from XKTZ/main
XKTZ 28e3a23
Added r parameter
XKTZ 0e9edce
Some bug fix
XKTZ 3005455
Reformatted
XKTZ 3795308
Added top down
XKTZ edd1ff9
Merge pull request #6 from castorini/main
XKTZ 89bab7c
Merge pull request #7 from XKTZ/main
XKTZ 65d3508
Added final some stuff
XKTZ 69e3d65
Updated readme
XKTZ 8f4f729
Clean the README
XKTZ cc22c95
Changed filename
XKTZ 26beeed
Updated silence
XKTZ 36beed1
Fixed bug when batch size > 32, which is in rank_listwise_os_llm's cr…
XKTZ 406fca7
Updated for removing use_tqdm=False
XKTZ 9e7f846
Update parallel for topdown
XKTZ 329d6eb
Reformat
XKTZ 4f561e8
Added vllm_chunked_prefill
XKTZ 8470d3d
Updated README
XKTZ 9caa5fb
Put back step size for maintaining backward compatibility
XKTZ d7ecc8b
Support early stop in topdown
XKTZ 891ca8f
Reformat
XKTZ db3a509
temp .gitignore
XKTZ 743b5af
Add parameter include padding,
XKTZ cca845e
Merge remote-tracking branch 'origin/main' into reorder
XKTZ 66c8742
Format
XKTZ acf8012
Add more fix
XKTZ f595054
Fix bug
XKTZ 94a5aa5
Merge remote-tracking branch 'rankllm/main' into reorder
XKTZ 8d0ea17
update
XKTZ ba2c3ef
Merge remote-tracking branch 'rankllm/main' into reorder
XKTZ ca0a1f0
Fix TensorRT
XKTZ 2efdbd5
Fix gitignore
XKTZ dc9fdbf
Fix import
XKTZ 4669a3f
Added Readme
XKTZ 2a38464
MonoT5 type def
XKTZ 75c4a74
Let RankFID able to fit the type def
XKTZ 0b0426d
Remove Tournament sort method with ListT5
XKTZ fbb163c
Merge remote-tracking branch 'rankllm/main' into reorder
XKTZ e5842a2
Add a comment
XKTZ 70f3914
lint
XKTZ 4944927
Update rankfid
XKTZ 0d5c5e7
Add some comments
XKTZ 8b0f963
Merge branch 'reorder' of github.com:XKTZ/rank_llm into reorder
XKTZ 1115247
Updated
XKTZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -170,4 +170,4 @@ token_counts/ | |
| retrieve_results/ | ||
| ranking_execution_summary/ | ||
| repro/ | ||
| demo_outputs/ | ||
| demo_outputs/ | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -147,6 +147,18 @@ Omit `--use_logits` if you wish to perform traditional listwise reranking. | |
|
|
||
| If you would like to contribute to the project, please refer to the [contribution guidelines](CONTRIBUTING.md). | ||
|
|
||
| ### Run end to end - Rank Zephyr with [Tournament Sort](https://arxiv.org/abs/2402.15838) (`top_k = 10, r = 1`) | ||
|
|
||
| * Other LLM reranker method, like | ||
|
|
||
| ``` | ||
| python src/rank_llm/scripts/run_rank_llm.py --model_path=castorini/rank_zephyr_7b_v1_full --top_k_candidates=100 --dataset=dl20 \ | ||
| --retrieval_method=SPLADE++_EnsembleDistil_ONNX --prompt_mode=rank_GPT --context_size=4096 --variable_passages \ | ||
| --reorder_policy="tournament_sort:{top_k: 10, r: 1}" | ||
| ``` | ||
|
|
||
| ### Run end to end - Rank Zephyr with [Top Down](https://) | ||
|
|
||
| ## 🦙🐧 Model Zoo | ||
|
|
||
| The following is a table of the listwise models our repository was primarily built to handle (with the models hosted on HuggingFace): | ||
|
|
@@ -283,6 +295,34 @@ If you would like to cite the FIRST methodology, please consider citing: | |
| } | ||
| ``` | ||
|
|
||
| If you woud like to cite the ListT5's tournament sort methodology, please consider citing | ||
|
||
|
|
||
| [[2402.15838] ListT5: Listwise Reranking with Fusion-in-Decoder Improves Zero-shot Retrieval](https://arxiv.org/abs/2405.14589) | ||
|
|
||
| ``` | ||
| @ARTICLE{yoon2024listt5, | ||
| title = {Listt5: Listwise reranking with fusion-in-decoder improves zero-shot retrieval}, | ||
| author = {Yoon, Soyoung and Choi, Eunbi and Kim, Jiyeon and Yun, Hyeongu and Kim, Yireun and Hwang, Seung-won}, | ||
| journal = {arXiv preprint arXiv:2402.15838}, | ||
| year={2024} | ||
| journal = {arXiv:2402.15838} | ||
| } | ||
| ``` | ||
|
|
||
| If you would like to cite the Top Down Paritioning methodology, please consider citing | ||
|
|
||
| [[2405.14589] Top-Down Partitioning for Efficient List-Wise Ranking](https://arxiv.org/abs/2405.14589) | ||
|
|
||
| ``` | ||
| @ARTICLE{parry2024top, | ||
| title = {Top-Down Partitioning for Efficient List-Wise Ranking}, | ||
| author = {Parry, Andrew and MacAvaney, Sean and Ganguly, Debasis}, | ||
| journal = {arXiv preprint arXiv:2405.14589}, | ||
| year = {2024} | ||
| journal = {arXiv:2405.14589} | ||
| } | ||
| ``` | ||
|
|
||
|
Comment on lines
206
to
311
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove |
||
| ## 🙏 Acknowledgments | ||
|
|
||
| This research is supported in part by the Natural Sciences and Engineering Research Council (NSERC) of Canada. | ||
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@XKTZ what is this?