ggml : drop mode & 1 == 1 support for ggml_rope
ggml-ci
This commit is contained in:
parent
f9d2b25261
commit
ce89cd5573
2 changed files with 3 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -6245,6 +6245,8 @@ static struct ggml_tensor * ggml_rope_impl(
|
||||||
float xpos_base,
|
float xpos_base,
|
||||||
bool xpos_down,
|
bool xpos_down,
|
||||||
bool inplace) {
|
bool inplace) {
|
||||||
|
GGML_ASSERT((mode & 1) == 0 && "mode & 1 == 1 is no longer supported");
|
||||||
|
|
||||||
GGML_ASSERT(ggml_is_vector(b));
|
GGML_ASSERT(ggml_is_vector(b));
|
||||||
GGML_ASSERT(b->type == GGML_TYPE_I32);
|
GGML_ASSERT(b->type == GGML_TYPE_I32);
|
||||||
GGML_ASSERT(a->ne[2] == b->ne[0]);
|
GGML_ASSERT(a->ne[2] == b->ne[0]);
|
||||||
|
|
2
ggml.h
2
ggml.h
|
@ -1460,7 +1460,7 @@ extern "C" {
|
||||||
struct ggml_tensor * b);
|
struct ggml_tensor * b);
|
||||||
|
|
||||||
// rotary position embedding
|
// rotary position embedding
|
||||||
// if mode & 1 == 1, skip n_past elements (DEPRECATED)
|
// if mode & 1 == 1, skip n_past elements (NOT SUPPORTED)
|
||||||
// if mode & 2 == 1, GPT-NeoX style
|
// if mode & 2 == 1, GPT-NeoX style
|
||||||
// if mode & 4 == 1, ChatGLM style
|
// if mode & 4 == 1, ChatGLM style
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue