mirror of
https://github.com/deepseek-ai/DeepSeek-Coder.git
synced 2026-11-05 00:57:19 +00:00
[GH-ISSUE #50] tokenizer.model #41
Labels
No labels
documentation
ENV
pull-request
research question
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-Coder#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SinanAkkoyun on GitHub (Nov 24, 2023).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-Coder/issues/50
Hey!
I'd like to work on implementing exllama support, but the
tokenizer.modelis missing.https://discord.com/channels/1169871344037548062/1170016413428228168/1171019891839615077
https://discord.com/channels/1169871344037548062/1170016413428228168/1171040772229967952
A couple of weeks ago I asked for this in the discord, I was told that you are working on that
I would highly appreciate if you published the
tokenizer.model:)@guoday commented on GitHub (Nov 24, 2023):
Thank you for your interest in DeepSeek Coder. Currently we can not provide a sentencepiece model (tokenizer.model) that achieves the same output as the existing HuggingFace Tokenizer. We are working hard to help the model quantization community directly support Huggingface's Tokenizer, and updates on our progress will be timely synced to https://github.com/deepseek-ai/DeepSeek-Coder#7-qa.
@guoday commented on GitHub (Nov 24, 2023):
For exllamaV2, we are also working on it.
@SinanAkkoyun commented on GitHub (Nov 25, 2023):
Thank you for your fast reply.
So, would it totally suffice if Exllamav2 also supported the HF tokenzier? Is the deepseek model architecture equivalent to Llama only except for the tokenizer?
@guoday commented on GitHub (Nov 25, 2023):
Yes, we use the same architecture as Llama except for the tokenizer. We attempted to convert the HuggingFace Tokenizer into a sentencepiece model (tokenizer.model), but couldn't achieve the same output. Therefore, we have to try to enable Exllamav2 to support the HF tokenizer. The current issue is that Exllamav2 uses a feature (ignore special token) within the sentencepiece model, which the HF tokenizer doesn't have. We are actively working on a solution.
@SinanAkkoyun commented on GitHub (Nov 26, 2023):
That's awesome, thank you for the work!!!
@BingxuanWang commented on GitHub (Nov 28, 2023):
@SinanAkkoyun Hi, we just updated our readme about exllamav2, you could try out the forked version which supports huggingface tokenizer and we'd like to hear from your feedback.
@SinanAkkoyun commented on GitHub (Nov 28, 2023):
Hi! Thank you so much, I will test your fork asap
@SinanAkkoyun commented on GitHub (Nov 28, 2023):
@BingxuanWang I just tried to run the fork and the models only output nonsense
I even followed the exact prompt formatting, I am using GPTQ quants of TheBloke of the 6.7B and 1.3B model
6.7B shows very similar behaviour, but often returns some kind of invisible token in an infinite loop
@SinanAkkoyun commented on GitHub (Nov 28, 2023):
Turboderp told me that RoPe scale 4 is needed, now the model outputs english sentences. The 6.7B model works fine, the 1.3B quickly runs into repetition loops, but that seems to be a matter of quantization bitrate rather than pure inference
Please add the the chat_formats from here to the PR:
https://github.com/SinanAkkoyun/exllama-v2/tree/deepseek
Thank you for the work!
@leedrake5 commented on GitHub (Dec 27, 2023):
Wanted to check in on this - trying to compile for llama.cpp but missing tokenizer.model is hamstringing that effort.
@BingxuanWang commented on GitHub (Dec 28, 2023):
@leedrake5 Please refer to https://github.com/deepseek-ai/DeepSeek-Coder#7-qa for the tokenizer.model issue
@leedrake5 commented on GitHub (Dec 28, 2023):
@BingxuanWang That worked perfectly, thanks!