You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. I have searched related issues but cannot get the expected help.
2. The bug has not been fixed in the latest version.
3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
5. Please use English, otherwise it will be closed.
Describe the bug
Hi,
When I try to launch Omni 7B on the SGLang runtime (working already fine for multiple other Qwen models that I tested), I get the error mentioned here above:
AttributeError: 'Qwen2_5OmniConfig' object has no attribute 'hidden_size'
I understand that it's probably some parameter(s) that I have to add / update in the model configuration files (like config.json) that I pulled from HF.
But I don't know which ones. Can somebody guide me?
I see "hidden_size": xxx in several places )(1 example below) of config.json as its a multi-channel model. So, is it needed in another place(s) of this file ?
The error you're encountering, "AttributeError: 'Qwen2_5OmniConfig' object has no attribute 'hidden_size'", suggests that the configuration for the Qwen2.5-Omni-7B model is missing the 'hidden_size' attribute. This attribute is typically required for model initialization and is expected to be present in the model's configuration file (e.g., config.json).
To resolve this issue, you should ensure that the config.json file for the Qwen2.5-Omni-7B model includes the 'hidden_size' attribute. You can add it manually if it's missing. The value for 'hidden_size' should match the architecture of the model. For example, if the model's architecture specifies a hidden size of 896, you should include "hidden_size": 896 in the config.json file.
If the issue persists, it might be due to a mismatch between the model configuration and the SGLang runtime. In such cases, you may need to check for updates or patches that address compatibility issues with the Qwen2.5-Omni-7B model in SGLang. You are welcome to raise a PR to solve this issue or have a patch locally!
Checklist
Describe the bug
Hi,
When I try to launch Omni 7B on the SGLang runtime (working already fine for multiple other Qwen models that I tested), I get the error mentioned here above:
AttributeError: 'Qwen2_5OmniConfig' object has no attribute 'hidden_size'
I understand that it's probably some parameter(s) that I have to add / update in the model configuration files (like config.json) that I pulled from HF.
But I don't know which ones. Can somebody guide me?
I see
"hidden_size": xxx
in several places )(1 example below) of config.json as its a multi-channel model. So, is it needed in another place(s) of this file ?Thanks!
Didier
Reproduction
Environment
redhat9-latest
from https://hub.docker.com/repository/docker/didierdurand/lic-sglang/generalThe text was updated successfully, but these errors were encountered: