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

Update Llava GPU Example #12311

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

lzivan
Copy link
Contributor

@lzivan lzivan commented Oct 31, 2024

Description

  • Update new llava example

output = model.generate(**inputs, do_sample=False, max_new_tokens=args.n_predict)
et = time.time()
print(et - st)
print(processor.decode(output[0]))
Copy link
Contributor

@Oscilloscope98 Oscilloscope98 Nov 1, 2024

Choose a reason for hiding this comment

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

Please organize print message as

Inference time: xxxx s
-------------------- Input Image --------------------
http://farm6.staticflickr.com/5268/5602445367_3504763978_z.jpg
-------------------- Prompt --------------------
Describe this image.
-------------------- Output --------------------
xxxx

@Oscilloscope98 Oscilloscope98 changed the title update-llava-example Update Llava GPU Example Nov 1, 2024
@Oscilloscope98 Oscilloscope98 merged commit cd5e22c into intel-analytics:main Nov 1, 2024
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.

3 participants