Repository navigation
Conversation
|
Hey @ziywang50 you pinged pretty much every maintainer in the lib, I edited the pr description but pls be careful next time. Dw it happens but it creates unnecessary noise cc @zucchini-nlp because I think you tried to ping her here |
Sorry about that, and thanks for fixing it. |
| inputs_embeds=inputs_embeds, | ||
| vision_feature_layer=vision_feature_layer, |
There was a problem hiding this comment.
LOL, this started in random model and seems to be copied now everywhere 😭
dw, not on you
|
fixes llava next as per your title but diff has no llava 🧐 @ziywang50 |
4cca449 to
a6a3a4a
Compare
Thanks, I rebased on main. The |
There was a problem hiding this comment.
oh the modular is now visible again 😆
|
run-slow: aya_vision |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
The AMD failure in test_small_model_integration_forward is expected from this Should I update the expectations to the old values × 0.25? I can't run the
Note: An AI Assistant was used to write this. I have ran and verified the data myself. |
|
yeah, we should update them - at least the cuda expectations. For AMD feel free if you have the machine but don't feel forced |
Updated all three entries to the old values × logit_scale (0.25). Since 0.25 |
08f921b to
46f86b0
Compare
|
run-slow: aya_vision |
CI (Nvidia + AMD)Nvidia · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard AMD · ✅ No new failures 🎉👏 · ⚙️ Workflow · 📊 Dashboard Failures (2 pre-existing)Pre-existing failures (still failing) — 2 total: Same error (2): - aya_vision: |
|
@zucchini-nlp the slow CI is green on both Nvidia and AMD now (only the two |
|
merging , thanks |
Co-authored-by: Claude <noreply@anthropic.com>
46f86b0 to
b0de651
Compare
|
[For maintainers] Suggested jobs to run (before merge) run-slow: aya_vision |
The merge queue run failed in |
What does this PR do?
AyaVisionForConditionalGenerationputs its ownlm_headon top of the base text model, so thelogit_scalemultiplication thatCohereForCausalLM/Cohere2ForCausalLMapply after their head is skipped. Measured on main with tiny configs againstCohere2ForCausalLMwith the same text weights (details in #49937), AyaVision's logits are off by 16x (logit_scale=0.0625). Greedy decoding is unaffected, but sampling, beam scores,output_scoresand the training loss use the wrong values.This PR multiplies by
text_config.logit_scaleafterlm_head, as the Cohere models do.modular_aya_vision.pynow writes outforward; the regeneratedmodeling_aya_vision.pychanges by one line.LlavaNext has the same problem with Granite text backbones (8x off with
logits_scaling=8), but there the scaling depends on the backbone (Granite divides bylogits_scaling, HyperCLOVAX multiplies by it), so I'll handle it in a separate PR, following the per-model approachgranite4_visionalready uses.There is no regression test in this PR yet; I can add one comparing the logits with
Cohere2ForCausalLMon the same weights, as #50290 does for GraniteSpeech, if you'd like.Part of #49937 (AyaVision only; LlavaNext will follow, and GraniteSpeech is handled in #50290).
I used an AI assistant (Claude) to help read the code and write this change.
Who can review?
@zucchini-nlp