ITFormer / scripts /run_inference.sh
a12354's picture
Add files using upload-large-folder tool
aabdb98 verified
Raw
History Blame Contribute Delete
445 Bytes
#!/bin/bash
# Inference script
# 使用指定的 checkpoint 进行推理
# 忽略 TRANSFORMERS_CACHE 废弃警告
export PYTHONWARNINGS="ignore::FutureWarning:transformers.utils.hub"
accelerate launch --config_file accelerate_config.yaml inference.py \
--config yaml/infer.yaml \
--model_checkpoint checkpoints/ITFormer-0.5B \
--output_dir inference_results \
--batch_size 12 \
--num_workers 4 \
--max_new_tokens 128