-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,在微调fine-tuning/run_classifier.py在运行时报错run_classifier.py: error: unrecognized arguments: --vocab_path models/encryptd_vocab.txt,我查了run_classifier.py并没有看到vocab_path参数的定义,请问怎么解决?谢谢 #100
Comments
你好,根据你反馈的错误,应该是参数识别错误,你可以试试以下命令:
相关使用命令参数可以参考说明using-et-bert。 |
我clone的是最新的代码,目前暂时没有看到除了main以外的其他分支了 |
由于我们目前没有空闲的资源进行uer代码的验证,所以已经回退uer的旧版本,你可以使用已更新的相应仓库内容进行替换。后续我们将在更新新版uer时进行测试并更新其余相关文件与代码。 |
感谢!我重新clone,已经没有之前的报错了。 |
好的,已修正。 |
您好,微调的时候发现了新的问题 由于我只有2块GPU,所以我对应修改了fine-tuning/run_classifier.py: 只是进度一直是0,请教可能是什么原因?微调数据集是https://drive.google.com/drive/folders/1KlZatGoNm-4qu04z0LfrTpZr2oDaHfzr |
可以试试在脚本里添加 |
你好请问,我clone的是最新的代码,但是还是报这个错误ModuleNotFoundError: No module named 'uer',怎么调整一下? |
应该需要把本项目涉及的uer项目加到python解释器的path中 |
你好,请问你重新clone的是哪个版本?我clone当前最新版本后微调时仍然遇到uer相关的报错。 |
python3 fine-tuning/run_classifier.py --pretrained_model_path models/pre-trained_model.bin
--vocab_path models/encryptd_vocab.txt
--train_path datasets/fine-tuning_dataset/cstnet-tls1.3/packet/train_dataset.tsv
--dev_path datasets/fine-tuning_dataset/cstnet-tls1.3/packet/valid_dataset.tsv
--test_path datasets/fine-tuning_dataset/cstnet-tls1.3/packet/test_dataset.tsv
--epochs_num 10 --batch_size 32 --embedding word pos seg
--encoder transformer --mask fully_visible
--seq_length 128 --learning_rate 2e-5
usage: run_classifier.py [-h] [--pretrained_model_path PRETRAINED_MODEL_PATH] [--output_model_path OUTPUT_MODEL_PATH] --train_path TRAIN_PATH --dev_path DEV_PATH [--test_path TEST_PATH]
[--config_path CONFIG_PATH] [--embedding {word,pos,seg,sinusoidalpos,dual} [{word,pos,seg,sinusoidalpos,dual} ...]]
[--tgt_embedding {word,pos,seg,sinusoidalpos,dual} [{word,pos,seg,sinusoidalpos,dual} ...]] [--max_seq_length MAX_SEQ_LENGTH] [--relative_position_embedding] [--share_embedding]
[--remove_embedding_layernorm] [--factorized_embedding_parameterization] [--encoder {transformer,rnn,lstm,gru,birnn,bilstm,bigru,gatedcnn,dual}] [--decoder {None,transformer}]
[--mask {fully_visible,causal,causal_with_prefix}] [--layernorm_positioning {pre,post}] [--feed_forward {dense,gated}] [--relative_attention_buckets_num RELATIVE_ATTENTION_BUCKETS_NUM]
[--remove_attention_scale] [--remove_transformer_bias] [--layernorm {normal,t5}] [--bidirectional] [--parameter_sharing] [--has_residual_attention] [--has_lmtarget_bias]
[--target {sp,lm,mlm,bilm,cls} [{sp,lm,mlm,bilm,cls} ...]] [--tie_weights] [--pooling {mean,max,first,last}] [--prefix_lm_loss] [--learning_rate LEARNING_RATE] [--warmup WARMUP]
[--lr_decay LR_DECAY] [--optimizer {adamw,adafactor}] [--scheduler {linear,cosine,cosine_with_restarts,polynomial,constant,constant_with_warmup,inverse_sqrt,tri_stage}]
[--batch_size BATCH_SIZE] [--seq_length SEQ_LENGTH] [--dropout DROPOUT] [--epochs_num EPOCHS_NUM] [--report_steps REPORT_STEPS] [--seed SEED] [--log_path LOG_PATH]
[--log_level {ERROR,INFO,DEBUG,NOTSET}] [--log_file_level {ERROR,INFO,DEBUG,NOTSET}] [--pooling-type {mean,max,first,last}] [--tokenizer {bert,char,space}] [--soft_targets]
[--soft_alpha SOFT_ALPHA]
run_classifier.py: error: unrecognized arguments: --vocab_path models/encryptd_vocab.txt
The text was updated successfully, but these errors were encountered: