llm-scripts / scripts /decode /en-ja /llama2 /top_p_inference.sh
koichi12's picture
Add files using upload-large-folder tool
1d13cae verified
raw
history blame
697 Bytes
set -eux
LLM_RECIPES_DIR=/code/llm-recipes
source $LLM_RECIPES_DIR/scripts/wmt2024/tokens.sh
i=4
GPU_ID=4
python /code/llm-recipes/tools/hf_inference.py \
--model /work/models/translation_finetuned_hf/mistral-llm-recipes-en-ja-continuous-pretrained-v1-dev-finetune-chunked-docs-all-averaged-71-75 \
-i /work/wmt2024_test/LLM/split/en-ja/wmttest2024.src.sentence_splited.with_template.en-ja.en.jsonl.0${i} \
-o /work/translation/wmt24_test/en-ja/mistral-top-p-0.95/split_0${i} \
-g ${GPU_ID} \
-b 500 \
--attn_implementation sdpa \
--dynamic_max_new_token_ratio 3.0 \
--num_return_sequences 100 \
--do_sample \
--top_p 0.95 &