https://github.com/InternRobotics/G2VLM/blob/8cad094c4959a27deeda5150121affe9d73013e4/inference_chat.py#L14