microsoft / microsoft/onnxruntime-genai

Better error message for when model.type is incorrect

Open
#1,825 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.1k
Forks
354
Avg merge
2d 16h
Merged PRs (30d)
85

Description

In the genai config, when the "type" of the "model" is incorrect, genai will output `RuntimeError: Load model from gemma-3-270m/ failed:Protobuf parsing failed.` without further information. The error message is not reflective of the actual error and should be improved to guide users to reach the correct config.

cc @baijumeswani

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the incorrect model.type configuration in the genai config and tracing where model loading produces the `Protobuf parsing failed` RuntimeError. Identify the existing configuration or model-loading entry point and related error handling. Done means an incorrect type reports a specific, actionable configuration error instead of the misleading protobuf message.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
ai
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.