You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* vlm_grpo: fix multi-image-per-sample for LFM2-VL
TRL's GRPO buffering (split_pixel_values_by_grid -> split_tensor_dict ->
unsplit_pixel_values_by_grid) does not recognise LFM2-VL's layout, where
pixel_values, spatial_shapes (aliased image_sizes) and pixel_attention_mask
are indexed by image rather than by sample. The stock split is a no-op for
it, so split_tensor_dict slices the image axis by sample count: with >1
image/sample all but one sample's images are dropped and the logprob forward
raises "Image features and image tokens do not match".
LFMVLMGRPOTrainer._prepare_inputs scope-swaps an LFM2-VL-aware split/merge
into TRL's namespace for the super() call (restored in finally), mirroring the
existing _aliasing_spatial_shapes_as_image_sizes pattern instead of mutating
TRL's module globals at import. Removable once huggingface/trl#6114 ships.
Validated: 5-image dense GRPO smoke trains (0 mismatch errors).
* deps: pin backend install profiles
* fa2: add required attention validation
* runtime: support ROCm Ray on Slurm
* training: avoid eager GRPO backend imports
* style: apply pre-commit formatting
* Split CUDA and ROCm install profiles
* Add uv backend project aliases
* deps: pin TRL to 1.2.0
* runtime: clean up ROCm Ray support
* deps: make FA2 install explicit
* docs: clarify FA2 install flow
* docs: collapse advanced install details
* fix: normalize devices before FA2 env checks
* test: use repo-local e2e output paths
---------
Co-authored-by: Alay Shah <alay.shah@liquid.ai>
Co-authored-by: alay2shah <alay0shah@gmail.com>
0 commit comments