convert : Llama4 RoPE fix (#12889)

This commit is contained in:
Daniel Han 2025-04-11 00:49:09 -07:00 committed by GitHub
parent 8ac9f5d765
commit ec6c09d0fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1750,7 +1750,7 @@ class LlamaModel(Model):
low_freq_wavelen = old_context_len / low_freq_factor
high_freq_wavelen = old_context_len / high_freq_factor
assert low_freq_wavelen != high_freq_wavelen
# assert low_freq_wavelen != high_freq_wavelen # Errors for Llama4
rope_factors = []
for freq in freqs: