Add an entry in Pyserini's Passage Ranking Experiment Reproduction Log for ugrad onboarding #1599
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.
OS: macOS Ventura Version 13.5
Hardware: M2 MacBook Pro (2023), 16 GB RAM
Conda: 23.7.2
Python: (Conda Environment): 3.8.17
Java: (Conda Environment) 11.0.13
Maven: (Conda Environment) 3.9.4
Result: I was able to replicate (most of) the Indexing, Retrieval & Evaluation steps with Pyserini on my machine with the above settings. Outputs are the same as listed in the document.
Additional Comment: I encountered two (and only two) failed unit tests (from running “python -m unittest”) when following the “pyserini/docs/installation.md” file. Namely,
This seems to be caused by the TREC evaluation tool. When running the following command:
python -m pyserini.eval.trec_eval -c -mrecall.1000 -mmap
collections/msmarco-passage/qrels.dev.small.trec
runs/run.msmarco-passage.bm25tuned.trec
I got:
Running command: ['java', '-jar', '/Users/jasonzhang/.cache/pyserini/eval/jtreceval-0.0.5-jar-with-dependencies.jar', '-c', '-mrecall.1000', '-mmap', 'collections/msmarco-passage/qrels.dev.small.trec', 'runs/run.msmarco-passage.bm25tuned.trec']
Exception in thread "main" java.lang.UnsupportedOperationException: Unsupported os/arch: trec_eval-macosx-aarch64
at uk.ac.gla.terrier.jtreceval.trec_eval.getTrecEvalBinary(trec_eval.java:80)
at uk.ac.gla.terrier.jtreceval.trec_eval.(trec_eval.java:130)
at uk.ac.gla.terrier.jtreceval.trec_eval.main(trec_eval.java:262)
which seems to be Apple's M1/M2 chips related. There is surprisingly little information about this error on Google (it needs a better IR system!). As a side note, according to previous commits, it seems others have succeeded with M1 MacBooks (but no commit with M2).
On the other hand, the official MS MARCO evaluation script worked perfectly fine for me.
For the next step, I'm planning on replicating this experiment again with my old laptop (which has intel chips), but before that I thought I'd record this issue here as potential reference for future users.