Adios889 2022-02-16 11:44 采纳率: 0%
浏览 936

在transformers中output_dir怎么设置

跑通transformers时无法写入output_dir

在pytorch环境中运行的

the following arguments are required: --output_dir

在pycharm中用运行时插入参数的方法不行

会提示 Some specified arguments are not used by the HfArgumentParser: ['D:\transformers']



export GLUE_DIR=/path/to/glue
export TASK_NAME=MRPC

python ./examples/text-classification/run_glue.py \
    --model_name_or_path bert-base-uncased \
    --task_name $TASK_NAME \
    --do_train \
    --do_eval \
    --data_dir $GLUE_DIR/$TASK_NAME \
    --max_seq_length 128 \
    --per_device_eval_batch_size=8   \
    --per_device_train_batch_size=8   \
    --learning_rate 2e-5 \
    --num_train_epochs 3.0 \
    --output_dir /tmp/$TASK_NAME/D:\transformers

只想跑通transformers

  • 写回答

2条回答 默认 最新

  • 掀起波澜 2022-02-16 13:10
    关注

    猜想你跑的脚本使用了argparse类,argparse中定义了变量--output_dir
    你需要给output_dir赋值,具体的解决方案还是把脚本发一下吧。

    评论

报告相同问题?

问题事件

  • 修改了问题 2月16日
  • 创建了问题 2月16日

悬赏问题

  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容