├── .dockerignore ├── .editorconfig ├── .github └── workflows │ ├── codeql.yml │ ├── docker.yml │ └── lint.yml ├── .gitignore ├── .python-version ├── .vscode ├── extensions.json └── settings.json ├── Dockerfile ├── LICENSE ├── NOTICE ├── README.md ├── SECURITY.md ├── apps ├── webui │ ├── .python-version │ ├── README.md │ ├── pyproject.toml │ └── src │ │ └── webui │ │ ├── __init__.py │ │ ├── app.py │ │ ├── assets │ │ ├── application.js │ │ └── style.css │ │ ├── constants.py │ │ ├── overwrites.py │ │ └── utils.py └── yuren_trainer │ ├── README.md │ ├── config │ ├── deepspeed_config.json │ └── qlora.json │ ├── pyproject.toml │ └── src │ └── yuren_trainer │ ├── __init__.py │ ├── build_datasets.py │ ├── clip_sft.py │ ├── peft_trainer.py │ ├── text_sft.py │ └── utils.py ├── data └── sft.dev.json ├── docker-compose.yaml ├── docs ├── CODE_OF_CONDUCT.md ├── assets │ ├── 1.webp │ ├── 2.webp │ ├── 3.webp │ ├── 4.webp │ ├── 5.webp │ └── 6.jpeg └── showcases.md ├── libs └── yuren_core │ ├── README.md │ ├── pyproject.toml │ └── src │ └── yuren_core │ ├── __init__.py │ ├── constants.py │ ├── errors.py │ └── multimodal_llama.py ├── pyproject.toml ├── requirements-dev.lock ├── requirements.lock └── tools ├── merge_lora ├── .python-version ├── README.md ├── pyproject.toml └── src │ └── merge_lora │ ├── __init__.py │ └── __main__.py └── prepare_base_model ├── README.md ├── pyproject.toml └── src └── prepare_base_model ├── __init__.py └── __main__.py /.dockerignore: -------------------------------------------------------------------------------- 1 | Dockerfile 2 | docs 3 | .github 4 | .vscode 5 | .venv 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/docker.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.github/workflows/docker.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.10.11 2 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/LICENSE -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/NOTICE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/SECURITY.md -------------------------------------------------------------------------------- /apps/webui/.python-version: -------------------------------------------------------------------------------- 1 | 3.10.11 2 | -------------------------------------------------------------------------------- /apps/webui/README.md: -------------------------------------------------------------------------------- 1 | # webui 2 | 3 | YuRen WebUI 4 | -------------------------------------------------------------------------------- /apps/webui/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/pyproject.toml -------------------------------------------------------------------------------- /apps/webui/src/webui/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/__init__.py -------------------------------------------------------------------------------- /apps/webui/src/webui/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/app.py -------------------------------------------------------------------------------- /apps/webui/src/webui/assets/application.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/assets/application.js -------------------------------------------------------------------------------- /apps/webui/src/webui/assets/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/assets/style.css -------------------------------------------------------------------------------- /apps/webui/src/webui/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/constants.py -------------------------------------------------------------------------------- /apps/webui/src/webui/overwrites.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/overwrites.py -------------------------------------------------------------------------------- /apps/webui/src/webui/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/webui/src/webui/utils.py -------------------------------------------------------------------------------- /apps/yuren_trainer/README.md: -------------------------------------------------------------------------------- 1 | # yuren sft trainer 2 | -------------------------------------------------------------------------------- /apps/yuren_trainer/config/deepspeed_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/config/deepspeed_config.json -------------------------------------------------------------------------------- /apps/yuren_trainer/config/qlora.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/config/qlora.json -------------------------------------------------------------------------------- /apps/yuren_trainer/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/pyproject.toml -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/__init__.py -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/build_datasets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/build_datasets.py -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/clip_sft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/clip_sft.py -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/peft_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/peft_trainer.py -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/text_sft.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/text_sft.py -------------------------------------------------------------------------------- /apps/yuren_trainer/src/yuren_trainer/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/apps/yuren_trainer/src/yuren_trainer/utils.py -------------------------------------------------------------------------------- /data/sft.dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/data/sft.dev.json -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /docs/assets/1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/1.webp -------------------------------------------------------------------------------- /docs/assets/2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/2.webp -------------------------------------------------------------------------------- /docs/assets/3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/3.webp -------------------------------------------------------------------------------- /docs/assets/4.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/4.webp -------------------------------------------------------------------------------- /docs/assets/5.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/5.webp -------------------------------------------------------------------------------- /docs/assets/6.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/assets/6.jpeg -------------------------------------------------------------------------------- /docs/showcases.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/docs/showcases.md -------------------------------------------------------------------------------- /libs/yuren_core/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/README.md -------------------------------------------------------------------------------- /libs/yuren_core/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/pyproject.toml -------------------------------------------------------------------------------- /libs/yuren_core/src/yuren_core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/src/yuren_core/__init__.py -------------------------------------------------------------------------------- /libs/yuren_core/src/yuren_core/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/src/yuren_core/constants.py -------------------------------------------------------------------------------- /libs/yuren_core/src/yuren_core/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/src/yuren_core/errors.py -------------------------------------------------------------------------------- /libs/yuren_core/src/yuren_core/multimodal_llama.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/libs/yuren_core/src/yuren_core/multimodal_llama.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/requirements-dev.lock -------------------------------------------------------------------------------- /requirements.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/requirements.lock -------------------------------------------------------------------------------- /tools/merge_lora/.python-version: -------------------------------------------------------------------------------- 1 | 3.10.11 2 | -------------------------------------------------------------------------------- /tools/merge_lora/README.md: -------------------------------------------------------------------------------- 1 | # merge-lora 2 | 3 | Describe your project here. 4 | -------------------------------------------------------------------------------- /tools/merge_lora/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/merge_lora/pyproject.toml -------------------------------------------------------------------------------- /tools/merge_lora/src/merge_lora/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/merge_lora/src/merge_lora/__init__.py -------------------------------------------------------------------------------- /tools/merge_lora/src/merge_lora/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/merge_lora/src/merge_lora/__main__.py -------------------------------------------------------------------------------- /tools/prepare_base_model/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/prepare_base_model/README.md -------------------------------------------------------------------------------- /tools/prepare_base_model/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/prepare_base_model/pyproject.toml -------------------------------------------------------------------------------- /tools/prepare_base_model/src/prepare_base_model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/prepare_base_model/src/prepare_base_model/__init__.py -------------------------------------------------------------------------------- /tools/prepare_base_model/src/prepare_base_model/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pleisto/yuren-baichuan-7b/HEAD/tools/prepare_base_model/src/prepare_base_model/__main__.py --------------------------------------------------------------------------------