Unverified Commit 1b951620 authored by Xinyuan Tong's avatar Xinyuan Tong Committed by GitHub
Browse files

Updates transformers and timm dependencies (#7577)


Signed-off-by: default avatarXinyuan Tong <justinning0323@outlook.com>
parent 29bd4c81
...@@ -43,7 +43,8 @@ runtime_common = [ ...@@ -43,7 +43,8 @@ runtime_common = [
"soundfile==0.13.1", "soundfile==0.13.1",
"scipy", "scipy",
"torchao==0.9.0", "torchao==0.9.0",
"transformers==4.52.3", "transformers==4.53.0",
"timm==1.0.16",
"uvicorn", "uvicorn",
"uvloop", "uvloop",
"xgrammar==0.1.19", "xgrammar==0.1.19",
...@@ -105,7 +106,6 @@ test = [ ...@@ -105,7 +106,6 @@ test = [
"matplotlib", "matplotlib",
"pandas", "pandas",
"peft", "peft",
"timm",
"sentence_transformers", "sentence_transformers",
] ]
all = ["sglang[srt]", "sglang[openai]", "sglang[anthropic]", "sglang[litellm]", "sglang[torch_memory_saver]", "sglang[decord]"] all = ["sglang[srt]", "sglang[openai]", "sglang[anthropic]", "sglang[litellm]", "sglang[torch_memory_saver]", "sglang[decord]"]
......
...@@ -166,8 +166,7 @@ class Gemma3Attention(nn.Module): ...@@ -166,8 +166,7 @@ class Gemma3Attention(nn.Module):
prefix=add_prefix("o_proj", prefix), prefix=add_prefix("o_proj", prefix),
) )
# Determine if layer uses sliding window based on pattern self.is_sliding = config.layer_types[layer_id] == "sliding_attention"
self.is_sliding = bool((layer_id + 1) % config.sliding_window_pattern)
# Initialize the rotary embedding. # Initialize the rotary embedding.
if self.is_sliding: if self.is_sliding:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment