devin2255

Results comments of devin2255

> Does anyone have a minimal agent code that can reproduce this?有没有人能提供一个能复现此问题的最小化智能体代码? @reyolivo

Tortoise-like speed

@hiyouga 大佬 我已经更新了[tokenization_chatglm.py](https://huggingface.co/THUDM/chatglm2-6b/blob/main/tokenization_chatglm.py), 问题还没解决, 我的 transformers版本按照咱的最新代码要求进行了升级, 我查下来好像是transformers的版本问题, 烦请再帮忙看看

@hiyouga 大佬 已解决, 解决方案如下: [tokenization_chatglm.py](https://huggingface.co/THUDM/chatglm2-6b/blob/main/tokenization_chatglm.py)代码中 ``` class ChatGLMTokenizer(PreTrainedTokenizer): vocab_files_names = {"vocab_file": "tokenizer.model"} model_input_names = ["input_ids", "attention_mask", "position_ids"] def __init__(self, vocab_file, padding_side="left", clean_up_tokenization_spaces=False, **kwargs): super().__init__(padding_side=padding_side, clean_up_tokenization_spaces=clean_up_tokenization_spaces, **kwargs) self.name = "GLMTokenizer" self.vocab_file...

@hiyouga 大佬 经过上面调整后可以运行了, 但聊天生成全部是 111111: ![image](https://github.com/hiyouga/LLaMA-Factory/assets/29917418/bcd8c9c7-c97c-4738-8842-05b5d1262b4e)