├── .env ├── .flake8 ├── .gitignore ├── .mplstyle ├── .pre-commit-config.yaml ├── .vscode └── settings.json ├── LAMA └── data │ └── relations.jsonl ├── LICENSE ├── README.md ├── analysis.ipynb ├── analysis_ft.ipynb ├── data ├── __init__.py ├── extract_abstracts.py ├── hashmap_to_used.py └── to_tf_record.py ├── ensemble.py ├── eval ├── __init__.py ├── evaluate.py ├── get_nns_bm25.py ├── reranker_post.py ├── reranker_pre.py └── reranker_single_checkpoint.py ├── pyproject.toml ├── requirements.txt ├── reranker.py ├── scripts ├── bm25_results.sh ├── ensemble.sh ├── reranker.sh ├── reranker_single_checkpoint.sh ├── reranker_single_checkpoint_pt.sh └── trex_convert.sh ├── setup.sh ├── src ├── __init__.py ├── hf_optimizer_load.py ├── json_utils.py ├── lama_utils.py ├── linalg_utils.py ├── metric_utils.py └── tf_utils.py └── stats.ipynb /.env: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/.flake8 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/.gitignore -------------------------------------------------------------------------------- /.mplstyle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/.mplstyle -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LAMA/data/relations.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/LAMA/data/relations.jsonl -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/README.md -------------------------------------------------------------------------------- /analysis.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/analysis.ipynb -------------------------------------------------------------------------------- /analysis_ft.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/analysis_ft.ipynb -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/extract_abstracts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/data/extract_abstracts.py -------------------------------------------------------------------------------- /data/hashmap_to_used.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/data/hashmap_to_used.py -------------------------------------------------------------------------------- /data/to_tf_record.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/data/to_tf_record.py -------------------------------------------------------------------------------- /ensemble.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/ensemble.py -------------------------------------------------------------------------------- /eval/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /eval/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/eval/evaluate.py -------------------------------------------------------------------------------- /eval/get_nns_bm25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/eval/get_nns_bm25.py -------------------------------------------------------------------------------- /eval/reranker_post.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/eval/reranker_post.py -------------------------------------------------------------------------------- /eval/reranker_pre.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/eval/reranker_pre.py -------------------------------------------------------------------------------- /eval/reranker_single_checkpoint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/eval/reranker_single_checkpoint.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/requirements.txt -------------------------------------------------------------------------------- /reranker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/reranker.py -------------------------------------------------------------------------------- /scripts/bm25_results.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/bm25_results.sh -------------------------------------------------------------------------------- /scripts/ensemble.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/ensemble.sh -------------------------------------------------------------------------------- /scripts/reranker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/reranker.sh -------------------------------------------------------------------------------- /scripts/reranker_single_checkpoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/reranker_single_checkpoint.sh -------------------------------------------------------------------------------- /scripts/reranker_single_checkpoint_pt.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/reranker_single_checkpoint_pt.sh -------------------------------------------------------------------------------- /scripts/trex_convert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/scripts/trex_convert.sh -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/setup.sh -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/hf_optimizer_load.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/hf_optimizer_load.py -------------------------------------------------------------------------------- /src/json_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/json_utils.py -------------------------------------------------------------------------------- /src/lama_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/lama_utils.py -------------------------------------------------------------------------------- /src/linalg_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/linalg_utils.py -------------------------------------------------------------------------------- /src/metric_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/metric_utils.py -------------------------------------------------------------------------------- /src/tf_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/src/tf_utils.py -------------------------------------------------------------------------------- /stats.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ekinakyurek/influence/HEAD/stats.ipynb --------------------------------------------------------------------------------