Skip to content

Commit

Permalink
batched-bench : remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Sep 4, 2024
1 parent 7605ae7 commit 988d2c1
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions examples/batched-bench/batched-bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,10 @@
#include "llama.h"

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <string>
#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 argc, char ** argv, const gpt_params & params) {
gpt_params_print_usage(argc, argv, params);

Expand Down

0 comments on commit 988d2c1

Please sign in to comment.