lyhue1991/torchkeras

执行ds_train_raw.map(preprocess,batched=True, num_proc=4,remove_columns=ds_train_raw.column_names)时报NameError: name 'cfg' is not defined

Chalous opened this issue · 1 comments

在尝试使用torchkeras/examples
/ChatGLM2_AdaLoRA——transformers.ipynb的时候发现,当进行数据转换步骤的时候,ds_train_raw.map并不能识别之前定义的cfg变量,请问是需要做什么环境设置吗?我理解源码是不是可以单步执行调通的?非常感谢
image

最后解决了嘛,怎么解决的?