Skip to content

Commit e1bbe61

Browse files
committed
gguf-py, llama : whitespace formatting fixes
1 parent 8bd8993 commit e1bbe61

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

gguf-py/gguf/constants.py

-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ class MODEL_TENSOR(IntEnum):
884884
MODEL_TENSOR.DEC_FFN_DOWN,
885885
MODEL_TENSOR.DEC_FFN_UP,
886886
MODEL_TENSOR.DEC_OUTPUT_NORM,
887-
888887
MODEL_TENSOR.ENC_ATTN_NORM,
889888
MODEL_TENSOR.ENC_ATTN_Q,
890889
MODEL_TENSOR.ENC_ATTN_K,

llama.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -2414,8 +2414,8 @@ struct llama_vocab {
24142414
bool tokenizer_add_bos = false;
24152415
bool tokenizer_add_eos = false;
24162416
bool tokenizer_ignore_merges = false;
2417-
bool tokenizer_remove_extra_whitespaces = false;
2418-
bool tokenizer_escape_whitespaces = true;
2417+
bool tokenizer_remove_extra_whitespaces = false;
2418+
bool tokenizer_escape_whitespaces = true;
24192419
bool tokenizer_treat_whitespace_as_suffix = false;
24202420

24212421
uint32_t n_precompiled_charsmap = 0;
@@ -4840,8 +4840,8 @@ static void llm_load_hparams(
48404840
case 24:
48414841
switch (hparams.n_ff) {
48424842
case 4096: model.type = e_model::MODEL_770M; break;
4843-
case 16384: model.type = e_model::MODEL_3B; break;
4844-
case 65536: model.type = e_model::MODEL_11B; break;
4843+
case 16384: model.type = e_model::MODEL_3B; break;
4844+
case 65536: model.type = e_model::MODEL_11B; break;
48454845
default: model.type = e_model::MODEL_UNKNOWN;
48464846
} break;
48474847
default: model.type = e_model::MODEL_UNKNOWN;
@@ -7680,8 +7680,8 @@ struct llm_build_context {
76807680
lctx.inp_s_copy = nullptr;
76817681
lctx.inp_s_mask = nullptr;
76827682
lctx.inp_s_seq = nullptr;
7683-
lctx.inp_pos_bucket = nullptr;
7684-
lctx.inp_enc_output = nullptr;
7683+
lctx.inp_pos_bucket = nullptr;
7684+
lctx.inp_enc_output = nullptr;
76857685
lctx.inp_cross_KQ_mask = nullptr;
76867686
}
76877687

0 commit comments

Comments
 (0)