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

[Feature] Support XTuner Lite Llava #2191

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pppppM
Copy link
Collaborator

@pppppM pppppM commented Jul 31, 2024

In XTuner Lite, some modifications were made to HF Llava to support the LLM part which is remote code. As a result, the saved HF Llava model needs to be loaded using AutoModel.

https://github.com/pppppM/xtuner/tree/lite/xtuner/_lite/modelings/llava

@pppppM pppppM requested a review from irexyc July 31, 2024 02:43
@lvhan028 lvhan028 added the enhancement New feature or request label Aug 1, 2024
if arch == 'LlavaForConditionalGeneration':
has_remote_code = hasattr(hf_config, 'auto_map')
if has_remote_code:
# HACK: hardcode for XTuner Llava
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we have llava model trained with xtuner to test it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants