报错一AttributeError: ChatGLMConfig object has no attribute max_length. Did you mean: seq_length?解决sed -i s/self.max_sequence_length config.max_length/self.max_sequence_length getattr(config, max_length, getattr(config, seq_length, 131072))/g /root/autodl-tmp/models/glm-4-9b-chat/modeling_chatglm.py rm -rf /root/.cache/huggingface/modules/transformers_modules/glm_hyphen_4_hyphen_9b_hyphen_chat报错二AttributeError: ChatGLMForConditionalGeneration object has no attribute all_tied_weights_keys. Did you mean: _tied_weights_keys?解决python -c path /root/autodl-tmp/models/glm-4-9b-chat/modeling_chatglm.py patch_code \n\n# 强制注入兼容新版 transformers 的属性\nChatGLMForConditionalGeneration.all_tied_weights_keys property(lambda self: {})\n with open(path, a, encodingutf-8) as f: f.write(patch_code) print(✅ 权重共享属性 patching 成功) rm -rf /root/.cache/huggingface/modules/transformers_modules/glm_hyphen_4_hyphen_9b_hyphen_chat