minor : fix compile warnings

This commit is contained in:
Georgi Gerganov 2023-05-19 20:14:51 +03:00
parent 5ea4339273
commit 4b7e245adf
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
4 changed files with 12 additions and 10 deletions

View file

@ -1,14 +1,16 @@
#include "llama.h"
#include "ggml.h"
#include <cassert>
#include <cmath>
#include "llama.h"
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <numeric>
#include <cassert>
#include <iostream>
#include <vector>
#include <algorithm>
void dump(const llama_token_data_array * candidates) {
for (size_t i = 0; i < candidates->size; i++) {
printf("%d: %f (%f)\n", candidates->data[i].id, candidates->data[i].p, candidates->data[i].logit);