Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions testdata/dnn/llm/gpt2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# GPT-2 tokenizer

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to add "gpt2_hf_tik_testdata.json" and a section on how to generate this.

## Contents
- `config.json`
- `tokenizer.json`
- `encoder.json`
- `vocab.bpe`

## Sources
- `tokenizer.json`:
https://huggingface.co/openai-community/gpt2/tree/main
- `encoder.json`, `vocab.bpe`:
https://openaipublic.blob.core.windows.net/gpt-2/encodings/main/encoder.json
https://openaipublic.blob.core.windows.net/gpt-2/encodings/main/vocab.bpe

## License & attribution
- GPT-2 code/assets by OpenAI are released under a **Modified MIT License** (see upstream license).
https://github.com/openai/gpt-2/blob/master/LICENSE
- The Hugging Face `openai-community/gpt2` model page lists **MIT** as the license.

These files are included here **verbatim** for interoperability/testing.
All copyrights remain with the original authors. If you redistribute, keep the original
license notices and links to the sources above.

11 changes: 11 additions & 0 deletions testdata/dnn/llm/gpt2/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"model_type": "gpt2",
"method": "BPE",
"vocab_size": 50257,
"tokenizer_class": "GPT2TokenizerFast",
"eos_token": "",
"bos_token": null,
"pad_token": null
}


1 change: 1 addition & 0 deletions testdata/dnn/llm/gpt2/encoder.json

Large diffs are not rendered by default.

Loading