Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/arm/test/models/Gemma3n/gemma3n_test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_gemma3n_text_test_config() -> Gemma3nTextConfig:
altup_num_inputs=4,
altup_active_idx=0,
altup_correct_scale=True,
)
) # type: ignore[call-arg]
# Force eager attention path to keep the module exportable in tests.
config._attn_implementation = "eager"
return config
Expand All @@ -34,4 +34,4 @@ def get_gemma3n_audio_test_config() -> Gemma3nAudioConfig:
input_feat_size=128,
hidden_size=256,
rms_norm_eps=1e-6,
)
) # type: ignore[call-arg]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_phi3_test_config() -> Phi3Config:
original_max_position_embeddings=32,
use_cache=False,
tie_word_embeddings=False,
)
) # type: ignore[call-arg]
# Force eager attention path to keep the module exportable in tests.
config._attn_implementation = "eager"
return config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


# Source: https://github.com/huggingface/diffusers/blob/v0.33.1/tests/pipelines/stable_diffusion_3/test_pipeline_stable_diffusion_3.py#L56
CLIP_text_encoder_config = CLIPTextConfig(
CLIP_text_encoder_config = CLIPTextConfig( # type: ignore[call-arg]
bos_token_id=0,
eos_token_id=2,
hidden_size=32,
Expand All @@ -51,7 +51,7 @@

# Source: https://github.com/huggingface/diffusers/blob/v0.33.1/tests/pipelines/stable_diffusion_3/test_pipeline_stable_diffusion_3.py#L76
# Exported from: T5EncoderModel.from_pretrained("hf-internal-testing/tiny-random-t5").config
T5_encoder_config = T5Config(
T5_encoder_config = T5Config( # type: ignore[call-arg]
bos_token_id=0,
classifier_dropout=0.0,
d_ff=37,
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/modules/test_static_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@


test_configs = {
"multihead_attention": LlamaConfig(num_attention_heads=32),
"grouped_query_attention": LlamaConfig(
"multihead_attention": LlamaConfig(num_attention_heads=32), # type: ignore[call-arg]
"grouped_query_attention": LlamaConfig( # type: ignore[call-arg]
num_attention_heads=32, num_key_value_heads=4
),
"multi_query_attention": LlamaConfig(num_attention_heads=32, num_key_value_heads=1),
"multi_query_attention": LlamaConfig(num_attention_heads=32, num_key_value_heads=1), # type: ignore[call-arg]
}


Expand Down
Loading