Skip to content

Commit 57c3eb4

Browse files
Apply suggestions from code review
Co-authored-by: compilade <[email protected]>
1 parent d637bb9 commit 57c3eb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gguf-py/gguf/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class SSM:
130130
INNER_SIZE = "{arch}.ssm.inner_size"
131131
STATE_SIZE = "{arch}.ssm.state_size"
132132
TIME_STEP_RANK = "{arch}.ssm.time_step_rank"
133-
DT_B_C_RMS = "{arch}.ssm.dt_b_c_rms"
133+
DT_B_C_RMS = "{arch}.ssm.dt_b_c_rms"
134134

135135
class Tokenizer:
136136
MODEL = "tokenizer.ggml.model"
@@ -1373,7 +1373,7 @@ def get_type(val: Any) -> GGUFValueType:
13731373
KEY_SSM_INNER_SIZE = Keys.SSM.INNER_SIZE
13741374
KEY_SSM_STATE_SIZE = Keys.SSM.STATE_SIZE
13751375
KEY_SSM_TIME_STEP_RANK = Keys.SSM.TIME_STEP_RANK
1376-
KEY_SSM_DT_B_C_RMS = Keys.SSM.DT_B_C_RMS
1376+
KEY_SSM_DT_B_C_RMS = Keys.SSM.DT_B_C_RMS
13771377

13781378
# tokenization
13791379
KEY_TOKENIZER_MODEL = Keys.Tokenizer.MODEL

src/llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ static const std::map<llm_kv, const char *> LLM_KV_NAMES = {
427427
{ LLM_KV_SSM_INNER_SIZE, "%s.ssm.inner_size" },
428428
{ LLM_KV_SSM_STATE_SIZE, "%s.ssm.state_size" },
429429
{ LLM_KV_SSM_TIME_STEP_RANK, "%s.ssm.time_step_rank" },
430-
{ LLM_KV_SSM_DT_B_C_RMS, "%s.ssm.dt_b_c_rms" },
430+
{ LLM_KV_SSM_DT_B_C_RMS, "%s.ssm.dt_b_c_rms" },
431431

432432
{ LLM_KV_TOKENIZER_MODEL, "tokenizer.ggml.model" },
433433
{ LLM_KV_TOKENIZER_PRE, "tokenizer.ggml.pre" },

0 commit comments

Comments
 (0)