├── .gitignore ├── .idea └── .gitignore ├── LICENSE ├── README.md ├── chatglm2_6b ├── __init__.py ├── dataset │ ├── __init__.py │ └── alpaca_gpt4_data_zh.json ├── ft_chatglm │ ├── __init__.py │ ├── config.py │ ├── evaluation.py │ ├── post_api.py │ ├── predict.py │ └── train.py ├── ft_chatglm2 │ ├── __init__.py │ ├── config.py │ ├── evaluation.py │ ├── post_api.py │ ├── predict.py │ └── train.py ├── loss_gpt4forall_alpaca.png ├── models │ ├── __init__.py │ ├── chatglm │ │ ├── README.md │ │ ├── __init__.py │ │ ├── configuration_chatglm.py │ │ ├── modeling_chatglm.py │ │ ├── quantization.py │ │ └── tokenization_chatglm.py │ └── chatglm2 │ │ ├── MODEL_LICENSE.txt │ │ ├── README.md │ │ ├── __init__.py │ │ ├── configuration_chatglm.py │ │ ├── modeling_chatglm.py │ │ ├── pytorch_model.bin.index.json │ │ ├── quantization.py │ │ └── tokenization_chatglm.py ├── predict_sample_1.png └── predict_sample_2.png └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/README.md -------------------------------------------------------------------------------- /chatglm2_6b/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/dataset/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/dataset/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/dataset/alpaca_gpt4_data_zh.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/dataset/alpaca_gpt4_data_zh.json -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/config.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/evaluation.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/post_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/post_api.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/predict.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm/train.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/config.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/evaluation.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/post_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/post_api.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/predict.py -------------------------------------------------------------------------------- /chatglm2_6b/ft_chatglm2/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/ft_chatglm2/train.py -------------------------------------------------------------------------------- /chatglm2_6b/loss_gpt4forall_alpaca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/loss_gpt4forall_alpaca.png -------------------------------------------------------------------------------- /chatglm2_6b/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/README.md -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/configuration_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/configuration_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/modeling_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/modeling_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/quantization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/quantization.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm/tokenization_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm/tokenization_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/MODEL_LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/MODEL_LICENSE.txt -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/README.md -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/__init__.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/configuration_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/configuration_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/modeling_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/modeling_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/pytorch_model.bin.index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/pytorch_model.bin.index.json -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/quantization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/quantization.py -------------------------------------------------------------------------------- /chatglm2_6b/models/chatglm2/tokenization_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/models/chatglm2/tokenization_chatglm.py -------------------------------------------------------------------------------- /chatglm2_6b/predict_sample_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/predict_sample_1.png -------------------------------------------------------------------------------- /chatglm2_6b/predict_sample_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/chatglm2_6b/predict_sample_2.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yongzhuo/ChatGLM2-SFT/HEAD/requirements.txt --------------------------------------------------------------------------------