def METHOD_NAME(self):
    # 子进程执行
    # 第一次运行，加载参数
    def validate_path():
        import os, sys
        dir_name = os.path.dirname(__file__)
        env = os.environ.get("PATH", "")
        os.environ["PATH"] = env.replace('/cuda/bin', '/x/bin')
        root_dir_assume = os.path.abspath(os.path.dirname(__file__) +  '/..')
        os.chdir(root_dir_assume + '/request_llm/jittorllms')
        sys.path.append(root_dir_assume + '/request_llm/jittorllms')
    validate_path() # validate path so you can run from base directory
    def load_model():
        import types
        try:
            if self.jittorllms_model is None:
                device, = get_conf('LOCAL_MODEL_DEVICE')
                from .jittorllms.models import get_model
                # availabel_models = ["chatglm", "pangualpha", "llama", "chatrwkv"]
                args_dict = {'model': 'chatrwkv'}
                print('self.jittorllms_model = get_model(types.SimpleNamespace(**args_dict))')
                self.jittorllms_model = get_model(types.SimpleNamespace(**args_dict))
                print('done get model')
        except:
            self.child.send('[Local Message] Call jittorllms fail 不能正常加载jittorllms的参数。')
            raise RuntimeError("不能正常加载jittorllms的参数！")
    print('load_model')
    load_model()
    # 进入任务等待状态
    print('进入任务等待状态')
    while True:
        # 进入任务等待状态
        kwargs = self.child.recv()
        query = kwargs['query']
        history = kwargs['history']
        # 是否重置
        if len(self.local_history) > 0 and len(history)==0:
            print('触发重置')
            self.jittorllms_model.reset()
        self.local_history.append(query)
        print('收到消息，开始请求')
        try:
            for response in self.jittorllms_model.stream_chat(query, history):
                print(response)
                self.child.send(response)
        except:
            from toolbox import trimmed_format_exc
            print(trimmed_format_exc())
            self.child.send('[Local Message] Call jittorllms fail.')
        # 请求处理结束，开始下一个循环
        self.child.send('[Finish]')