Skip to content

[vlm] refactor: reuse standard encoders for packed samples - #116

Merged
kaimo455 merged 3 commits into
baidu-baige:masterfrom
zhujian19891203:codex/refactor-packed-vlm-encoders
Aug 20, 2026
Merged

[vlm] refactor: reuse standard encoders for packed samples#116
kaimo455 merged 3 commits into
baidu-baige:masterfrom
zhujian19891203:codex/refactor-packed-vlm-encoders

Conversation

@zhujian19891203

@zhujian19891203 zhujian19891203 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Reuse the standard phase-aware VQA and multi-mix QA encoders for offline-packed samples, remove duplicated packing-only encoders, and keep assistant end-token supervision in the shared SFT VQA preprocessing path.

Rationale

Packing should only unpack, encode, and concatenate samples; standard encoder reuse keeps packed and non-packed behavior aligned and respects subclass overrides.

@kaimo455

kaimo455 commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

@claude review this PR

Comment thread loongforge/data/multimodal/vlm_task_encoder.py Outdated
Comment thread loongforge/data/multimodal/vlm_task_encoder.py Outdated
Comment thread loongforge/data/multimodal/vlm_task_encoder.py
Comment thread loongforge/data/multimodal/vlm_task_encoder.py Outdated
Comment thread loongforge/data/multimodal/vlm_task_encoder.py
Comment thread loongforge/data/multimodal/vlm_task_encoder.py Outdated
@kaimo455
kaimo455 force-pushed the codex/refactor-packed-vlm-encoders branch from fe93957 to 0265d98 Compare August 20, 2026 05:52
@kaimo455
kaimo455 merged commit c627566 into baidu-baige:master Aug 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants