├── .DS_Store ├── README.md ├── dataset ├── data.txt ├── get_data.ipynb ├── text_correct.json └── train_large_v2.json ├── download_model.py ├── gradio_demo ├── gradio_demo.py ├── prompts.py ├── text_correct.py └── text_correct_utils.py ├── img ├── 2024-03-09-21-28-53.png ├── 2024-03-09-21-38-20.png ├── 2024-03-10-09-40-29.png ├── chatglm3-6b-lora.png ├── chatglm3-6b.png ├── image-1.png ├── image-2.png ├── image.png └── training_loss.png ├── openai_api_demo ├── api_server.py ├── install.sh ├── openai_api_request.py ├── start.sh └── utils.py └── pycorrector_server ├── .DS_Store ├── app_config.py ├── app_core.py ├── app_server.py ├── assets └── .DS_Store ├── gunicorn.py ├── install.sh ├── predict ├── __init__.py ├── __pycache__ │ └── __init__.cpython-39.pyc └── pycorrector │ ├── __init__.py │ ├── __pycache__ │ ├── __init__.cpython-310.pyc │ ├── __init__.cpython-39.pyc │ ├── inference.cpython-310.pyc │ └── inference.cpython-39.pyc │ └── inference.py ├── requirements.txt ├── start.sh ├── test └── test_pycorrector.py ├── utils ├── __init__.py ├── __pycache__ │ ├── __init__.cpython-310.pyc │ ├── __init__.cpython-39.pyc │ ├── api_predict_common.cpython-310.pyc │ ├── api_predict_common.cpython-39.pyc │ ├── coast_time.cpython-310.pyc │ ├── coast_time.cpython-39.pyc │ ├── deal_response.cpython-310.pyc │ ├── deal_response.cpython-39.pyc │ ├── get_logger.cpython-310.pyc │ └── get_logger.cpython-39.pyc ├── api_predict_common.py ├── coast_time.py ├── deal_response.py └── get_logger.py └── views ├── __init__.py ├── __pycache__ ├── __init__.cpython-39.pyc └── correct.cpython-39.pyc └── correct.py /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/README.md -------------------------------------------------------------------------------- /dataset/data.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/dataset/data.txt -------------------------------------------------------------------------------- /dataset/get_data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/dataset/get_data.ipynb -------------------------------------------------------------------------------- /dataset/text_correct.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/dataset/text_correct.json -------------------------------------------------------------------------------- /dataset/train_large_v2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/dataset/train_large_v2.json -------------------------------------------------------------------------------- /download_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/download_model.py -------------------------------------------------------------------------------- /gradio_demo/gradio_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/gradio_demo/gradio_demo.py -------------------------------------------------------------------------------- /gradio_demo/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/gradio_demo/prompts.py -------------------------------------------------------------------------------- /gradio_demo/text_correct.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/gradio_demo/text_correct.py -------------------------------------------------------------------------------- /gradio_demo/text_correct_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/gradio_demo/text_correct_utils.py -------------------------------------------------------------------------------- /img/2024-03-09-21-28-53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/2024-03-09-21-28-53.png -------------------------------------------------------------------------------- /img/2024-03-09-21-38-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/2024-03-09-21-38-20.png -------------------------------------------------------------------------------- /img/2024-03-10-09-40-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/2024-03-10-09-40-29.png -------------------------------------------------------------------------------- /img/chatglm3-6b-lora.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/chatglm3-6b-lora.png -------------------------------------------------------------------------------- /img/chatglm3-6b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/chatglm3-6b.png -------------------------------------------------------------------------------- /img/image-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/image-1.png -------------------------------------------------------------------------------- /img/image-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/image-2.png -------------------------------------------------------------------------------- /img/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/image.png -------------------------------------------------------------------------------- /img/training_loss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/img/training_loss.png -------------------------------------------------------------------------------- /openai_api_demo/api_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/openai_api_demo/api_server.py -------------------------------------------------------------------------------- /openai_api_demo/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/openai_api_demo/install.sh -------------------------------------------------------------------------------- /openai_api_demo/openai_api_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/openai_api_demo/openai_api_request.py -------------------------------------------------------------------------------- /openai_api_demo/start.sh: -------------------------------------------------------------------------------- 1 | conda activate text_correct 2 | nohup python api_server.py & -------------------------------------------------------------------------------- /openai_api_demo/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/openai_api_demo/utils.py -------------------------------------------------------------------------------- /pycorrector_server/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/.DS_Store -------------------------------------------------------------------------------- /pycorrector_server/app_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/app_config.py -------------------------------------------------------------------------------- /pycorrector_server/app_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/app_core.py -------------------------------------------------------------------------------- /pycorrector_server/app_server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/app_server.py -------------------------------------------------------------------------------- /pycorrector_server/assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/assets/.DS_Store -------------------------------------------------------------------------------- /pycorrector_server/gunicorn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/gunicorn.py -------------------------------------------------------------------------------- /pycorrector_server/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/install.sh -------------------------------------------------------------------------------- /pycorrector_server/predict/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pycorrector_server/predict/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/pycorrector/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/pycorrector/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/__pycache__/inference.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/pycorrector/__pycache__/inference.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/__pycache__/inference.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/pycorrector/__pycache__/inference.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/predict/pycorrector/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/predict/pycorrector/inference.py -------------------------------------------------------------------------------- /pycorrector_server/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/requirements.txt -------------------------------------------------------------------------------- /pycorrector_server/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/start.sh -------------------------------------------------------------------------------- /pycorrector_server/test/test_pycorrector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/test/test_pycorrector.py -------------------------------------------------------------------------------- /pycorrector_server/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__init__.py -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/__init__.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/__init__.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/api_predict_common.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/api_predict_common.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/api_predict_common.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/api_predict_common.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/coast_time.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/coast_time.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/coast_time.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/coast_time.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/deal_response.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/deal_response.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/deal_response.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/deal_response.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/get_logger.cpython-310.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/get_logger.cpython-310.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/__pycache__/get_logger.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/__pycache__/get_logger.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/utils/api_predict_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/api_predict_common.py -------------------------------------------------------------------------------- /pycorrector_server/utils/coast_time.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/coast_time.py -------------------------------------------------------------------------------- /pycorrector_server/utils/deal_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/deal_response.py -------------------------------------------------------------------------------- /pycorrector_server/utils/get_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/utils/get_logger.py -------------------------------------------------------------------------------- /pycorrector_server/views/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/views/__init__.py -------------------------------------------------------------------------------- /pycorrector_server/views/__pycache__/__init__.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/views/__pycache__/__init__.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/views/__pycache__/correct.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/views/__pycache__/correct.cpython-39.pyc -------------------------------------------------------------------------------- /pycorrector_server/views/correct.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Weijie-Zhou/Text-Correction-with-Chatglm3-6b-lora/HEAD/pycorrector_server/views/correct.py --------------------------------------------------------------------------------