Skip to content

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: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