当前位置:网站首页>train_de.py: error: argument --save_steps: invalid int value: ‘$[$[889580/128/4]*10/2]‘
train_de.py: error: argument --save_steps: invalid int value: ‘$[$[889580/128/4]*10/2]‘
2022-06-30 09:36:00 【农民小飞侠】
最近使用RocketQA的DuReaderretrieval Baseline System时候碰见了下面的问题:
[--do_train DO_TRAIN] [--do_val DO_VAL] [--do_test DO_TEST]
[--output_item OUTPUT_ITEM]
[--output_file_name OUTPUT_FILE_NAME]
[--test_data_cnt TEST_DATA_CNT]
[--use_multi_gpu_test USE_MULTI_GPU_TEST]
[--metrics METRICS] [--shuffle SHUFFLE] [--for_cn FOR_CN]
train_de.py: error: argument --save_steps: invalid int value: '$[$[889580/128/4]*10/2]'
grep: warning: GREP_OPTIONS is deprecated; please use an alias or script
我的环境是ubuntu的docker,而给的baseline是centos,我觉得是这个原因,导致bash文件的一些语法失效的
解决方法
把run_dual_encoder_train.sh的文件修改一下即可:
lr=3e-5
batch_size=128
train_exampls=`cat $TRAIN_SET | wc -l`
save_steps=$((train_exampls/batch_size/node))
data_size=$[$save_steps*$batch_size*$node]
# new_save_steps=$[$save_steps\*$epoch/2]
new_save_steps=$((save_steps*epoch/2))
参考文献
[1].Bash multiplication and addition.https://unix.stackexchange.com/questions/299321/bash-multiplication-and-addition
边栏推荐
- Redis docker master-slave mode and sentinel
- Flume learning II - Cases
- [new book recommendation] cleaning data for effective data science
- qmlplugindump executable not found. It is required to generate the qmltypes file for VTK Qml
- ABAP-时间函数
- Enterprise data center "cloud" transformation solution
- prometheus 监控之 ntp_exporter
- MIT-6874-Deep Learning in the Life Sciences Week4
- utils 协程
- Datatabletomodellist entity class
猜你喜欢

How does the diode work?

Enterprise data center "cloud" transformation solution

7.手机登陆功能开发

Shell script functions

Oracle cross database replication data table dblink

Forrester senior analyst: five important trends in the development of the hyper convergence market

Rider打开Unity脚本后没有提示

【JVM】G1垃圾回收器简述

安装和使用

Techtarget: Interpretation of the basic concept of super fusion cloud
随机推荐
JUL简介
近期学习遇到的比较问题
机械臂速成小指南(四):机械臂关键部件之减速机
事件委托的使用与说明》
Flutter 中的 ValueNotifier 和 ValueListenableBuilder
1, 基本配置
Thrift easy to use
About the split and join operations of strings
input限制输入
Hospital integration platform super fusion infrastructure transformation scheme
Galaxy Kirin server-v10 configuration image source
GPT (improving language understanding generative pre training) paper notes
Utils collaboration
Redis docker master-slave mode and sentinel
utils session&rpc
【ARK UI】HarmonyOS ETS的启动页的实现
Is the jar package for the project or the project for the jar package
[Ubuntu redis installation]
Redis docker 主从模式与哨兵sentinel
What makes flutter special