Skip to content

flag for export model to enable export InternVL2#3970

Open
przepeck wants to merge 7 commits intomainfrom
przepeck/vlm_intern_fix
Open

flag for export model to enable export InternVL2#3970
przepeck wants to merge 7 commits intomainfrom
przepeck/vlm_intern_fix

Conversation

@przepeck
Copy link
Collaborator

🛠 Summary

CVS-180948
Adding new parameter to export_model to enable export of model with requirement for trusting remote code.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a --trust_remote_code flag to the model export flow to support exporting InternVL2 (and other models requiring trusted remote code) by passing the corresponding option through to tokenizer conversion.

Changes:

  • Added --trust_remote_code CLI flag to export_model.py and plumbed it into the convert_tokenizer invocation.
  • Updated demo/docs command examples and usage output to include the new flag.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
demos/continuous_batching/vlm/README.md Updates InternVL2 export commands to include --trust_remote_code.
demos/common/export_models/export_model.py Adds CLI flag and conditionally appends --trust-remote-code to convert_tokenizer.
demos/common/export_models/README.md Documents the new CLI flag in usage/help output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

przepeck and others added 3 commits February 11, 2026 15:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants