Skip to content

Commit 7292733

Browse files
authored
comment
- adding # NEW for assert num_heads % num_kv_groups == 0
1 parent 4925790 commit 7292733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch05/07_gpt_to_llama/converting-llama2-to-llama3.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@
481481
" ):\n",
482482
" super().__init__()\n",
483483
" assert d_out % num_heads == 0, \"d_out must be divisible by num_heads\"\n",
484-
" assert num_heads % num_kv_groups == 0, \"num_heads must be divisible by num_kv_groups\"\n",
484+
" assert num_heads % num_kv_groups == 0, \"num_heads must be divisible by num_kv_groups\" # NEW\n",
485485
"\n",
486486
" self.d_out = d_out\n",
487487
" self.num_heads = num_heads\n",

0 commit comments

Comments
 (0)