huggingface-transformers - 拥抱脸变压器 run_clm.py 提前停止
问题描述
我正在运行 run_clm.py 以微调 gpt-2 形式的拥抱脸库,遵循 language_modeling 示例:
!python run_clm.py \
--model_name_or_path gpt2 \
--train_file train.txt \
--validation_file test.txt \
--do_train \
--do_eval \
--output_dir /tmp/test-clm
这是输出,进程似乎已启动,但^C似乎停止了进程:
The following columns in the training set don't have a corresponding argument in `GPT2LMHeadModel.forward` and have been ignored: .
The following columns in the evaluation set don't have a corresponding argument in `GPT2LMHeadModel.forward` and have been ignored: .
***** Running training *****
Num examples = 2318
Num Epochs = 3
Instantaneous batch size per device = 8
Total train batch size (w. parallel, distributed & accumulation) = 8
Gradient Accumulation steps = 1
Total optimization steps = 870
0% 0/870 [00:00<?, ?it/s]^C
这是我的环境信息:
- 变形金刚版本:3.4.0
- 平台:Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
- Python版本:3.6.9
- 张量流版本:1.14
- 在脚本中使用 GPU?:是
提前停止的可能触发因素是什么?
解决方案
推荐阅读
- r - 在 kable 单元格中添加箭头或图形?
- asp-classic - 经典 ASP 的 FPDF 扩展 writetag.ext
- javascript - 使用 for 循环从数组中删除对象而不影响数组的其余部分
- bash - 在 bash 脚本中使用 osascript 提示时增加超时
- javascript - 比较不同的表格并清除匹配的单元格
- swift - UIHostingController 抛出
- c# - 编辑模式下 ASP.NET (C#) 中的 DetailView 使用下拉列表将主键推送到数据库
- stringr - str_detect 用于多种模式
- php - Apache 显示替代域的默认页面
- python - 继承一个非抽象类并将其所有函数转换为抽象方法