Skip to content

Commit bd137ff

Browse files
committed
rebase and signing
Signed-off-by: ryan-mangeno <[email protected]>
2 parents 6a3ed2e + 5050f27 commit bd137ff

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

convert_hf_to_gguf_update.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class TOKENIZER_TYPE(IntEnum):
130130
{"name": "seed-coder", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/ByteDance-Seed/Seed-Coder-8B-Base", },
131131
{"name": "smoldocling", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/ds4sd/SmolDocling-256M-preview", },
132132
{"name": "a.x-4.0", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/skt/A.X-4.0", },
133-
{"name": "smoldocling", "tokt": TOKENIZER_TYPE.BPE, "repo": "https://huggingface.co/ds4sd/SmolDocling-256M-preview", },
134133
]
135134

136135
# some models are known to be broken upstream, so we will skip them as exceptions

gguf-py/gguf/tensor_mapping.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ class TensorNameMap:
359359
"transformer.h.{bid}.mlp.c_fc_1", # exaone
360360
"model.layers.{bid}.feed_forward.up_proj", # llama4
361361
"transformer_encoder.{bid}.ffn.w12", # neobert
362+
"blk.{bid}.ffn_up", # smoldocling
362363
"blk.{bid}.ffn_up", # smoldocling
363364
),
364365

src/llama-vocab.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,6 +1669,9 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
16691669
} else if (
16701670
tokenizer_pre == "hunyuan") {
16711671
pre_type = LLAMA_VOCAB_PRE_TYPE_HUNYUAN;
1672+
} else if (
1673+
tokenizer_pre == "smoldocling") {
1674+
pre_type = LLAMA_VOCAB_PRE_TYPE_SMOLDOCLING;
16721675
clean_spaces = false;
16731676
} else if (
16741677
tokenizer_pre == "smoldocling") {

0 commit comments

Comments
 (0)