Skip to content

Commit

Permalink
fix the misidentification of rwkv5 as rwkv7 (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Dec 13, 2024
1 parent 068a70b commit 426d309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend-python/rwkv_pip/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ def __init__(self, model, strategy, verbose=True, convert_and_save_and_exit=None
if len(w[x].shape) > 1:
if w[x].shape[1] > 1:
self.version = max(5.2, self.version)
else:
elif "att.r_k" in x:
self.version = 7
prxxx(f"Model detected: v{self.version:.1f}")
return
Expand Down

0 comments on commit 426d309

Please sign in to comment.