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 mllm pt #2146

Merged
merged 5 commits into from
Sep 27, 2024
Merged

support mllm pt #2146

merged 5 commits into from
Sep 27, 2024

Conversation

Jintao-Huang
Copy link
Collaborator

PR type

  • New Feature

@Jintao-Huang
Copy link
Collaborator Author

#2145

@@ -275,6 +266,16 @@ def prepare_model_template_train(args, msg: Optional[Dict[str, Any]] = None):
except NotImplementedError:
pass

# Preparing LoRA
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fix lora

@@ -404,62 +404,50 @@ def check_example(self, example: Dict[str, Any]) -> None:
def add_default_tags(self, example: Dict[str, Any]) -> None:
history: History = deepcopy(example.get('history') or [])
query: str = example.get('query') or ''
response: str = example.get('response') or ''
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The response supports images and supports interleaved pre-training.

@Jintao-Huang Jintao-Huang merged commit 045d8c1 into modelscope:main Sep 27, 2024
1 of 2 checks passed
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.

2 participants