Revert transformers pin (caused metadata bug on text model).
Instead, add all_tied_weights_keys as class attribute on PreTrainedModel
so MiniCPM-V's custom class inherits it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Pin transformers<4.48 to fix MiniCPM-V compatibility
MiniCPM-V-2_6 custom model class lacks the all_tied_weights_keys
attribute added in newer transformers, causing AttributeError during
model loading. Pinning to <4.48 avoids the breaking change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fix vision model loading: remove device_map=auto for MiniCPM-V
The MiniCPMV class lacks the all_tied_weights_keys attribute that
device_map=auto requires via infer_auto_device_map. ZeroGPU handles
GPU placement anyway, so device_map is unnecessary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>