-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[Chore]: Remove Olmo3 and FlexOlmo config copy #29677
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
base: main
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ | |
|
|
||
| import torch | ||
| from torch import nn | ||
| from transformers import Olmo2Config | ||
| from transformers import Olmo2Config, Olmo3Config | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While it's correct to import To fix this, you should re-introduce the architecture override. A good place for this would be in # in vllm/transformers_utils/config.py
def get_config(...):
...
config_dict, config = config_parser.parse(...)
# This model uses Olmo3ForCausalLM in transformers but Olmo2ForCausalLM
# in vLLM.
if config.model_type == "olmo3":
config.architectures = ["Olmo2ForCausalLM"]
... |
||
|
|
||
| from vllm.attention.layer import Attention | ||
| from vllm.compilation.decorators import support_torch_compile | ||
|
|
@@ -63,7 +63,6 @@ | |
| maybe_prefix, | ||
| ) | ||
| from vllm.sequence import IntermediateTensors | ||
| from vllm.transformers_utils.configs import Olmo3Config | ||
|
|
||
|
|
||
| class Olmo2Attention(nn.Module): | ||
|
|
||
This file was deleted.
This file was deleted.
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.
The new imports of
FlexOlmoConfigfromtransformersdrop our vendored config copies, but the repo still advertises compatibility withtransformers >=4.56.0(seerequirements/common.txt).FlexOlmoConfigandOlmo3Configwere only added in upstream transformers 4.57, so in any environment that installs 4.56.x—still allowed by our requirements—flex_olmo.py(andolmo2.py) will crash withImportErrorat import time. The lower bound should be raised or a fallback retained to avoid breaking supported installs.Useful? React with 👍 / 👎.