知识卡片
词元边界不等于自然词边界
tokenizer把文本映射成模型词表中的ID序列,可能将一个词拆成多个子词,并把空格或标点编码进不同token。词表与切分规则属于具体模型配置;不能把某个GPT-2示例的token数量或词表大小推广到全部语言模型。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 因果与大语言模型
原书出处 · 1 处
- · 查看原书依据
The “Ġ” corresponds to a space. Note that punctuation marks are tokens, and that words like “counterfactual” are broken up into multiple tokens. Each token corresponds to an integer indexing the token in a large “vocabulary.” GPT-2 has a vocabulary size of 50,257.
参考来源
- 位置:《Causal AI》第13章《因果与大语言模型》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-13.xhtml)
- 结论依据:摘录中关于词元边界不等于自然词边界的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:The “Ġ” corresponds to a space. Note that punctuation marks are tokens, and that words like “counterfactual” are broken up into multiple tokens. Each token corresponds to an integer indexing the token in a large “vocabulary.” GPT-2 has a vocabulary size of 50,257.