Skip to content

Commit

Permalink
sync: update ggml
Browse files Browse the repository at this point in the history
  • Loading branch information
leejet committed Jul 28, 2024
1 parent 73c2176 commit 4a6e36e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ggml
Submodule ggml updated 330 files
6 changes: 3 additions & 3 deletions ggml_extend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions model.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
11 changes: 7 additions & 4 deletions stable-diffusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <unistd.h>
#endif

#include "ggml/ggml.h"
#include "ggml.h"
#include "stable-diffusion.h"

#define STB_IMAGE_RESIZE_IMPLEMENTATION
Expand Down

0 comments on commit 4a6e36e

Please sign in to comment.