Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
new readme
  • Loading branch information
JorgeV92 committed Aug 19, 2025
commit 6667e6e80fbb822684f60d1881e130860aa3caf7
4 changes: 1 addition & 3 deletions testdata/dnn/llm/gpt2/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# 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.

This folder contains third-party tokenizer files used for OpenCV DNN

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

## Sources
- `tokenizer.json`, `config.json`:
- `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
Expand Down
17 changes: 17 additions & 0 deletions testdata/dnn/llm/gpt4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# GPT-4 tokenizer

## Contents
- `cl100k_base.tiktoken`
- `config.json`
- `tokenizer.json`

## Sources
- `cl100k_base.tiktoken`:
https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken
- `tokenizer.json`:
https://huggingface.co/Xenova/gpt-4/tree/main

## License & attribution
These files are included **verbatim** from their respective upstream sources for interoperability/testing.
All rights remain with the original authors. If you redistribute, please keep the original license notices and source links above. Refer to the upstream pages for the applicable licenses.