mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	batched-bench : remove unused code (#9305)
This commit is contained in:
		@@ -3,32 +3,10 @@
 | 
				
			|||||||
#include "llama.h"
 | 
					#include "llama.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <algorithm>
 | 
					#include <algorithm>
 | 
				
			||||||
#include <cmath>
 | 
					 | 
				
			||||||
#include <cstdio>
 | 
					#include <cstdio>
 | 
				
			||||||
#include <string>
 | 
					#include <string>
 | 
				
			||||||
#include <vector>
 | 
					#include <vector>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// mutates the input string
 | 
					 | 
				
			||||||
static std::vector<int> parse_list(char * p) {
 | 
					 | 
				
			||||||
    std::vector<int> ret;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    char * q = p;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    while (*p) {
 | 
					 | 
				
			||||||
        if (*p == ',') {
 | 
					 | 
				
			||||||
            *p = '\0';
 | 
					 | 
				
			||||||
            ret.push_back(std::atoi(q));
 | 
					 | 
				
			||||||
            q = p + 1;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        ++p;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    ret.push_back(std::atoi(q));
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return ret;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static void print_usage(int, char ** argv) {
 | 
					static void print_usage(int, char ** argv) {
 | 
				
			||||||
    LOG_TEE("\nexample usage:\n");
 | 
					    LOG_TEE("\nexample usage:\n");
 | 
				
			||||||
    LOG_TEE("\n    %s -m model.gguf -c 2048 -b 2048 -ub 512 -npp 128,256,512 -ntg 128,256 -npl 1,2,4,8,16,32 [-pps]\n", argv[0]);
 | 
					    LOG_TEE("\n    %s -m model.gguf -c 2048 -b 2048 -ub 512 -npp 128,256,512 -ntg 128,256 -npl 1,2,4,8,16,32 [-pps]\n", argv[0]);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user