Skip to content

Commit

Permalink
correct the formula for k (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
defdet authored Jan 8, 2024
1 parent b0c337c commit 6bb1905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/determine_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
n = len(model.model.layers)
r = q_size // k_size
h = model.config.num_attention_heads // r
k = q_size // m // h
k = k_size // m // h

n_params = sum(x.numel() for x in model.parameters())

Expand Down

0 comments on commit 6bb1905

Please sign in to comment.