[Fix] Fissertion on YaRN model len (#2984)

This commit is contained in:
Woosuk Kwon 2024-02-23 12:57:48 -08:00 committed by GitHub
parent 57f044945f
commit f7c1234990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -354,7 +354,6 @@ def get_rope(
elif scaling_type == "yarn":
original_max_position = rope_scaling[
"original_max_position_embeddings"]
assert max_position == original_max_position * scaling_factor
extra_kwargs = {
k: v
for k, v in rope_scaling.items()