Downloads · 30 days
0
0% of all-time downloads
clemenshemmerling/TinyGPT2-CoreML
TinyGPT2-CoreML is a machine learning model from clemenshemmerling. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for coreml.
This repository packages sshleifer/tiny-gpt2 for the TinyBrain runtime on Apple Watch.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
36
Public
Repo size
2.9 MB
Likes
0
Public
Click a slice to open those files.
.json5.4 MB · 63%
From the Hugging Face model README
This repository packages sshleifer/tiny-gpt2 for the TinyBrain runtime on Apple Watch.
The conversion script produces a single bundle archive:
tinygpt2_only_logits.mlmodelc.zipThe zip layout is:
tinygpt2_only_logits.mlmodelc/tokenizer/metadata.jsoninput_ids (Int32, shape 1 x 16)attention_mask (Int32, shape 1 x 16)logitstokenizer/tokenizer.json when provided by Transformersvocab.jsonmerges.txtspecial_tokens_map.jsontokenizer_config.jsontoken_decoder.jsonRun:
python3 convert_tinygpt2_to_coreml.py
The script:
.mlmodelc.