facebookresearch/metaseq

Unify tokenizers

オープン

#308 opened on 2022/08/20

 (1 件のコメント) (1 件のリアクション) (1 人の担当者)Python (701 件のフォーク)batch import
better-engenhancementgood first issue

Repository metrics

Stars
 (6,195 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

🚀 Feature Request

With #305, we now have two ways to specify a tokenizer: with the GPT2 tokenizer (provided as two files), and with the universal HF format (specified as one file). These are in two separate code paths, but they don't need to be: we could (manually) merge the two GPT2 files into the universal HF format and switch to only that, and we should.

The resulting code would be cleaner, but catching all the other places the old method is used (e.g. API and old sweeps) needs thorough review.

コントリビューターガイド