├── .gitignore ├── LICENSE ├── README.md ├── __pycache__ └── cover_belle2jsonl.cpython-39.pyc ├── cli_demo.py ├── config └── default_config.yaml ├── cover_alpaca2jsonl.py ├── cover_belle2jsonl.py ├── data ├── .keep ├── alpaca │ ├── data-00000-of-00001.arrow │ ├── dataset_info.json │ └── state.json ├── alpaca_data.json └── alpaca_data.jsonl ├── dataset ├── Alpaca.py └── GLM.py ├── demo.py ├── examples ├── alpaca.png ├── alpaca_lora.png ├── belle.png ├── belle_lora.jpg ├── finetune.ipynb ├── 修改modeling_chatglm效果.png └── 官方modeling_chatglm效果.png ├── infer.ipynb ├── infer.py ├── lora_utils ├── __pycache__ │ └── insert_lora.cpython-39.pyc └── insert_lora.py ├── old_files ├── configuration_chatglm.py ├── modeling_chatglm.py ├── quantization.py ├── tokenization_chatglm.py ├── web_demo.py ├── web_demo_belle.py ├── web_demo_raw.py └── web_demo_test.py ├── output ├── alpaca │ └── chatglm-lora.pt └── belle │ └── chatglm-lora.pt ├── requirements.txt ├── tokenize_dataset_rows.py ├── train_deepspeed.py ├── train_lora.py ├── web_demo.py ├── web_demo_alpaca_lora.py └── web_demo_belle_lora.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/README.md -------------------------------------------------------------------------------- /__pycache__/cover_belle2jsonl.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/__pycache__/cover_belle2jsonl.cpython-39.pyc -------------------------------------------------------------------------------- /cli_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/cli_demo.py -------------------------------------------------------------------------------- /config/default_config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/config/default_config.yaml -------------------------------------------------------------------------------- /cover_alpaca2jsonl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/cover_alpaca2jsonl.py -------------------------------------------------------------------------------- /cover_belle2jsonl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/cover_belle2jsonl.py -------------------------------------------------------------------------------- /data/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /data/alpaca/data-00000-of-00001.arrow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/data/alpaca/data-00000-of-00001.arrow -------------------------------------------------------------------------------- /data/alpaca/dataset_info.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/data/alpaca/dataset_info.json -------------------------------------------------------------------------------- /data/alpaca/state.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/data/alpaca/state.json -------------------------------------------------------------------------------- /data/alpaca_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/data/alpaca_data.json -------------------------------------------------------------------------------- /data/alpaca_data.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/data/alpaca_data.jsonl -------------------------------------------------------------------------------- /dataset/Alpaca.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/dataset/Alpaca.py -------------------------------------------------------------------------------- /dataset/GLM.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/dataset/GLM.py -------------------------------------------------------------------------------- /demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/demo.py -------------------------------------------------------------------------------- /examples/alpaca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/alpaca.png -------------------------------------------------------------------------------- /examples/alpaca_lora.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/alpaca_lora.png -------------------------------------------------------------------------------- /examples/belle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/belle.png -------------------------------------------------------------------------------- /examples/belle_lora.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/belle_lora.jpg -------------------------------------------------------------------------------- /examples/finetune.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/finetune.ipynb -------------------------------------------------------------------------------- /examples/修改modeling_chatglm效果.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/修改modeling_chatglm效果.png -------------------------------------------------------------------------------- /examples/官方modeling_chatglm效果.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/examples/官方modeling_chatglm效果.png -------------------------------------------------------------------------------- /infer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/infer.ipynb -------------------------------------------------------------------------------- /infer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/infer.py -------------------------------------------------------------------------------- /lora_utils/__pycache__/insert_lora.cpython-39.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/lora_utils/__pycache__/insert_lora.cpython-39.pyc -------------------------------------------------------------------------------- /lora_utils/insert_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/lora_utils/insert_lora.py -------------------------------------------------------------------------------- /old_files/configuration_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/configuration_chatglm.py -------------------------------------------------------------------------------- /old_files/modeling_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/modeling_chatglm.py -------------------------------------------------------------------------------- /old_files/quantization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/quantization.py -------------------------------------------------------------------------------- /old_files/tokenization_chatglm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/tokenization_chatglm.py -------------------------------------------------------------------------------- /old_files/web_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/web_demo.py -------------------------------------------------------------------------------- /old_files/web_demo_belle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/web_demo_belle.py -------------------------------------------------------------------------------- /old_files/web_demo_raw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/web_demo_raw.py -------------------------------------------------------------------------------- /old_files/web_demo_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/old_files/web_demo_test.py -------------------------------------------------------------------------------- /output/alpaca/chatglm-lora.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/output/alpaca/chatglm-lora.pt -------------------------------------------------------------------------------- /output/belle/chatglm-lora.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/output/belle/chatglm-lora.pt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/requirements.txt -------------------------------------------------------------------------------- /tokenize_dataset_rows.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/tokenize_dataset_rows.py -------------------------------------------------------------------------------- /train_deepspeed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/train_deepspeed.py -------------------------------------------------------------------------------- /train_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/train_lora.py -------------------------------------------------------------------------------- /web_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/web_demo.py -------------------------------------------------------------------------------- /web_demo_alpaca_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/web_demo_alpaca_lora.py -------------------------------------------------------------------------------- /web_demo_belle_lora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqiangmiffy/InstructGLM/HEAD/web_demo_belle_lora.py --------------------------------------------------------------------------------