We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Hi, thanks for your interest in our work. We are still working on code cleaning.
For now, you can install the LLaVA repo and use this gist to replace the model/builder.py file in llava.
model/builder.py
Then, you can call the LLaVA-RLHF model by:
load_bf16 = True tokenizer, model, image_processor, context_len = load_pretrained_model( model_path, None, model_name, load_bf16=load_bf16) model = PeftModel.from_pretrained( model, lora_path, )
And remember to convert the input image to torch.bfloat16
torch.bfloat16
images = images.to(dtype=torch.bfloat16)
Sorry, something went wrong.
So after replacing the gist, it will work straight-forward with the GRADIO? (Where should i write the code above?)
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: