Skip to content

Commit a543ddf

Browse files
committed
remove vocab hack
1 parent ebc7da5 commit a543ddf

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/llama-vocab.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,13 +2330,6 @@ void llama_vocab::impl::load(llama_model_loader & ml, const LLM_KV & kv) {
23302330
}
23312331
}
23322332

2333-
// @ngxson : quick hack for gpt-oss
2334-
for (const auto & t : token_to_id) {
2335-
if (t.first == "<|channel|>" || t.first == "<|message|>") {
2336-
id_to_token[t.second].attr = LLAMA_TOKEN_ATTR_NORMAL;
2337-
}
2338-
}
2339-
23402333
// sanity checks
23412334
if (special_eos_id != LLAMA_TOKEN_NULL && special_eog_ids.count(special_eos_id) == 0) {
23422335
special_eog_ids.insert(special_eos_id);

0 commit comments

Comments
 (0)