mirror of
				https://github.com/rasbt/LLMs-from-scratch.git
				synced 2025-11-04 03:40:21 +00:00 
			
		
		
		
	Fix d_out code comment in bonus materials (#715)
This commit is contained in:
		
							parent
							
								
									dc2f8e95d4
								
							
						
					
					
						commit
						6a4d0a1022
					
				@ -689,7 +689,7 @@
 | 
			
		||||
    "    def __init__(self, d_in, d_out, num_heads, context_length, dropout=0.0, qkv_bias=False):\n",
 | 
			
		||||
    "        super().__init__()\n",
 | 
			
		||||
    "\n",
 | 
			
		||||
    "        assert d_out % num_heads == 0, \"embed_dim is indivisible by num_heads\"\n",
 | 
			
		||||
    "        assert d_out % num_heads == 0, \"d_out is indivisible by num_heads\"\n",
 | 
			
		||||
    "\n",
 | 
			
		||||
    "        self.num_heads = num_heads\n",
 | 
			
		||||
    "        self.context_length = context_length\n",
 | 
			
		||||
@ -1002,7 +1002,7 @@
 | 
			
		||||
    "    def __init__(self, d_in, d_out, num_heads, context_length, dropout=0.0, qkv_bias=False):\n",
 | 
			
		||||
    "        super().__init__()\n",
 | 
			
		||||
    "\n",
 | 
			
		||||
    "        assert d_out % num_heads == 0, \"embed_dim is indivisible by num_heads\"\n",
 | 
			
		||||
    "        assert d_out % num_heads == 0, \"d_out is indivisible by num_heads\"\n",
 | 
			
		||||
    "\n",
 | 
			
		||||
    "        self.num_heads = num_heads\n",
 | 
			
		||||
    "        self.context_length = context_length\n",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user