Skip to content

Commit b527d48

Browse files
committed
merge master
1 parent 319b4bc commit b527d48

File tree

4 files changed

+608
-207
lines changed

4 files changed

+608
-207
lines changed

examples/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ target_link_libraries(common-ggml PRIVATE ggml)
1919
target_include_directories(common-ggml PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
2020

2121
add_subdirectory(gpt-2)
22-
#add_subdirectory(gpt-j)
22+
add_subdirectory(gpt-j)
2323
add_subdirectory(whisper)
2424
add_subdirectory(mnist)
25-
#add_subdirectory(gpt-neox)
26-
#add_subdirectory(dolly-v2)
25+
add_subdirectory(gpt-neox)
26+
add_subdirectory(dolly-v2)
2727
add_subdirectory(replit)
2828
add_subdirectory(mpt)
2929
add_subdirectory(starcoder)

include/ggml/ggml.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,14 @@ extern "C" {
401401
GGML_OP_CLAMP,
402402
GGML_OP_CONV_1D,
403403
GGML_OP_CONV_2D,
404+
GGML_OP_CONV_TRANSPOSE_1D,
404405
GGML_OP_CONV_TRANSPOSE_2D,
405406
GGML_OP_POOL_1D,
406407
GGML_OP_POOL_2D,
407408

409+
GGML_OP_CONV_1D_STAGE_0, // internal
410+
GGML_OP_CONV_1D_STAGE_1, // internal
411+
408412
GGML_OP_UPSCALE, // nearest interpolate
409413

410414
GGML_OP_FLASH_ATTN,
@@ -1387,6 +1391,14 @@ extern "C" {
13871391
int s,
13881392
int d);
13891393

1394+
GGML_API struct ggml_tensor * ggml_conv_transpose_1d(
1395+
struct ggml_context * ctx,
1396+
struct ggml_tensor * a,
1397+
struct ggml_tensor * b,
1398+
int s0,
1399+
int p0,
1400+
int d0);
1401+
13901402
GGML_API struct ggml_tensor * ggml_conv_2d(
13911403
struct ggml_context * ctx,
13921404
struct ggml_tensor * a,

src/ggml-alloc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,3 @@ size_t ggml_allocr_alloc_graph(struct ggml_allocr * alloc, struct ggml_cgraph *
585585
size_t ggml_allocr_max_size(struct ggml_allocr * alloc) {
586586
return alloc->max_size;
587587
}
588-
589-
size_t ggml_allocr_max_size(struct ggml_allocr * alloc) {
590-
return alloc->max_size;
591-
}

0 commit comments

Comments
 (0)