Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support torchrun_args for dpo cli and support web_ui model deployment #496

Merged
merged 32 commits into from
Mar 6, 2024

Conversation

slin000111
Copy link
Contributor

1.support torchrun_args for swift dpo cli
2.support model deployment for swift web_ui

slin000111 and others added 30 commits January 9, 2024 20:48
add examples aigc text_to_image
add diffusers version
modify inference scripts
support dpo cli and add examples controlnet and dreambooth
fix load adapter layers and some error
Modify values of some arguments in sdxl
@@ -50,7 +50,7 @@ def cli_main() -> None:
argv = argv[1:]
file_path = importlib.util.find_spec(ROUTE_MAPPING[method_name]).origin
torchrun_args = get_torchrun_args()
if torchrun_args is None or method_name != 'sft':
if torchrun_args is None or method_name != 'sft' or method_name != 'dpo':
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method_name not in (xxx, xxx)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Jintao-Huang Jintao-Huang merged commit 3f1c753 into modelscope:main Mar 6, 2024
1 of 2 checks passed
tastelikefeet added a commit to tastelikefeet/swift that referenced this pull request Mar 6, 2024
* commit '8a128f2549d294140c6f5e1400fb8164575fda32':
  fix transformers==4.33.* (modelscope#498)
  support torchrun_args for dpo cli and support web_ui model deployment (modelscope#496)
tastelikefeet added a commit that referenced this pull request Mar 9, 2024
tastelikefeet added a commit to tastelikefeet/swift that referenced this pull request Mar 13, 2024
* main: (22 commits)
  Fix galore linears (modelscope#541)
  fix checkpoint in model_id_or_path (modelscope#542)
  Neftune support VL models (modelscope#539)
  update multi-modal docs (modelscope#538)
  support deepseek vl (modelscope#536)
  Support deepseek vl (modelscope#535)
  Update multi modal docs (modelscope#524)
  Support GaLore (modelscope#532)
  fix gradio (modelscope#533)
  Support cogvlm (modelscope#531)
  Fix web-ui more-params (modelscope#530)
  fix hyper parameters (modelscope#529)
  Support npu (modelscope#528)
  fix typo
  Fix test cases (modelscope#526)
  Support deployment (modelscope#523)
  update qwen1.5 best practice (modelscope#520)
  Add transfer README for cources (modelscope#518)
  revert code
  Revert "support torchrun_args for dpo cli and support web_ui model deployment (modelscope#496)"
  ...

# Conflicts:
#	swift/llm/utils/argument.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants