当前位置:网站首页>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
边栏推荐
- G 代码解释|最重要的 G 代码命令列表
- MCU firmware packaging Script Software
- Enterprise data center "cloud" transformation solution
- input限制输入
- Thrift easy to use
- Xlnet (generalized autorefressive trainingfor language understanding) paper notes
- Theme Studio
- Appium自动化测试基础 — 12.APPium自动化测试框架介绍
- [Ubuntu redis installation]
- What makes flutter special
猜你喜欢

NER – Named Entity Recognition Summary

G code explanation | list of the most important G code commands

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today

LVS load balancing

浏览器复制的网址粘贴到文档是超链接

Shell script multi loop experiment

Shell script functions

Pytorch graduate warm LR installation

GNN动手实践(二):复现图注意力网络GAT

Follow the wechat oauth2.0 access scheme
随机推荐
How can we have high performance and simple agility in the enterprise cloud on oracle?
Read the difference and connection between hyperfusion and private cloud
云技能提升好伙伴,亚马逊云师兄今天正式营业
Bloom filter
2021-07-26
【ARK UI】HarmonyOS ETS的启动页的实现
Theme Studio
Financial private cloud infrastructure scheme evaluation (Architecture and storage)
[new book recommendation] mongodb performance tuning
Theme Studio(主题工作室)
Network based BGP
Oracle cross database replication data table dblink
机械臂速成小指南(五):末端执行器
Eight sorts (I)
Shell script multi loop experiment
prometheus 监控之 ntp_exporter
JWT expiration processing - single token scheme
Stack Title: String decoding
UAV project tracking record 83 -- PCB diagram completion
CRF (conditional random field) learning summary