LESS
[ICML 2024] LESS: Selecting Influential Data for Targeted Instruction Tuning
File Explorer
Download Latest Version (.zip)- run_eval.py
- run_leaderboard.py
- run_eval.py
- data.py
- evaluation.py
- execution.py
- run_eval.py
- examplars.py
- run_eval.py
- categories.py
- run_eval.py
- run_eval.py
- configs.py
- metrics.py
- presets.py
- run_eval.py
- utilities.py
- get_valid_data.py
- run_eval.py
- dispatch_openai_requests.py
- predict.py
- templates.py
- utils.py
- eval.sh
- eval_bbh.sh
- eval_gsm8k.sh
- eval_mmlu.sh
- eval_truthfulqa.sh
- eval_tydiqa.sh
- README.md
- llama-2-13b-hf_loss.pdf
- llama-2-13b-hf_loss_acc.pdf
- llama-2-7b-hf_loss.pdf
- llama-2-7b-hf_loss_acc.pdf
- loss.ipynb
- mistral-7b_loss.pdf
- mistral-7b_loss_acc.pdf
- collect_grad_reps.py
- get_info.py
- get_test_dataset.py
- get_training_dataset.py
- get_validation_dataset.py
- matching.py
- write_selected_data.py
- analysis.sh
- matching.sh
- get_eval_lora_grads.sh
- get_train_lora_grads.sh
- get_eval_lora_loss.sh
- get_eval_pretrain_loss.sh
- get_loss.sh
- get_eval_lora_reps.sh
- base_training_args.sh
- lora_train.sh
- warmup_lora_train.sh
- data_arguments.py
- model_arguments.py
- train.py
- training_arguments.py
- .gitignore
- calculate_loss.cpython-310.pyc
- analysis.ipynb
- calculate_eval_grad.sh
- calculate_loss.py
- calculate_loss.sh
- calculate_train_grad.sh
- calculate_train_grad_fixadam.sh
- save_eval_dataloader.cpython-310.pyc
- save_eval_dataloader.py
- matching.sh
- LICENSE
- README.md
- requirement.txt
- setup.py
π Installation Guide
1. Get the code
git clone https://github.com/princeton-nlp/LESS
Downloads the entire project code from GitHub to your computer.
cd LESS
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip3 install torch==2.1.2 torchvision torchaudio
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Python
EasyPrerequisites
pip3 install torch==2.1.2 torchvision torchaudio
Installs the package published on PyPI directly β no need to clone the source.
pip install -r requirement.txt
Installs the Python libraries listed in requirements.txt (or similar).
pip install -e .
Installs the Python libraries listed in requirements.txt (or similar).
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
