-
Notifications
You must be signed in to change notification settings - Fork 2
fix: genai config gaps - decoder path, image_processor.json, spatial_merge_size #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -353,9 +353,10 @@ def generate(self) -> dict[str, Any]: | |
| decoder_inputs = dict(self._decoder_inputs) | ||
| else: | ||
| decoder_inputs = _default_decoder_inputs(is_vlm=is_multimodal) | ||
| decoder_filename = "decoder/model.onnx" if is_multimodal else "model.onnx" | ||
| decoder: dict[str, Any] = { | ||
| "session_options": _make_session_options(self.ep), | ||
| "filename": "model.onnx", | ||
| "filename": decoder_filename, | ||
| "head_size": self.head_dim, | ||
|
Comment on lines
+356
to
360
|
||
| "hidden_size": self.hidden_size, | ||
| "inputs": decoder_inputs, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
genai_config.jsoncan referencevision_processor.jsonwhenhas_speechis true, but_write_processor_config()never writes that filename (it writes eitherprocessor_config.jsonorimage_processor.json). This makes the generated artifacts inconsistent: ORT-GenAI will try to load a processor file that wasn't exported.A concrete fix is to have processor-config writing share the same filename selection logic as genai-config generation (or write an additional copy under the referenced name when
has_speechis set).