CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTING_CN.md
LICENSE
MANIFEST.in
Makefile
README.md
README_CN.md
requirements.txt
setup.cfg
setup.py
asset/banner.png
asset/discord_qr.jpg
asset/wechat.png
examples/README.md
examples/app/llm.sh
examples/app/mllm.sh
examples/app/base_url/demo.py
examples/app/base_url/demo.sh
examples/custom/dataset.py
examples/custom/infer.sh
examples/custom/model.py
examples/custom/sft.sh
examples/deploy/bert/client.py
examples/deploy/bert/server.sh
examples/deploy/client/llm/base/openai_client.py
examples/deploy/client/llm/base/swift_client.py
examples/deploy/client/llm/chat/openai_client.py
examples/deploy/client/llm/chat/swift_client.py
examples/deploy/client/mllm/openai_client.py
examples/deploy/client/mllm/swift_client.py
examples/deploy/lora/client.py
examples/deploy/lora/server.sh
examples/deploy/reward_model/client.py
examples/deploy/reward_model/server.sh
examples/deploy/server/README.md
examples/deploy/server/demo.sh
examples/eval/eval_url/demo.py
examples/eval/eval_url/eval.sh
examples/eval/llm/eval.sh
examples/eval/vlm/eval.sh
examples/export/merge_lora.sh
examples/export/ollama.sh
examples/export/push_to_hub.sh
examples/export/quantize/awq.sh
examples/export/quantize/bnb.sh
examples/export/quantize/gptq.sh
examples/export/quantize/bert/bnb.sh
examples/export/quantize/bert/gptq.sh
examples/export/quantize/mllm/awq.sh
examples/export/quantize/mllm/gptq.sh
examples/export/quantize/reward_model/bnb.sh
examples/export/quantize/reward_model/gptq.sh
examples/infer/cli_demo.sh
examples/infer/demo.py
examples/infer/demo_agent.py
examples/infer/demo_bert.py
examples/infer/demo_grounding.py
examples/infer/demo_hf.py
examples/infer/demo_lora.py
examples/infer/demo_mllm.py
examples/infer/demo_reward_model.py
examples/infer/lmdeploy/ddp.sh
examples/infer/lmdeploy/mllm_tp.sh
examples/infer/pt/batch_ddp.sh
examples/infer/pt/bert.sh
examples/infer/pt/lora.sh
examples/infer/pt/mllm_device_map.sh
examples/infer/pt/prm.sh
examples/infer/pt/reward_model.sh
examples/infer/vllm/ddp.sh
examples/infer/vllm/mllm_ddp.sh
examples/infer/vllm/mllm_tp.sh
examples/notebook/qwen2_5-self-cognition/infer.ipynb
examples/notebook/qwen2_5-self-cognition/infer.sh
examples/notebook/qwen2_5-self-cognition/self-cognition-sft.ipynb
examples/notebook/qwen2_5-self-cognition/sft.sh
examples/notebook/qwen2_5-vl-grounding/zh.ipynb
examples/notebook/qwen2vl-ocr/infer.ipynb
examples/notebook/qwen2vl-ocr/ocr-sft.ipynb
examples/sampler/distill/distill.sh
examples/sampler/mcts/mcts.py
examples/sampler/mcts/mcts.sh
examples/sampler/mcts/system_prompt.txt
examples/train/infer.sh
examples/train/lora_sft.sh
examples/train/agent/train.sh
examples/train/all_to_all/infer.sh
examples/train/all_to_all/train.sh
examples/train/base_to_chat/full.sh
examples/train/base_to_chat/lora.sh
examples/train/base_to_chat/lora2.sh
examples/train/embedding/train.sh
examples/train/full/infer.sh
examples/train/full/train.sh
examples/train/grpo/full_lmdeploy.sh
examples/train/grpo/full_vllm.sh
examples/train/grpo/full_vllm_qwenvl.sh
examples/train/grpo/grpo.sh
examples/train/grpo/lora_vllm.sh
examples/train/grpo/prompt.txt
examples/train/grpo/multi_node/multi_gpu_agent.sh
examples/train/grpo/multi_node/multi_gpu_mp_colocate.sh
examples/train/grpo/multi_node/multi_node1.sh
examples/train/grpo/multi_node/multi_node2.sh
examples/train/grpo/multi_node/train_dlc.sh
examples/train/grpo/plugin/plugin.py
examples/train/grpo/plugin/run_external_rm.sh
examples/train/lazy_tokenize/train.sh
examples/train/multi-gpu/ddp/train.sh
examples/train/multi-gpu/ddp_device_map/train.sh
examples/train/multi-gpu/deepspeed/train_zero2.sh
examples/train/multi-gpu/deepspeed/train_zero3.sh
examples/train/multi-gpu/device_map/train.sh
examples/train/multi-gpu/fsdp_qlora/fsdp_offload.json
examples/train/multi-gpu/fsdp_qlora/train.sh
examples/train/multi-node/accelerate/multi_node.yaml
examples/train/multi-node/accelerate/train_node1.sh
examples/train/multi-node/accelerate/train_node2.sh
examples/train/multi-node/deepspeed/README.md
examples/train/multi-node/deepspeed/host.txt
examples/train/multi-node/deepspeed/train.sh
examples/train/multi-node/dlc/train.sh
examples/train/multi-node/swift/train_node1.sh
examples/train/multi-node/swift/train_node2.sh
examples/train/multi-node/torchrun/train_node1.sh
examples/train/multi-node/torchrun/train_node2.sh
examples/train/multimodal/audio.sh
examples/train/multimodal/caption.sh
examples/train/multimodal/grounding.sh
examples/train/multimodal/infer.sh
examples/train/multimodal/ocr.sh
examples/train/multimodal/video.sh
examples/train/multimodal/rlhf/dpo.sh
examples/train/multimodal/rlhf/kto.sh
examples/train/optimizer/muon.sh
examples/train/packing/train.sh
examples/train/plugins/loss_scale.sh
examples/train/plugins/tuner.sh
examples/train/predict_with_generate/train.sh
examples/train/pretrain/train.sh
examples/train/qlora/awq.sh
examples/train/qlora/bnb.sh
examples/train/qlora/gptq.sh
examples/train/qlora/hqq.sh
examples/train/rft/math.json
examples/train/rft/rft.py
examples/train/rlhf/README.md
examples/train/rlhf/cpo.sh
examples/train/rlhf/dpo.sh
examples/train/rlhf/kto.sh
examples/train/rlhf/orpo.sh
examples/train/rlhf/ppo.sh
examples/train/rlhf/rm.sh
examples/train/rlhf/simpo.sh
examples/train/seq_cls/bert/deploy.sh
examples/train/seq_cls/bert/infer.sh
examples/train/seq_cls/bert/sft.sh
examples/train/seq_cls/qwen2_5/deploy.sh
examples/train/seq_cls/qwen2_5/infer.sh
examples/train/seq_cls/qwen2_5/sft.sh
examples/train/seq_cls/qwen2_vl/infer.sh
examples/train/seq_cls/qwen2_vl/sft.sh
examples/train/sequence_parallel/train.sh
examples/train/streaming/train.sh
examples/train/tuners/adalora/train.sh
examples/train/tuners/adapter/train.sh
examples/train/tuners/boft/train.sh
examples/train/tuners/bone/train.sh
examples/train/tuners/dora/train.sh
examples/train/tuners/galore/train_galore.sh
examples/train/tuners/galore/train_qgalore.sh
examples/train/tuners/liger/train.sh
examples/train/tuners/lisa/train.sh
examples/train/tuners/llamapro/train.sh
examples/train/tuners/longlora/train.sh
examples/train/tuners/lora/train.sh
examples/train/tuners/lora-ga/train.sh
examples/train/tuners/neftune/train.sh
examples/train/tuners/olora/train.sh
examples/train/tuners/pissa/train.sh
examples/train/tuners/qlora/train.sh
examples/train/tuners/reft/train.sh
examples/train/tuners/unsloth/train.sh
ms_swift.egg-info/PKG-INFO
ms_swift.egg-info/SOURCES.txt
ms_swift.egg-info/dependency_links.txt
ms_swift.egg-info/entry_points.txt
ms_swift.egg-info/not-zip-safe
ms_swift.egg-info/requires.txt
ms_swift.egg-info/top_level.txt
requirements/docs.txt
requirements/eval.txt
requirements/framework.txt
requirements/install_all.sh
requirements/seq_parallel.txt
requirements/swanlab.txt
requirements/tests.txt
scripts/benchmark/exp.py
scripts/benchmark/exp_utils.py
scripts/benchmark/generate_report.py
scripts/benchmark/config/tuner.json
scripts/utils/plot_loss.py
scripts/utils/run_dataset_info.py
scripts/utils/run_model_info.py
scripts/utils/run_template.py
swift/__init__.py
swift/version.py
swift/cli/__init__.py
swift/cli/app.py
swift/cli/deploy.py
swift/cli/eval.py
swift/cli/export.py
swift/cli/infer.py
swift/cli/main.py
swift/cli/merge_lora.py
swift/cli/pt.py
swift/cli/rlhf.py
swift/cli/sample.py
swift/cli/sft.py
swift/cli/web_ui.py
swift/hub/__init__.py
swift/hub/constant.py
swift/hub/hub.py
swift/llm/__init__.py
swift/llm/base.py
swift/llm/utils.py
swift/llm/app/__init__.py
swift/llm/app/app.py
swift/llm/app/build_ui.py
swift/llm/app/locale.py
swift/llm/argument/__init__.py
swift/llm/argument/app_args.py
swift/llm/argument/deploy_args.py
swift/llm/argument/eval_args.py
swift/llm/argument/export_args.py
swift/llm/argument/infer_args.py
swift/llm/argument/merge_args.py
swift/llm/argument/rlhf_args.py
swift/llm/argument/sampling_args.py
swift/llm/argument/train_args.py
swift/llm/argument/tuner_args.py
swift/llm/argument/webui_args.py
swift/llm/argument/base_args/__init__.py
swift/llm/argument/base_args/base_args.py
swift/llm/argument/base_args/data_args.py
swift/llm/argument/base_args/generation_args.py
swift/llm/argument/base_args/model_args.py
swift/llm/argument/base_args/quant_args.py
swift/llm/argument/base_args/template_args.py
swift/llm/argument/base_args/utils.py
swift/llm/dataset/__init__.py
swift/llm/dataset/loader.py
swift/llm/dataset/media.py
swift/llm/dataset/register.py
swift/llm/dataset/utils.py
swift/llm/dataset/data/dataset_info.json
swift/llm/dataset/dataset/__init__.py
swift/llm/dataset/dataset/llm.py
swift/llm/dataset/dataset/mllm.py
swift/llm/dataset/preprocessor/__init__.py
swift/llm/dataset/preprocessor/core.py
swift/llm/dataset/preprocessor/extra.py
swift/llm/ds_config/zero0.json
swift/llm/ds_config/zero1.json
swift/llm/ds_config/zero2.json
swift/llm/ds_config/zero2_offload.json
swift/llm/ds_config/zero3.json
swift/llm/ds_config/zero3_offload.json
swift/llm/eval/__init__.py
swift/llm/eval/eval.py
swift/llm/export/__init__.py
swift/llm/export/export.py
swift/llm/export/merge_lora.py
swift/llm/export/ollama.py
swift/llm/export/quant.py
swift/llm/infer/__init__.py
swift/llm/infer/deploy.py
swift/llm/infer/infer.py
swift/llm/infer/protocol.py
swift/llm/infer/utils.py
swift/llm/infer/infer_engine/__init__.py
swift/llm/infer/infer_engine/base.py
swift/llm/infer/infer_engine/grpo_vllm_engine.py
swift/llm/infer/infer_engine/infer_client.py
swift/llm/infer/infer_engine/infer_engine.py
swift/llm/infer/infer_engine/lmdeploy_engine.py
swift/llm/infer/infer_engine/patch.py
swift/llm/infer/infer_engine/pt_engine.py
swift/llm/infer/infer_engine/utils.py
swift/llm/infer/infer_engine/vllm_engine.py
swift/llm/model/__init__.py
swift/llm/model/constant.py
swift/llm/model/model_arch.py
swift/llm/model/patcher.py
swift/llm/model/register.py
swift/llm/model/utils.py
swift/llm/model/model/__init__.py
swift/llm/model/model/baai.py
swift/llm/model/model/baichuan.py
swift/llm/model/model/bert.py
swift/llm/model/model/codefuse.py
swift/llm/model/model/deepseek.py
swift/llm/model/model/gemma.py
swift/llm/model/model/glm.py
swift/llm/model/model/internlm.py
swift/llm/model/model/llama.py
swift/llm/model/model/llava.py
swift/llm/model/model/llm.py
swift/llm/model/model/mamba.py
swift/llm/model/model/microsoft.py
swift/llm/model/model/minicpm.py
swift/llm/model/model/minimax.py
swift/llm/model/model/mistral.py
swift/llm/model/model/mllm.py
swift/llm/model/model/mplug.py
swift/llm/model/model/openbuddy.py
swift/llm/model/model/qwen.py
swift/llm/model/model/skywork.py
swift/llm/model/model/stepfun.py
swift/llm/model/model/telechat.py
swift/llm/model/model/valley.py
swift/llm/model/model/yi.py
swift/llm/sampling/__init__.py
swift/llm/sampling/base.py
swift/llm/sampling/distill_sampler.py
swift/llm/sampling/mcts.py
swift/llm/sampling/sampling.py
swift/llm/sampling/utils.py
swift/llm/sampling/vanilla_sampler.py
swift/llm/template/__init__.py
swift/llm/template/base.py
swift/llm/template/constant.py
swift/llm/template/grounding.py
swift/llm/template/register.py
swift/llm/template/template_inputs.py
swift/llm/template/template_meta.py
swift/llm/template/utils.py
swift/llm/template/vision_utils.py
swift/llm/template/template/__init__.py
swift/llm/template/template/deepseek.py
swift/llm/template/template/emu3.py
swift/llm/template/template/gemma.py
swift/llm/template/template/glm.py
swift/llm/template/template/idefics3.py
swift/llm/template/template/internlm.py
swift/llm/template/template/internvl.py
swift/llm/template/template/llama.py
swift/llm/template/template/llava.py
swift/llm/template/template/llm.py
swift/llm/template/template/megrez.py
swift/llm/template/template/microsoft.py
swift/llm/template/template/minicpm.py
swift/llm/template/template/minimax.py
swift/llm/template/template/molmo.py
swift/llm/template/template/mplug.py
swift/llm/template/template/openbuddy.py
swift/llm/template/template/pixtral.py
swift/llm/template/template/qwen.py
swift/llm/template/template/stepfun.py
swift/llm/template/template/utils.py
swift/llm/template/template/valley.py
swift/llm/template/template/yi.py
swift/llm/train/__init__.py
swift/llm/train/callback.py
swift/llm/train/kto.py
swift/llm/train/pt.py
swift/llm/train/rlhf.py
swift/llm/train/sft.py
swift/llm/train/tuner.py
swift/plugin/__init__.py
swift/plugin/callback.py
swift/plugin/loss.py
swift/plugin/loss_scale.py
swift/plugin/metric.py
swift/plugin/optimizer.py
swift/plugin/orm.py
swift/plugin/prm.py
swift/plugin/tools.py
swift/plugin/tuner.py
swift/plugin/agent/agentflan.json
swift/plugin/agent/alpha_umi_loss_scale_config.json
swift/plugin/agent/default_loss_scale_config.json
swift/plugin/agent/qwen_loss_scale_config.json
swift/trainers/__init__.py
swift/trainers/arguments.py
swift/trainers/callback.py
swift/trainers/mixin.py
swift/trainers/rlhf_arguments.py
swift/trainers/torchacc_mixin.py
swift/trainers/trainer_factory.py
swift/trainers/trainers.py
swift/trainers/utils.py
swift/trainers/xtuner.py
swift/trainers/optimizers/__init__.py
swift/trainers/optimizers/galore/__init__.py
swift/trainers/optimizers/galore/adafactor.py
swift/trainers/optimizers/galore/adamw.py
swift/trainers/optimizers/galore/adamw8bit.py
swift/trainers/optimizers/galore/galore_projector.py
swift/trainers/optimizers/galore/utils.py
swift/trainers/rlhf_trainer/__init__.py
swift/trainers/rlhf_trainer/cpo_trainer.py
swift/trainers/rlhf_trainer/dpo_trainer.py
swift/trainers/rlhf_trainer/grpo_trainer.py
swift/trainers/rlhf_trainer/kto_trainer.py
swift/trainers/rlhf_trainer/orpo_trainer.py
swift/trainers/rlhf_trainer/ppo_trainer.py
swift/trainers/rlhf_trainer/reward_trainer.py
swift/trainers/rlhf_trainer/rlhf_mixin.py
swift/tuners/__init__.py
swift/tuners/adapter.py
swift/tuners/base.py
swift/tuners/llamapro.py
swift/tuners/lora.py
swift/tuners/lora_layers.py
swift/tuners/mapping.py
swift/tuners/neftune.py
swift/tuners/part.py
swift/tuners/peft.py
swift/tuners/prompt.py
swift/tuners/reft.py
swift/tuners/restuning.py
swift/tuners/restuning_components.py
swift/tuners/side.py
swift/tuners/utils.py
swift/tuners/longlora/__init__.py
swift/tuners/longlora/llama.py
swift/tuners/longlora/longlora.py
swift/tuners/scetuning/__init__.py
swift/tuners/scetuning/scetuning.py
swift/tuners/scetuning/scetuning_components.py
swift/ui/__init__.py
swift/ui/app.py
swift/ui/base.py
swift/ui/llm_eval/__init__.py
swift/ui/llm_eval/eval.py
swift/ui/llm_eval/llm_eval.py
swift/ui/llm_eval/model.py
swift/ui/llm_eval/runtime.py
swift/ui/llm_export/__init__.py
swift/ui/llm_export/export.py
swift/ui/llm_export/llm_export.py
swift/ui/llm_export/model.py
swift/ui/llm_export/runtime.py
swift/ui/llm_infer/__init__.py
swift/ui/llm_infer/generate.py
swift/ui/llm_infer/llm_infer.py
swift/ui/llm_infer/model.py
swift/ui/llm_infer/runtime.py
swift/ui/llm_train/__init__.py
swift/ui/llm_train/advanced.py
swift/ui/llm_train/dataset.py
swift/ui/llm_train/galore.py
swift/ui/llm_train/hyper.py
swift/ui/llm_train/lisa.py
swift/ui/llm_train/llamapro.py
swift/ui/llm_train/llm_train.py
swift/ui/llm_train/lora.py
swift/ui/llm_train/model.py
swift/ui/llm_train/quantization.py
swift/ui/llm_train/report_to.py
swift/ui/llm_train/rlhf.py
swift/ui/llm_train/runtime.py
swift/ui/llm_train/save.py
swift/ui/llm_train/self_cog.py
swift/ui/llm_train/utils.py
swift/utils/__init__.py
swift/utils/constants.py
swift/utils/env.py
swift/utils/import_utils.py
swift/utils/io_utils.py
swift/utils/logger.py
swift/utils/np_utils.py
swift/utils/tb_utils.py
swift/utils/torch_utils.py
swift/utils/torchacc_utils.py
swift/utils/utils.py
tests/__init__.py
tests/model_tag.py
tests/run.py
tests/run_config.yaml
tests/test_utils.py
tests/app/test_app.py
tests/deploy/test_dataset.py
tests/deploy/test_logprobs.py
tests/eval/test_eval.py
tests/export/test_quant.py
tests/general/test_arch.py
tests/general/test_dataset.py
tests/general/test_model.py
tests/general/test_stream.py
tests/general/test_template.py
tests/hub/__init__.py
tests/hub/test_check_model.py
tests/infer/test_agent.py
tests/infer/test_infer.py
tests/infer/test_logprobs.py
tests/infer/test_main.py
tests/infer/test_max_memory.py
tests/infer/test_mllm.py
tests/llm/__init__.py
tests/llm/load_model.py
tests/llm/load_template.py
tests/llm/test_custom.py
tests/llm/test_dataset.py
tests/llm/test_ollama_export.py
tests/llm/test_run.py
tests/llm/test_run3.py
tests/llm/test_template.py
tests/llm/test_utils.py
tests/llm/config/infer.json
tests/llm/config/sft.json
tests/llm/data/alpaca.csv
tests/llm/data/alpaca.jsonl
tests/llm/data/alpaca2.csv
tests/llm/data/chatml.jsonl
tests/llm/data/conversations.jsonl
tests/llm/data/multi_modal_1.jsonl
tests/llm/data/multi_modal_2.jsonl
tests/llm/data/multi_modal_3.jsonl
tests/llm/data/sharegpt.jsonl
tests/llm/data/swift_multi.json
tests/llm/data/swift_multi.jsonl
tests/llm/data/swift_pre.csv
tests/llm/data/swift_pre.jsonl
tests/llm/data/swift_single.csv
tests/llm/data/swift_single.jsonl
tests/models/test_flash_attn.py
tests/models/test_llm.py
tests/models/test_mllm.py
tests/sample/test_client.py
tests/test_align/test_cls.py
tests/test_align/test_lmdeploy_vlm.py
tests/test_align/test_padding_side.py
tests/test_align/test_rlhf_loss.py
tests/test_align/test_vllm_vlm.py
tests/test_align/test_template/test_audio.py
tests/test_align/test_template/test_gene.py
tests/test_align/test_template/test_llm.py
tests/test_align/test_template/test_template.py
tests/test_align/test_template/test_video.py
tests/test_align/test_template/test_vision.py
tests/train/test_cls.py
tests/train/test_freeze.py
tests/train/test_grpo.py
tests/train/test_kto.py
tests/train/test_ppo.py
tests/train/test_pt.py
tests/train/test_rlhf.py
tests/train/test_sample.py
tests/train/test_sft.py
tests/tuners/__init__.py
tests/tuners/test_extra_state_dict.py
tests/tuners/test_merged_linear.py
tests/tuners/test_neft.py
tests/tuners/test_peft.py
tests/tuners/test_scetuning.py
tests/tuners/test_swift_base.py
tests/tuners/test_swift_device_map.py
tests/tuners/test_swift_restuning.py
tests/utils/__init__.py
tests/utils/test_io_utils.py
tests/utils/test_torch_utils.py