VisualGLM-6B icon indicating copy to clipboard operation
VisualGLM-6B copied to clipboard

UnboundLocalError: local variable 'batch_size' referenced before assignment

Open Money8888 opened this issue 1 year ago • 0 comments

Hi I have a mistake when using the "model.chat()" function. here are some pictures about it image

image

there may be a mistake happend in " ~/.cache/huggingface/modules/transformers_modules/visualglm-6b/modeling_chatglm.py" 907 line. how can i correct it? thanks

the model and tokenizer have already finished image

Money8888 avatar Nov 25 '24 07:11 Money8888