GLM icon indicating copy to clipboard operation
GLM copied to clipboard

BUG: GLM-10B-Chinese model generate " ⁇".

Open Tebmer opened this issue 1 year ago • 3 comments

Hi, When I use the seq2seq code to evaluate the original GLM-10-Chinese model, it sometimes generate in text (in fact these two question marks is a token, and the token id of _⁇ is 25383) .

For example: input: "zī yuán"的词语是[MASK] output:

input:单词“Duck”的读音是 output:单词“Duck”的读音是/tə d ⁇ æk/

Is ther anything wrong with the sentencepice tokenizer or the pretraining stage? And how to fix it? I think this token should be filtred.

THANKS!

Tebmer avatar Mar 28 '23 09:03 Tebmer

I checked the wudao dataest and found there are some irregular question marks in the text.

Is this the cause of the problem?

image

Tebmer avatar Mar 28 '23 11:03 Tebmer

OK. The reason is that the trained tokenizer encounter some unseen tokens while pretraining such as "岿". Maybe the vocabulary of GLM10bchinese is not big enough.

Tebmer avatar Mar 30 '23 06:03 Tebmer

met same issue: 蚂蟥 的 “蟥 ” 椪柑树 的 “椪” ,token id会被转换为0

superhg avatar Apr 14 '23 01:04 superhg