The LoRA version of ParroT-Hint-7b based on llama-7b.
Inference based on the LoRA weights looks as below. You may refer to the GitHub project for more details.
# Translation
python3 inference_lora.py --model-name-or-path <your_proj_path>/llama-7b \
--lora-weights <your_proj_path>/ParroT-Hint-7b-lora/adapter_model \
-lp 'zh-en' \
-t 0.1 \
-sa 'beam' \
-ins test/instruct_inf.txt \
-i test/test_rand_50.zh.txt \
-o test/test_rand_50.zh-en.none-hint.txt
# Text generation
python3 inference_lora.py --model-name-or-path <your_proj_path>/llama-7b \
--lora-weights <your_proj_path>/ParroT-Hint-7b-lora/adapter_model \
-t 0.7 \
-sa 'sample' \
-i test/test_case.txt \
-o test/test_case.general-task.txt
The following hyperparameters were used during training:
7 commits
The LoRA version of ParroT-Hint-7b based on llama-7b.
Inference based on the LoRA weights looks as below. You may refer to the GitHub project for more details.
# Translation
python3 inference_lora.py --model-name-or-path <your_proj_path>/llama-7b \
--lora-weights <your_proj_path>/ParroT-Hint-7b-lora/adapter_model \
-lp 'zh-en' \
-t 0.1 \
-sa 'beam' \
-ins test/instruct_inf.txt \
-i test/test_rand_50.zh.txt \
-o test/test_rand_50.zh-en.none-hint.txt
# Text generation
python3 inference_lora.py --model-name-or-path <your_proj_path>/llama-7b \
--lora-weights <your_proj_path>/ParroT-Hint-7b-lora/adapter_model \
-t 0.7 \
-sa 'sample' \
-i test/test_case.txt \
-o test/test_case.general-task.txt
The following hyperparameters were used during training:
7 commits