GithubHelp home page GithubHelp logo

在特定领域上微调运行脚本报错:finetune.py: error: the following arguments are required: --output_dir about deepke HOT 6 CLOSED

snow-like-kk avatar snow-like-kk commented on June 16, 2024
在特定领域上微调运行脚本报错:finetune.py: error: the following arguments are required: --output_dir

from deepke.

Comments (6)

guihonghao avatar guihonghao commented on June 16, 2024

你好,注意到脚本中已给出output_dir参数。但是,命令行调用需要在每行的末尾增加 \ 符号,例如:

output_dir='lora/oneke_continue'
mkdir -p ${output_dir}
echo "Output directory is set to: ${output_dir}"
CUDA_VISIBLE_DEVICES="0,1,2,3" torchrun --nproc_per_node=4 --master_port=1287 src/finetune.py \
--output_dir=${output_dir} \
--do_train --do_eval \
--overwrite_output_dir \
--model_name_or_path '/home/xubo/xcx/NER/OneKE' \
...

from deepke.

snow-like-kk avatar snow-like-kk commented on June 16, 2024

你好,注意到脚本中已给出output_dir参数。但是,命令行调用需要在每行的末尾增加 \ 符号,例如:

output_dir='lora/oneke_continue'
mkdir -p ${output_dir}
echo "Output directory is set to: ${output_dir}"
CUDA_VISIBLE_DEVICES="0,1,2,3" torchrun --nproc_per_node=4 --master_port=1287 src/finetune.py \
--output_dir=${output_dir} \
--do_train --do_eval \
--overwrite_output_dir \
--model_name_or_path '/home/xubo/xcx/NER/OneKE' \
...

image
有写 \ 符号的,具体报错如下:
image

from deepke.

guihonghao avatar guihonghao commented on June 16, 2024

image
参考之前的issue,可能是多余空格问题导致的问题。

from deepke.

snow-like-kk avatar snow-like-kk commented on June 16, 2024

没有修改过原本的格式,仍然不行

from deepke.

guihonghao avatar guihonghao commented on June 16, 2024
image 有两个重复的参数,或许可以删去一个

from deepke.

zxlzr avatar zxlzr commented on June 16, 2024

请问您的问题解决了吗

from deepke.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.