├── CSR.html ├── README.md ├── assets ├── -twitter-blue.svg ├── Paper-Arxiv-orange.svg ├── UNC-Logo.png ├── University-of-Maryland-Logo.png ├── csr_llava.png ├── framework.png ├── test.md └── uchi_logo.png ├── inference_csr ├── construct.py ├── data │ ├── CSR-Prompt-Dataset-12k.json │ └── model_mapping │ │ ├── key_mapping_hf_13b.json │ │ └── key_mapping_hf_7b.json ├── sample.py ├── score.py ├── step1.sh ├── step2.sh ├── step3.sh └── utils.py ├── scripts └── run_train.sh └── train_csr ├── dpo_trainer.py └── train_dpo_lora.py /CSR.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/CSR.html -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/README.md -------------------------------------------------------------------------------- /assets/-twitter-blue.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/-twitter-blue.svg -------------------------------------------------------------------------------- /assets/Paper-Arxiv-orange.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/Paper-Arxiv-orange.svg -------------------------------------------------------------------------------- /assets/UNC-Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/UNC-Logo.png -------------------------------------------------------------------------------- /assets/University-of-Maryland-Logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/University-of-Maryland-Logo.png -------------------------------------------------------------------------------- /assets/csr_llava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/csr_llava.png -------------------------------------------------------------------------------- /assets/framework.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/framework.png -------------------------------------------------------------------------------- /assets/test.md: -------------------------------------------------------------------------------- 1 | xx 2 | -------------------------------------------------------------------------------- /assets/uchi_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/assets/uchi_logo.png -------------------------------------------------------------------------------- /inference_csr/construct.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/construct.py -------------------------------------------------------------------------------- /inference_csr/data/CSR-Prompt-Dataset-12k.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/data/CSR-Prompt-Dataset-12k.json -------------------------------------------------------------------------------- /inference_csr/data/model_mapping/key_mapping_hf_13b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/data/model_mapping/key_mapping_hf_13b.json -------------------------------------------------------------------------------- /inference_csr/data/model_mapping/key_mapping_hf_7b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/data/model_mapping/key_mapping_hf_7b.json -------------------------------------------------------------------------------- /inference_csr/sample.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/sample.py -------------------------------------------------------------------------------- /inference_csr/score.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/score.py -------------------------------------------------------------------------------- /inference_csr/step1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/step1.sh -------------------------------------------------------------------------------- /inference_csr/step2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/step2.sh -------------------------------------------------------------------------------- /inference_csr/step3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/step3.sh -------------------------------------------------------------------------------- /inference_csr/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/inference_csr/utils.py -------------------------------------------------------------------------------- /scripts/run_train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/scripts/run_train.sh -------------------------------------------------------------------------------- /train_csr/dpo_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/train_csr/dpo_trainer.py -------------------------------------------------------------------------------- /train_csr/train_dpo_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YiyangZhou/CSR/HEAD/train_csr/train_dpo_lora.py --------------------------------------------------------------------------------