Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
xiongjx dbdf37bcb8 | 1 year ago | |
---|---|---|
.idea | 1 year ago | |
data | 1 year ago | |
inference_310 | 1 year ago | |
scripts | 1 year ago | |
src | 1 year ago | |
README.md | 1 year ago | |
eval.py | 1 year ago | |
export.py | 1 year ago | |
main.py | 1 year ago | |
postprocess.py | 1 year ago | |
preprocess.py | 1 year ago | |
pytorch_cktp_2_mindspore.py | 1 year ago | |
train.py | 1 year ago |
实验使用的数据集为 wmt16-en-ro 的数据集,使用以下命令下载数据。
git clone https://github.com/rsennrich/wmt16-scripts
cd wmt16-scripts
cd sample
./download_files.sh
./preprocess.sh
英文语料为 ./wmt16-scripts/sample/data/newsdev2016.en
罗马尼亚语语料为 ./wmt16-scripts/sample/data/newsdev2016.ro
调用 train.py 脚本
传入参数:
例如:
python3 -u train.py \
--is_model_arts false \
--data_dir ./data/en_ro \
--vocab_path ../spm.model \
--ckpt_path ../model.ckpt \
--result_dir ./result \
--device_target Ascend \
--device_id 0
调用 eval.py 脚本
传入参数:
例如:
python3 -u eval.py \
--is_model_arts false \
--data_dir ./data/en_ro \
--vocab_path ../spm.model \
--ckpt_path ../model.ckpt \
--result_dir ./result \
--device_target Ascend \
--device_id 0
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》