-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Add Phi-3.5-vision #36036
base: main
Are you sure you want to change the base?
Add Phi-3.5-vision #36036
Conversation
Looks good so far! The TODO list from here is:
Once everything is green, then:
Once the new tests are green as well, then:
At that point, the PR should be finished! |
4911ef9
to
7e16056
Compare
Fixes #36166! |
I've run into an issue when trying to run the model. From Modeling_phi3_v.py I'm getting "AttributeError: 'DynamicCache' object has no attribute 'get_max_length'" This might be due to a change to the DynamicCache class, but I really can't tell! |
@Dahlbomii hey! Yes, we deprecated |
Woah - this means the remote code version of Phi-3.5-vision-instruct is broken on |
cc @zucchini-nlp @gante I can't figure this one out either! The |
Seems like Phi-3.5V was not updated for the latest changes we had in generation, probably it has its own custom generation loop. For this test, we can call |
@zucchini-nlp yes, that was it, sorry! They don't override |
1f31710
to
0848b01
Compare
…ry and get things working in general, but there's a handful of tests I just can't get to pass! They all seem to be related to the GenerationTesterMixin class, and in cross-referencing pixtral's(a comparable model) test_modeling code, that class isn't included there. Ultimately I'm stumped as to why it's failing or if it's even needed here
52f6b48
to
56c8b9f
Compare
@Rocketknight1 for reasons that escape me, when the test processor tries to call self.get_component for the tokenizer, it breaks. Any insight as to why? |
Draft PR for now, still need to add tests and convert to modular
cc @Rocketknight1
Fixes #36071