diff --git a/__MACOSX/Streamo/swift/tuners/.___pycache__ b/__MACOSX/Streamo/swift/tuners/.___pycache__ new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/.___pycache__ differ diff --git a/__MACOSX/Streamo/swift/tuners/._adapter.py b/__MACOSX/Streamo/swift/tuners/._adapter.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._adapter.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._base.py b/__MACOSX/Streamo/swift/tuners/._base.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._base.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._llamapro.py b/__MACOSX/Streamo/swift/tuners/._llamapro.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._llamapro.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._longlora b/__MACOSX/Streamo/swift/tuners/._longlora new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._longlora differ diff --git a/__MACOSX/Streamo/swift/tuners/._lora.py b/__MACOSX/Streamo/swift/tuners/._lora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._lora.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._lora_layers.py b/__MACOSX/Streamo/swift/tuners/._lora_layers.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._lora_layers.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._mapping.py b/__MACOSX/Streamo/swift/tuners/._mapping.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._mapping.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._neftune.py b/__MACOSX/Streamo/swift/tuners/._neftune.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._neftune.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._part.py b/__MACOSX/Streamo/swift/tuners/._part.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._part.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._peft.py b/__MACOSX/Streamo/swift/tuners/._peft.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._peft.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._prompt.py b/__MACOSX/Streamo/swift/tuners/._prompt.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._prompt.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._reft.py b/__MACOSX/Streamo/swift/tuners/._reft.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._reft.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._restuning.py b/__MACOSX/Streamo/swift/tuners/._restuning.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._restuning.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._restuning_components.py b/__MACOSX/Streamo/swift/tuners/._restuning_components.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._restuning_components.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._scetuning b/__MACOSX/Streamo/swift/tuners/._scetuning new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._scetuning differ diff --git a/__MACOSX/Streamo/swift/tuners/._side.py b/__MACOSX/Streamo/swift/tuners/._side.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._side.py differ diff --git a/__MACOSX/Streamo/swift/tuners/._utils.py b/__MACOSX/Streamo/swift/tuners/._utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/._utils.py differ diff --git a/__MACOSX/Streamo/swift/tuners/longlora/.___init__.py b/__MACOSX/Streamo/swift/tuners/longlora/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/longlora/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/tuners/longlora/.___pycache__ b/__MACOSX/Streamo/swift/tuners/longlora/.___pycache__ new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/longlora/.___pycache__ differ diff --git a/__MACOSX/Streamo/swift/tuners/longlora/._llama.py b/__MACOSX/Streamo/swift/tuners/longlora/._llama.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/longlora/._llama.py differ diff --git a/__MACOSX/Streamo/swift/tuners/longlora/._longlora.py b/__MACOSX/Streamo/swift/tuners/longlora/._longlora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/longlora/._longlora.py differ diff --git a/__MACOSX/Streamo/swift/tuners/scetuning/.___init__.py b/__MACOSX/Streamo/swift/tuners/scetuning/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/scetuning/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/tuners/scetuning/.___pycache__ b/__MACOSX/Streamo/swift/tuners/scetuning/.___pycache__ new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/scetuning/.___pycache__ differ diff --git a/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning.py b/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning.py differ diff --git a/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning_components.py b/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning_components.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/tuners/scetuning/._scetuning_components.py differ diff --git a/__MACOSX/Streamo/swift/ui/.___init__.py b/__MACOSX/Streamo/swift/ui/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/._app.py b/__MACOSX/Streamo/swift/ui/._app.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._app.py differ diff --git a/__MACOSX/Streamo/swift/ui/._base.py b/__MACOSX/Streamo/swift/ui/._base.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._base.py differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_eval b/__MACOSX/Streamo/swift/ui/._llm_eval new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_eval differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_export b/__MACOSX/Streamo/swift/ui/._llm_export new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_export differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_grpo b/__MACOSX/Streamo/swift/ui/._llm_grpo new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_grpo differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_infer b/__MACOSX/Streamo/swift/ui/._llm_infer new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_infer differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_rlhf b/__MACOSX/Streamo/swift/ui/._llm_rlhf new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_rlhf differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_sample b/__MACOSX/Streamo/swift/ui/._llm_sample new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_sample differ diff --git a/__MACOSX/Streamo/swift/ui/._llm_train b/__MACOSX/Streamo/swift/ui/._llm_train new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/._llm_train differ diff --git a/__MACOSX/Streamo/swift/ui/llm_eval/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_eval/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_eval/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_eval/._eval.py b/__MACOSX/Streamo/swift/ui/llm_eval/._eval.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_eval/._eval.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_eval/._llm_eval.py b/__MACOSX/Streamo/swift/ui/llm_eval/._llm_eval.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_eval/._llm_eval.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_eval/._model.py b/__MACOSX/Streamo/swift/ui/llm_eval/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_eval/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_eval/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_eval/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_eval/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_export/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_export/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_export/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_export/._export.py b/__MACOSX/Streamo/swift/ui/llm_export/._export.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_export/._export.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_export/._llm_export.py b/__MACOSX/Streamo/swift/ui/llm_export/._llm_export.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_export/._llm_export.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_export/._model.py b/__MACOSX/Streamo/swift/ui/llm_export/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_export/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_export/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_export/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_export/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_grpo/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._advanced.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._advanced.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._advanced.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._dataset.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._dataset.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._external_rollout.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._external_rollout.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._external_rollout.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._external_runtime.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._external_runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._external_runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._grpo_advanced.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._grpo_advanced.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._grpo_advanced.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._hyper.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._hyper.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._hyper.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._llm_grpo.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._llm_grpo.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._llm_grpo.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._lora.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._lora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._lora.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._model.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._optimizer.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._optimizer.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._optimizer.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._quantization.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._quantization.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._quantization.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._report_to.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._report_to.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._report_to.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._reward.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._reward.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._reward.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._rollout.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._rollout.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._rollout.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._save.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._save.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._save.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._target.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._target.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._target.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_grpo/._tuner.py b/__MACOSX/Streamo/swift/ui/llm_grpo/._tuner.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_grpo/._tuner.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_infer/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_infer/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_infer/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_infer/._generate.py b/__MACOSX/Streamo/swift/ui/llm_infer/._generate.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_infer/._generate.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_infer/._llm_infer.py b/__MACOSX/Streamo/swift/ui/llm_infer/._llm_infer.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_infer/._llm_infer.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_infer/._model.py b/__MACOSX/Streamo/swift/ui/llm_infer/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_infer/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_infer/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_infer/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_infer/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._advanced.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._advanced.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._advanced.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._dataset.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._dataset.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._hyper.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._hyper.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._hyper.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._llm_rlhf.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._llm_rlhf.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._llm_rlhf.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._lora.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._lora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._lora.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._model.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._optimizer.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._optimizer.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._optimizer.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._quantization.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._quantization.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._quantization.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._report_to.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._report_to.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._report_to.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._rlhf.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._rlhf.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._rlhf.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._save.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._save.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._save.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._target.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._target.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._target.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_rlhf/._tuner.py b/__MACOSX/Streamo/swift/ui/llm_rlhf/._tuner.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_rlhf/._tuner.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_sample/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_sample/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_sample/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_sample/._llm_sample.py b/__MACOSX/Streamo/swift/ui/llm_sample/._llm_sample.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_sample/._llm_sample.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_sample/._model.py b/__MACOSX/Streamo/swift/ui/llm_sample/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_sample/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_sample/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_sample/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_sample/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_sample/._sample.py b/__MACOSX/Streamo/swift/ui/llm_sample/._sample.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_sample/._sample.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/.___init__.py b/__MACOSX/Streamo/swift/ui/llm_train/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._advanced.py b/__MACOSX/Streamo/swift/ui/llm_train/._advanced.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._advanced.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._dataset.py b/__MACOSX/Streamo/swift/ui/llm_train/._dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._dataset.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._hyper.py b/__MACOSX/Streamo/swift/ui/llm_train/._hyper.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._hyper.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._llm_train.py b/__MACOSX/Streamo/swift/ui/llm_train/._llm_train.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._llm_train.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._lora.py b/__MACOSX/Streamo/swift/ui/llm_train/._lora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._lora.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._model.py b/__MACOSX/Streamo/swift/ui/llm_train/._model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._model.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._optimizer.py b/__MACOSX/Streamo/swift/ui/llm_train/._optimizer.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._optimizer.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._quantization.py b/__MACOSX/Streamo/swift/ui/llm_train/._quantization.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._quantization.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._report_to.py b/__MACOSX/Streamo/swift/ui/llm_train/._report_to.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._report_to.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._runtime.py b/__MACOSX/Streamo/swift/ui/llm_train/._runtime.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._runtime.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._save.py b/__MACOSX/Streamo/swift/ui/llm_train/._save.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._save.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._self_cog.py b/__MACOSX/Streamo/swift/ui/llm_train/._self_cog.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._self_cog.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._target.py b/__MACOSX/Streamo/swift/ui/llm_train/._target.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._target.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._task.py b/__MACOSX/Streamo/swift/ui/llm_train/._task.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._task.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._tuner.py b/__MACOSX/Streamo/swift/ui/llm_train/._tuner.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._tuner.py differ diff --git a/__MACOSX/Streamo/swift/ui/llm_train/._utils.py b/__MACOSX/Streamo/swift/ui/llm_train/._utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/ui/llm_train/._utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/.___init__.py b/__MACOSX/Streamo/swift/utils/.___init__.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/.___init__.py differ diff --git a/__MACOSX/Streamo/swift/utils/.___pycache__ b/__MACOSX/Streamo/swift/utils/.___pycache__ new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/.___pycache__ differ diff --git a/__MACOSX/Streamo/swift/utils/._constants.py b/__MACOSX/Streamo/swift/utils/._constants.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._constants.py differ diff --git a/__MACOSX/Streamo/swift/utils/._env.py b/__MACOSX/Streamo/swift/utils/._env.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._env.py differ diff --git a/__MACOSX/Streamo/swift/utils/._hf_config.py b/__MACOSX/Streamo/swift/utils/._hf_config.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._hf_config.py differ diff --git a/__MACOSX/Streamo/swift/utils/._hub_utils.py b/__MACOSX/Streamo/swift/utils/._hub_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._hub_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._import_utils.py b/__MACOSX/Streamo/swift/utils/._import_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._import_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._io_utils.py b/__MACOSX/Streamo/swift/utils/._io_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._io_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._logger.py b/__MACOSX/Streamo/swift/utils/._logger.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._logger.py differ diff --git a/__MACOSX/Streamo/swift/utils/._np_utils.py b/__MACOSX/Streamo/swift/utils/._np_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._np_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._processor_utils.py b/__MACOSX/Streamo/swift/utils/._processor_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._processor_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._shutdown_manager.py b/__MACOSX/Streamo/swift/utils/._shutdown_manager.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._shutdown_manager.py differ diff --git a/__MACOSX/Streamo/swift/utils/._tb_utils.py b/__MACOSX/Streamo/swift/utils/._tb_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._tb_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._torch_utils.py b/__MACOSX/Streamo/swift/utils/._torch_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._torch_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._transformers_utils.py b/__MACOSX/Streamo/swift/utils/._transformers_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._transformers_utils.py differ diff --git a/__MACOSX/Streamo/swift/utils/._utils.py b/__MACOSX/Streamo/swift/utils/._utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/swift/utils/._utils.py differ diff --git a/__MACOSX/Streamo/tests/._app b/__MACOSX/Streamo/tests/._app new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._app differ diff --git a/__MACOSX/Streamo/tests/._deploy b/__MACOSX/Streamo/tests/._deploy new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._deploy differ diff --git a/__MACOSX/Streamo/tests/._eval b/__MACOSX/Streamo/tests/._eval new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._eval differ diff --git a/__MACOSX/Streamo/tests/._export b/__MACOSX/Streamo/tests/._export new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._export differ diff --git a/__MACOSX/Streamo/tests/._general b/__MACOSX/Streamo/tests/._general new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._general differ diff --git a/__MACOSX/Streamo/tests/._hub b/__MACOSX/Streamo/tests/._hub new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._hub differ diff --git a/__MACOSX/Streamo/tests/._infer b/__MACOSX/Streamo/tests/._infer new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._infer differ diff --git a/__MACOSX/Streamo/tests/._llm b/__MACOSX/Streamo/tests/._llm new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._llm differ diff --git a/__MACOSX/Streamo/tests/._megatron b/__MACOSX/Streamo/tests/._megatron new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._megatron differ diff --git a/__MACOSX/Streamo/tests/._model_tag.py b/__MACOSX/Streamo/tests/._model_tag.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._model_tag.py differ diff --git a/__MACOSX/Streamo/tests/._models b/__MACOSX/Streamo/tests/._models new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._models differ diff --git a/__MACOSX/Streamo/tests/._run.py b/__MACOSX/Streamo/tests/._run.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._run.py differ diff --git a/__MACOSX/Streamo/tests/._run_config.yaml b/__MACOSX/Streamo/tests/._run_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._run_config.yaml differ diff --git a/__MACOSX/Streamo/tests/._sample b/__MACOSX/Streamo/tests/._sample new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._sample differ diff --git a/__MACOSX/Streamo/tests/._test_align b/__MACOSX/Streamo/tests/._test_align new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._test_align differ diff --git a/__MACOSX/Streamo/tests/._test_utils.py b/__MACOSX/Streamo/tests/._test_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._test_utils.py differ diff --git a/__MACOSX/Streamo/tests/._train b/__MACOSX/Streamo/tests/._train new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._train differ diff --git a/__MACOSX/Streamo/tests/._tuners b/__MACOSX/Streamo/tests/._tuners new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._tuners differ diff --git a/__MACOSX/Streamo/tests/._utils b/__MACOSX/Streamo/tests/._utils new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/._utils differ diff --git a/__MACOSX/Streamo/tests/app/._test_app.py b/__MACOSX/Streamo/tests/app/._test_app.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/app/._test_app.py differ diff --git a/__MACOSX/Streamo/tests/deploy/._test_dataset.py b/__MACOSX/Streamo/tests/deploy/._test_dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/deploy/._test_dataset.py differ diff --git a/__MACOSX/Streamo/tests/deploy/._test_logprobs.py b/__MACOSX/Streamo/tests/deploy/._test_logprobs.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/deploy/._test_logprobs.py differ diff --git a/__MACOSX/Streamo/tests/eval/._test_eval.py b/__MACOSX/Streamo/tests/eval/._test_eval.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/eval/._test_eval.py differ diff --git a/__MACOSX/Streamo/tests/export/._test_quant.py b/__MACOSX/Streamo/tests/export/._test_quant.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/export/._test_quant.py differ diff --git a/__MACOSX/Streamo/tests/general/._test_arch.py b/__MACOSX/Streamo/tests/general/._test_arch.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/general/._test_arch.py differ diff --git a/__MACOSX/Streamo/tests/general/._test_dataset.py b/__MACOSX/Streamo/tests/general/._test_dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/general/._test_dataset.py differ diff --git a/__MACOSX/Streamo/tests/general/._test_model.py b/__MACOSX/Streamo/tests/general/._test_model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/general/._test_model.py differ diff --git a/__MACOSX/Streamo/tests/general/._test_stream.py b/__MACOSX/Streamo/tests/general/._test_stream.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/general/._test_stream.py differ diff --git a/__MACOSX/Streamo/tests/general/._test_template.py b/__MACOSX/Streamo/tests/general/._test_template.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/general/._test_template.py differ diff --git a/__MACOSX/Streamo/tests/hub/._test_check_model.py b/__MACOSX/Streamo/tests/hub/._test_check_model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/hub/._test_check_model.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_agent.py b/__MACOSX/Streamo/tests/infer/._test_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_agent.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_infer.py b/__MACOSX/Streamo/tests/infer/._test_infer.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_infer.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_logprobs.py b/__MACOSX/Streamo/tests/infer/._test_logprobs.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_logprobs.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_main.py b/__MACOSX/Streamo/tests/infer/._test_main.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_main.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_max_memory.py b/__MACOSX/Streamo/tests/infer/._test_max_memory.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_max_memory.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_mllm.py b/__MACOSX/Streamo/tests/infer/._test_mllm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_mllm.py differ diff --git a/__MACOSX/Streamo/tests/infer/._test_sglang.py b/__MACOSX/Streamo/tests/infer/._test_sglang.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/infer/._test_sglang.py differ diff --git a/__MACOSX/Streamo/tests/llm/._config b/__MACOSX/Streamo/tests/llm/._config new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._config differ diff --git a/__MACOSX/Streamo/tests/llm/._data b/__MACOSX/Streamo/tests/llm/._data new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._data differ diff --git a/__MACOSX/Streamo/tests/llm/._load_model.py b/__MACOSX/Streamo/tests/llm/._load_model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._load_model.py differ diff --git a/__MACOSX/Streamo/tests/llm/._load_template.py b/__MACOSX/Streamo/tests/llm/._load_template.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._load_template.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_custom.py b/__MACOSX/Streamo/tests/llm/._test_custom.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_custom.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_dataset.py b/__MACOSX/Streamo/tests/llm/._test_dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_dataset.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_ollama_export.py b/__MACOSX/Streamo/tests/llm/._test_ollama_export.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_ollama_export.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_run.py b/__MACOSX/Streamo/tests/llm/._test_run.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_run.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_run3.py b/__MACOSX/Streamo/tests/llm/._test_run3.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_run3.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_template.py b/__MACOSX/Streamo/tests/llm/._test_template.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_template.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_utils.py b/__MACOSX/Streamo/tests/llm/._test_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_utils.py differ diff --git a/__MACOSX/Streamo/tests/llm/._test_web_ui.py b/__MACOSX/Streamo/tests/llm/._test_web_ui.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/._test_web_ui.py differ diff --git a/__MACOSX/Streamo/tests/llm/config/._infer.json b/__MACOSX/Streamo/tests/llm/config/._infer.json new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/config/._infer.json differ diff --git a/__MACOSX/Streamo/tests/llm/config/._sft.json b/__MACOSX/Streamo/tests/llm/config/._sft.json new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/config/._sft.json differ diff --git a/__MACOSX/Streamo/tests/llm/data/._alpaca.csv b/__MACOSX/Streamo/tests/llm/data/._alpaca.csv new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._alpaca.csv differ diff --git a/__MACOSX/Streamo/tests/llm/data/._alpaca.jsonl b/__MACOSX/Streamo/tests/llm/data/._alpaca.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._alpaca.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._alpaca2.csv b/__MACOSX/Streamo/tests/llm/data/._alpaca2.csv new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._alpaca2.csv differ diff --git a/__MACOSX/Streamo/tests/llm/data/._chatml.jsonl b/__MACOSX/Streamo/tests/llm/data/._chatml.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._chatml.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._conversations.jsonl b/__MACOSX/Streamo/tests/llm/data/._conversations.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._conversations.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._multi_modal_1.jsonl b/__MACOSX/Streamo/tests/llm/data/._multi_modal_1.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._multi_modal_1.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._multi_modal_2.jsonl b/__MACOSX/Streamo/tests/llm/data/._multi_modal_2.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._multi_modal_2.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._multi_modal_3.jsonl b/__MACOSX/Streamo/tests/llm/data/._multi_modal_3.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._multi_modal_3.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._sharegpt.jsonl b/__MACOSX/Streamo/tests/llm/data/._sharegpt.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._sharegpt.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_multi.json b/__MACOSX/Streamo/tests/llm/data/._swift_multi.json new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_multi.json differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_multi.jsonl b/__MACOSX/Streamo/tests/llm/data/._swift_multi.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_multi.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_pre.csv b/__MACOSX/Streamo/tests/llm/data/._swift_pre.csv new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_pre.csv differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_pre.jsonl b/__MACOSX/Streamo/tests/llm/data/._swift_pre.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_pre.jsonl differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_single.csv b/__MACOSX/Streamo/tests/llm/data/._swift_single.csv new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_single.csv differ diff --git a/__MACOSX/Streamo/tests/llm/data/._swift_single.jsonl b/__MACOSX/Streamo/tests/llm/data/._swift_single.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/llm/data/._swift_single.jsonl differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_align b/__MACOSX/Streamo/tests/megatron/._test_align new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_align differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_export.py b/__MACOSX/Streamo/tests/megatron/._test_export.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_export.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_kto.py b/__MACOSX/Streamo/tests/megatron/._test_kto.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_kto.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_lora.py b/__MACOSX/Streamo/tests/megatron/._test_lora.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_lora.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_model.py b/__MACOSX/Streamo/tests/megatron/._test_model.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_model.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_rlhf.py b/__MACOSX/Streamo/tests/megatron/._test_rlhf.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_rlhf.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_save.py b/__MACOSX/Streamo/tests/megatron/._test_save.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_save.py differ diff --git a/__MACOSX/Streamo/tests/megatron/._test_train.py b/__MACOSX/Streamo/tests/megatron/._test_train.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/._test_train.py differ diff --git a/__MACOSX/Streamo/tests/megatron/test_align/._test_llm.py b/__MACOSX/Streamo/tests/megatron/test_align/._test_llm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/test_align/._test_llm.py differ diff --git a/__MACOSX/Streamo/tests/megatron/test_align/._test_mllm.py b/__MACOSX/Streamo/tests/megatron/test_align/._test_mllm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/megatron/test_align/._test_mllm.py differ diff --git a/__MACOSX/Streamo/tests/models/._test_flash_attn.py b/__MACOSX/Streamo/tests/models/._test_flash_attn.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/models/._test_flash_attn.py differ diff --git a/__MACOSX/Streamo/tests/models/._test_llm.py b/__MACOSX/Streamo/tests/models/._test_llm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/models/._test_llm.py differ diff --git a/__MACOSX/Streamo/tests/models/._test_mllm.py b/__MACOSX/Streamo/tests/models/._test_mllm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/models/._test_mllm.py differ diff --git a/__MACOSX/Streamo/tests/sample/._test_client.py b/__MACOSX/Streamo/tests/sample/._test_client.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/sample/._test_client.py differ diff --git a/__MACOSX/Streamo/tests/test_align/._test_cls.py b/__MACOSX/Streamo/tests/test_align/._test_cls.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/._test_cls.py differ diff --git a/__MACOSX/Streamo/tests/test_align/._test_lmdeploy_vlm.py b/__MACOSX/Streamo/tests/test_align/._test_lmdeploy_vlm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/._test_lmdeploy_vlm.py differ diff --git a/__MACOSX/Streamo/tests/test_align/._test_padding_side.py b/__MACOSX/Streamo/tests/test_align/._test_padding_side.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/._test_padding_side.py differ diff --git a/__MACOSX/Streamo/tests/test_align/._test_template b/__MACOSX/Streamo/tests/test_align/._test_template new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/._test_template differ diff --git a/__MACOSX/Streamo/tests/test_align/._test_vllm_vlm.py b/__MACOSX/Streamo/tests/test_align/._test_vllm_vlm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/._test_vllm_vlm.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_agent.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_agent.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_agent.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_audio.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_audio.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_audio.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_gene.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_gene.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_gene.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_llm.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_llm.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_llm.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_template.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_template.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_template.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_tool.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_tool.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_tool.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_video.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_video.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_video.py differ diff --git a/__MACOSX/Streamo/tests/test_align/test_template/._test_vision.py b/__MACOSX/Streamo/tests/test_align/test_template/._test_vision.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/test_align/test_template/._test_vision.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_channel.py b/__MACOSX/Streamo/tests/train/._test_channel.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_channel.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_cls.py b/__MACOSX/Streamo/tests/train/._test_cls.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_cls.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_embedding.py b/__MACOSX/Streamo/tests/train/._test_embedding.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_embedding.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_export_cached_dataset.py b/__MACOSX/Streamo/tests/train/._test_export_cached_dataset.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_export_cached_dataset.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_freeze.py b/__MACOSX/Streamo/tests/train/._test_freeze.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_freeze.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_gkd.py b/__MACOSX/Streamo/tests/train/._test_gkd.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_gkd.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_grounding.py b/__MACOSX/Streamo/tests/train/._test_grounding.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_grounding.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_grpo.py b/__MACOSX/Streamo/tests/train/._test_grpo.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_grpo.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_kto.py b/__MACOSX/Streamo/tests/train/._test_kto.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_kto.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_liger.py b/__MACOSX/Streamo/tests/train/._test_liger.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_liger.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_multilabel.py b/__MACOSX/Streamo/tests/train/._test_multilabel.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_multilabel.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_packing.py b/__MACOSX/Streamo/tests/train/._test_packing.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_packing.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_ppo.py b/__MACOSX/Streamo/tests/train/._test_ppo.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_ppo.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_pt.py b/__MACOSX/Streamo/tests/train/._test_pt.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_pt.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_resume_from_checkpoint.py b/__MACOSX/Streamo/tests/train/._test_resume_from_checkpoint.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_resume_from_checkpoint.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_rlhf.py b/__MACOSX/Streamo/tests/train/._test_rlhf.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_rlhf.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_sample.py b/__MACOSX/Streamo/tests/train/._test_sample.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_sample.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_sft.py b/__MACOSX/Streamo/tests/train/._test_sft.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_sft.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_train_eval.py b/__MACOSX/Streamo/tests/train/._test_train_eval.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_train_eval.py differ diff --git a/__MACOSX/Streamo/tests/train/._test_vit_lr.py b/__MACOSX/Streamo/tests/train/._test_vit_lr.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/train/._test_vit_lr.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_extra_state_dict.py b/__MACOSX/Streamo/tests/tuners/._test_extra_state_dict.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_extra_state_dict.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_merged_linear.py b/__MACOSX/Streamo/tests/tuners/._test_merged_linear.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_merged_linear.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_neft.py b/__MACOSX/Streamo/tests/tuners/._test_neft.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_neft.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_peft.py b/__MACOSX/Streamo/tests/tuners/._test_peft.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_peft.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_scetuning.py b/__MACOSX/Streamo/tests/tuners/._test_scetuning.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_scetuning.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_swift_base.py b/__MACOSX/Streamo/tests/tuners/._test_swift_base.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_swift_base.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_swift_device_map.py b/__MACOSX/Streamo/tests/tuners/._test_swift_device_map.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_swift_device_map.py differ diff --git a/__MACOSX/Streamo/tests/tuners/._test_swift_restuning.py b/__MACOSX/Streamo/tests/tuners/._test_swift_restuning.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/tuners/._test_swift_restuning.py differ diff --git a/__MACOSX/Streamo/tests/utils/._test_file_utils.py b/__MACOSX/Streamo/tests/utils/._test_file_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/utils/._test_file_utils.py differ diff --git a/__MACOSX/Streamo/tests/utils/._test_io_utils.py b/__MACOSX/Streamo/tests/utils/._test_io_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/utils/._test_io_utils.py differ diff --git a/__MACOSX/Streamo/tests/utils/._test_rewards.py b/__MACOSX/Streamo/tests/utils/._test_rewards.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/utils/._test_rewards.py differ diff --git a/__MACOSX/Streamo/tests/utils/._test_split_str_parts_by.py b/__MACOSX/Streamo/tests/utils/._test_split_str_parts_by.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/utils/._test_split_str_parts_by.py differ diff --git a/__MACOSX/Streamo/tests/utils/._test_torch_utils.py b/__MACOSX/Streamo/tests/utils/._test_torch_utils.py new file mode 100644 index 0000000000000000000000000000000000000000..9c93ffdce1537d354c776132c287d6eb606a6093 Binary files /dev/null and b/__MACOSX/Streamo/tests/utils/._test_torch_utils.py differ diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..d0c3cbf1020d5c292abdedf27627c6abe25e2293 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = source +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8ccd292eea8049ae23f46f900c2acd86a1240f11 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,37 @@ +## maintain docs +1. build docs + ```shell + # in root directory: + make docs + ``` + +2. doc string format + + We adopt the google style docstring format as the standard, please refer to the following documents. + 1. Google Python style guide docstring [link](http://google.github.io/styleguide/pyguide.html#381-docstrings) + 2. Google docstring example [link](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html) + 3. sample:torch.nn.modules.conv [link](https://pytorch.org/docs/stable/_modules/torch/nn/modules/conv.html#Conv1d) + 4. load function as an example: + + ```python + def load(file, file_format=None, **kwargs): + """Load data from json/yaml/pickle files. + + This method provides a unified api for loading data from serialized files. + + Args: + file (str or :obj:`Path` or file-like object): Filename or a file-like + object. + file_format (str, optional): If not specified, the file format will be + inferred from the file extension, otherwise use the specified one. + Currently supported formats include "json", "yaml/yml". + + Examples: + >>> load('/path/of/your/file') # file is stored in disk + >>> load('https://path/of/your/file') # file is stored on internet + >>> load('oss://path/of/your/file') # file is stored in petrel + + Returns: + The content from the file. + """ + ``` diff --git a/docs/make.bat b/docs/make.bat new file mode 100644 index 0000000000000000000000000000000000000000..9534b018135ed7d5caed6298980c55e8b1d2ec82 --- /dev/null +++ b/docs/make.bat @@ -0,0 +1,35 @@ +@ECHO OFF + +pushd %~dp0 + +REM Command file for Sphinx documentation + +if "%SPHINXBUILD%" == "" ( + set SPHINXBUILD=sphinx-build +) +set SOURCEDIR=source +set BUILDDIR=build + +if "%1" == "" goto help + +%SPHINXBUILD% >NUL 2>NUL +if errorlevel 9009 ( + echo. + echo.The 'sphinx-build' command was not found. Make sure you have Sphinx + echo.installed, then set the SPHINXBUILD environment variable to point + echo.to the full path of the 'sphinx-build' executable. Alternatively you + echo.may add the Sphinx directory to PATH. + echo. + echo.If you don't have Sphinx installed, grab it from + echo.http://sphinx-doc.org/ + exit /b 1 +) + +%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% +goto end + +:help +%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% + +:end +popd diff --git a/docs/source/.readthedocs.yaml b/docs/source/.readthedocs.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9707f4c79e79783e8ace42ac956d683fe2f69ca --- /dev/null +++ b/docs/source/.readthedocs.yaml @@ -0,0 +1,29 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.10" + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/source/conf.py + +# Optionally build your docs in additional formats such as PDF and ePub +# formats: +# - pdf +# - epub + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: requirements/docs.txt + - requirements: requirements/framework.txt diff --git "a/docs/source/BestPractices/Embedding\350\256\255\347\273\203.md" "b/docs/source/BestPractices/Embedding\350\256\255\347\273\203.md" new file mode 100644 index 0000000000000000000000000000000000000000..a3169138732dad5da46ddf2b11a99b2e6445eedf --- /dev/null +++ "b/docs/source/BestPractices/Embedding\350\256\255\347\273\203.md" @@ -0,0 +1,203 @@ +# Embedding训练 + +SWIFT已经支持Embedding模型的训练,包括纯文本和多模态两个类型。目前已经支持的模型有: + +1. modernbert embedding模型 + - [ModelScope](https://modelscope.cn/models/iic/gte-modernbert-base) [Hugging Face](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) +2. gte embedding模型 + - 1.5B: [ModelScope](https://www.modelscope.cn/models/iic/gte_Qwen2-1.5B-instruct) [Hugging Face](https://huggingface.co/Alibaba-NLP/gte-Qwen2-1.5B-instruct) + - 7B: [ModelScope](https://www.modelscope.cn/models/iic/gte_Qwen2-7B-instruct) [Hugging Face](https://huggingface.co/Alibaba-NLP/gte-Qwen2-7B-instruct) +3. gme embedding模型 + - 2B: [ModelScope](https://www.modelscope.cn/models/iic/gme-Qwen2-VL-2B-Instruct) [Hugging Face](https://huggingface.co/Alibaba-NLP/gme-Qwen2-VL-2B-Instruct) + - 7B: [ModelScope](https://www.modelscope.cn/models/iic/gme-Qwen2-VL-7B-Instruct) [Hugging Face](https://huggingface.co/Alibaba-NLP/gme-Qwen2-VL-7B-Instruct) +4. qwen3-embedding模型 + - 0.6B: [ModelScope](https://www.modelscope.cn/models/Qwen/Qwen3-Embedding-0.6B) [Hugging Face](https://huggingface.co/Qwen/Qwen3-Embedding-0.6B) + - 4B: [ModelScope](https://www.modelscope.cn/models/Qwen/Qwen3-Embedding-4B) [Hugging Face](https://huggingface.co/Qwen/Qwen3-Embedding-4B) + - 8B: [ModelScope](https://www.modelscope.cn/models/Qwen/Qwen3-Embedding-8B) [Hugging Face](https://huggingface.co/Qwen/Qwen3-Embedding-8B) + +开发者可以自行集成自己的模型,模型forward输出值需要满足: + +```text +{"last_hidden_state": some-embedding-tensor} +``` + +返回值是一个json,具有`last_hidden_state` key,value是embedding tensor即可,输入部分可以使用我们已经支持的template。用户也可以通过指定 + +```shell + --task_type embedding +``` +参数来将任意一个其他模型转换为embedding模型进行训练。 + +需要注意的是,SWIFT目前支持的embedding模型均为符合纯文本或多模态LLM,目前并不支持CLIP类型的模型训练。 + +此外,SWIFT支持的所有embedding模型在模型forward最后都增加了normalize,如自行增加新模型请注意增加normalize层。 + +## loss + +目前SWIFT支持的Embedding模型可以使用的loss有: + +- cosine_similarity: cosine相似度loss,计算两个embedding的相似度,并根据label的值拟合,实际为MSE loss +- contrastive: 可调margin的对比学习loss,label仅支持0和1两个值 +- online_contrastive: 考虑hard negative和hard positive部分的contrastive loss,label仅支持0和1两个值 +- infonce: 在同一个batch中不同row两两计算cosine相似度,并使row内部相似度最大,不同row相似度最小,不需要label + +loss的源代码可以在[这里](https://github.com/modelscope/ms-swift/blob/main/swift/plugin/loss.py)找到。 + +## 数据集格式 + +> 注: +> 1. ``标签可以出现在`messages`/`positive_messages`/`negative_messages`的任意位置;它们各自拥有独立的`images`/`positive_images`/`negative_images`字段用于提供图片路径或URL。 +> 2. 不再需要跨字段的“对应顺序”。对齐规则为:`images`的长度等于`messages`中``标签的数量;`positive_images`与`negative_images`均为“list of list”,其外层长度分别等于`positive_messages`与`negative_messages`的长度;并且外层每一项的内层列表长度等于该条消息序列中``标签的数量。 +> 3. `messages`代表anchor样本(anchor sample);`positive_messages`/`negative_messages`为“list of messages”(因此多一层`[]`);相应地,`positive_images`/`negative_images`也多一层`[]`并与之逐项对齐。 +> 4. 也支持`