mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	all : be more strict about converting float to double (#458)
* Be more strict about converting float to double * Test equivalence of round, SILU implementations Test module is commented out in CMakeLists.txt because the tests may take a long time, depending on how much the compiler optimizes. * Fix softmax in perplexity.cpp * all : prefer float over double where appropriate * perplexity : add <cmath> --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
		| @@ -50,8 +50,8 @@ int main(int argc, char ** argv) { | ||||
|         const int64_t t_main_end_us = ggml_time_us(); | ||||
|  | ||||
|         printf("\n"); | ||||
|         printf("%s: quantize time = %8.2f ms\n", __func__, t_quantize_us/1000.0f); | ||||
|         printf("%s:    total time = %8.2f ms\n", __func__, (t_main_end_us - t_main_start_us)/1000.0f); | ||||
|         printf("%s: quantize time = %8.2f ms\n", __func__, t_quantize_us/1000.0); | ||||
|         printf("%s:    total time = %8.2f ms\n", __func__, (t_main_end_us - t_main_start_us)/1000.0); | ||||
|     } | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stephan Walter
					Stephan Walter