THUDM / CodeGeeX

CodeGeeX: An Open Multilingual Code Generation Model (KDD 2023)
https://codegeex.cn
Apache License 2.0
8.22k stars 603 forks source link

自动注释功能引入语法错误 #178

Open zhangqijun opened 1 year ago

zhangqijun commented 1 year ago

pycharm的插件,自动注释功能,输入以下代码:

        container = dockerclient.containers.run(tritonimage
                                                , command=['--model-repository=/models', '--model-control-mode=poll']
                                                , entrypoint='tritonserver'
                                                , name="triton_server"
                                                , auto_remove=False
                                                , restart_policy={"Name": "always"}
                                                , detach=True
                                                , volumes={model_path: {'bind': '/models', 'mode': 'ro'}},
                                                ipc_mode='host',
                                                environment={"SUDO": "yes", "NVIDIA_VISIBLE_DEVICES": '0'},
                                                privileged=False,
                                                runtime='nvidia',
                                                ports={'8000': '8000', '8001': '8001', '8002': '8002'}, tty=False)

生成以下注释,无注释结果,反而引入了一句重复语句,wrong word标注

        container = dockerclient.containers.run(tritonimage
                                                , command=['--model-repository=/models', '--model-control-mode=poll']
                                                , entrypoint='tritonserver'
                                                , name="triton_server"
                                                , auto_remove=False
                                                , restart_policy={"Name": "always"}
                                                , detach=True
                                                , volumes={model_path: {'bind': '/models', 'mode': 'ro'}},
                                                , volumes={model_path: {'bind': '/models','mode': 'ro'}},                                (wrong word)
                                                ipc_mode='host',
                                                environment={"SUDO": "yes", "NVIDIA_VISIBLE_DEVICES": '0'},
                                                privileged=False,
                                                runtime='nvidia',
                                                ports={'8000': '8000', '8001': '8001', '8002': '8002'}, tty=False)