知识卡片
子词训练与模型使用分开管理
结构图:
flowchart TD
A[训练语料及字符或字节规则] --> B[学习子词词表与分段规则]
B --> C[固定词元编号及特殊项]
C --> D[训练或匹配模型参数]
B --> E[保存分词器配置与模型文件]
D --> E
E --> F[同一契约编码新文本]
F --> G[模型预测]
BPE、WordPiece和Unigram等机制不同,不能只保留一个词表名字就认定兼容。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 思维的词元
原书出处 · 1 处
- · 查看原书依据
Another challenge of BPE tokenizers is all the bookkeeping you need to do to keep track of which trained tokenizer goes with each of your trained models. Addressing this problem was one of Hugging Face’s major innovations. Their team made it easy to store and share all the preprocessing data, such as the tokenizer vocabulary, alongside the language model. This makes it easier to reuse
参考来源
- 位置:《Natural Language Processing in Action, Second Edition》第02章《思维的词元》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Natural Language Processing in Action, Second Edition/_epub-src/OEBPS/Text/chapter-2.html)
- 结论依据:摘录中关于子词训练与模型使用分开管理的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Another challenge of BPE tokenizers is all the bookkeeping you need to do to keep track of which trained tokenizer goes with each of your trained models. Addressing this problem was one of Hugging Face’s major innovations. Their team made it easy to store and share all the preprocessing data, such as the tokenizer vocabulary, alongside the language model. This makes it easier to reuse