sync: update ggml

This commit is contained in:
leejet 2024-07-28 18:30:35 +08:00
parent 73c2176648
commit 4a6e36edc5
6 changed files with 17 additions and 14 deletions

2
ggml

@ -1 +1 @@
Subproject commit 34a63747c4f0edf952267c3d0c1c1ef3dd9fe827
Subproject commit 89fd77041d5eb2087eb340711468a02cc479634d

View File

@ -20,9 +20,9 @@
#include <unordered_map>
#include <vector>
#include "ggml/ggml-alloc.h"
#include "ggml/ggml-backend.h"
#include "ggml/ggml.h"
#include "ggml-alloc.h"
#include "ggml-backend.h"
#include "ggml.h"
#ifdef SD_USE_CUBLAS
#include "ggml-cuda.h"

View File

@ -11,9 +11,9 @@
#include "util.h"
#include "vocab.hpp"
#include "ggml/ggml-alloc.h"
#include "ggml/ggml-backend.h"
#include "ggml/ggml.h"
#include "ggml-alloc.h"
#include "ggml-backend.h"
#include "ggml.h"
#include "stable-diffusion.h"

View File

@ -10,8 +10,8 @@
#include <tuple>
#include <vector>
#include "ggml/ggml-backend.h"
#include "ggml/ggml.h"
#include "ggml-backend.h"
#include "ggml.h"
#include "json.hpp"
#include "zip.h"

View File

@ -55,10 +55,10 @@ enum schedule_t {
// same as enum ggml_type
enum sd_type_t {
SD_TYPE_F32 = 0,
SD_TYPE_F16 = 1,
SD_TYPE_Q4_0 = 2,
SD_TYPE_Q4_1 = 3,
SD_TYPE_F32 = 0,
SD_TYPE_F16 = 1,
SD_TYPE_Q4_0 = 2,
SD_TYPE_Q4_1 = 3,
// SD_TYPE_Q4_2 = 4, support has been removed
// SD_TYPE_Q4_3 = 5, support has been removed
SD_TYPE_Q5_0 = 6,
@ -86,6 +86,9 @@ enum sd_type_t {
SD_TYPE_F64 = 28,
SD_TYPE_IQ1_M = 29,
SD_TYPE_BF16 = 30,
SD_TYPE_Q4_0_4_4 = 31,
SD_TYPE_Q4_0_4_8 = 32,
SD_TYPE_Q4_0_8_8 = 33,
SD_TYPE_COUNT,
};

View File

@ -22,7 +22,7 @@
#include <unistd.h>
#endif
#include "ggml/ggml.h"
#include "ggml.h"
#include "stable-diffusion.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION