mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Change RMSNorm eps to 1e-6 (#173)
I think this is what is used in the Python code
This commit is contained in:
		
							
								
								
									
										2
									
								
								ggml.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ggml.c
									
									
									
									
									
								
							| @@ -5556,7 +5556,7 @@ static void ggml_compute_forward_rms_norm_f32( | |||||||
|     const size_t nb2 = dst->nb[2]; |     const size_t nb2 = dst->nb[2]; | ||||||
|     const size_t nb3 = dst->nb[3]; |     const size_t nb3 = dst->nb[3]; | ||||||
|  |  | ||||||
|     const ggml_float eps = 1e-5f; // TODO: make this a parameter |     const ggml_float eps = 1e-6f; // TODO: make this a parameter | ||||||
|  |  | ||||||
|     // TODO: optimize |     // TODO: optimize | ||||||
|     for (int i03 = 0; i03 < ne03; i03++) { |     for (int i03 = 0; i03 < ne03; i03++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Georgi Gerganov
					Georgi Gerganov