mirror of
				https://github.com/rasbt/LLMs-from-scratch.git
				synced 2025-11-03 19:30:26 +00:00 
			
		
		
		
	* Organized setup instructions * update tets * link checker action * raise error upon broken link * fix links * fix links * delete duplicated paragraph
		
			
				
	
	
	
		
			488 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			488 B
		
	
	
	
	
	
	
	
Optimizing Hyperparameters for Pretraining
The hparam_search.py script, based on the extended training function in Appendix D: Adding Bells and Whistles to the Training Loop, is designed to find optimal hyperparameters via grid search.
Note
This script will take a long time to run. You may want to reduce the number of hyperparameter configurations explored in the
HPARAM_GRIDdictionary at the top.