Skip to content
Merged
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
5 changes: 3 additions & 2 deletions examples/qualcomm/oss_scripts/llama/model/static_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def __init__(self, layer_idx: int, config: ModelArgs, output_new_cache_only=Fals
self.enable_masked_softmax = getattr(config, "enable_masked_softmax", False)
self.use_qk_norm = config.use_qk_norm
self.qk_norm_before_rope = config.qk_norm_before_rope
# If None, assume each layer uses rope
self.use_rope = (
config.no_rope_layer_interval
and (layer_idx + 1) % config.no_rope_layer_interval
config.no_rope_layer_interval is None
or (layer_idx + 1) % config.no_rope_layer_interval
)

if self.use_qk_norm:
Expand Down
Loading