lyhue1991 / torchkeras

Pytorch❤️ Keras 😋😋
Apache License 2.0
1.72k stars 224 forks source link

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

Open Chalous opened 12 months ago

Chalous commented 12 months ago

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

Dopamine-mania commented 2 months ago

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