Publish model bundles (part 6)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+2
- gpt2/int8/macos27/h17g/model.jsonAdded+234
- gpt2/int8/macos27/h17s/checkpoint/README.mdAdded+167
- gpt2/int8/macos27/h17s/checkpoint/config.jsonAdded+31
- gpt2/int8/macos27/h17s/checkpoint/generation_config.jsonAdded+6
- gpt2/int8/macos27/h17s/checkpoint/merges.txtAdded
- gpt2/int8/macos27/h17s/checkpoint/model.safetensorsAdded+3
- gpt2/int8/macos27/h17s/checkpoint/tokenizer.jsonAdded
- gpt2/int8/macos27/h17s/checkpoint/tokenizer_config.jsonAdded+1
- gpt2/int8/macos27/h17s/checkpoint/vocab.jsonAdded
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.jsonAdded+9
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weightsAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w1_IenFJ1GSZFXtSI-1yaeozQ_0_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w4_tmsSNgMGeI7V8itesd-A6w_1_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w64_rSxzX4fSuqdOE7KVUvQgqQ_2_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w8_iKsrfL2rNL8zQzdOUlUZ5Q_3_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w4_6r0Zg1IUWQByvoxqvE5JtA_4_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w64_8kfJfdrK5IyHrQXwlL11RQ_5_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w8_ZEzGbu2gIh24LhJW-EvsGQ_6_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w1_3Zihyom_ORiPUtOgoKqr6A_7_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w4_6H47qaK-SzkD-kf-6d6_kQ_8_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w8_Unl5vAsQ-msc7f8s9bV1pA_10_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w4_IHI5-XpuRXZz3FXRdAu_aA_11_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w64_GE5SuCbSnvhoodS8qBwgeQ_12_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w8_0TTYrpXDXLsLC2vUdt7lSQ_13_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w1_Ca3mWeEDniuKAzO_6YXkNQ_14_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w4_iSKMLLpUuOodEuw_60CNcw_15_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w64_MGtGd_9wfGYNW7kcppQJbg_16_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w8_vTMI_EMMSc8g_5no4A9P1w_17_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c8192w64_5JXamHMFTpqemXTAfCTWkg_18_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c8192w8_yfcfcOxpejySNt_MNan-ww_19_ANE_region_0_0.mlir.bcAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/manifest.plistAdded
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/original_model_0.mpsgraphAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/resources.binAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/specialized_model_1.mpsgraphAdded+3
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s.mlirbAdded
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main.hashAdded
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/metadata.jsonAdded+6
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/stats.jsonAdded+1
- gpt2/int8/macos27/h17s/model.jsonAdded+234
- gpt2/int8/macos27/h18g/checkpoint/README.mdAdded+167
- gpt2/int8/macos27/h18g/checkpoint/config.jsonAdded+31
- gpt2/int8/macos27/h18g/checkpoint/generation_config.jsonAdded+6
- gpt2/int8/macos27/h18g/checkpoint/merges.txtAdded
- gpt2/int8/macos27/h18g/checkpoint/model.safetensorsAdded+3
- gpt2/int8/macos27/h18g/checkpoint/tokenizer.jsonAdded
- gpt2/int8/macos27/h18g/checkpoint/tokenizer_config.jsonAdded+1
- gpt2/int8/macos27/h18g/checkpoint/vocab.jsonAdded
- gpt2/int8/macos27/h18g/decoder.h18g.aimodelc/main-h18g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.jsonAdded+9
22 unmodified lines23242522 unmodified linesgpt2/int8/macos27/h17c/decoder.h17c.aimodelc/main-h17c-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h17d/decoder.h17d.aimodelc/main-h17d-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h17g/decoder.h17g.aimodelc/main-h17g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -text22 unmodified lines232425262722 unmodified linesgpt2/int8/macos27/h17c/decoder.h17c.aimodelc/main-h17c-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h17d/decoder.h17d.aimodelc/main-h17d-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h17g/decoder.h17g.aimodelc/main-h17g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -textgpt2/int8/macos27/h18g/decoder.h18g.aimodelc/main-h18g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234{ "kind": "gpt2", "version": 2, "model": "gpt2", "config": { "hidden": 768, "heads": 12, "layers": 12, "positions": 1024, "vocab": 50257, "eps": 1e-05, "ffn": 3072 }, "capacities": [ 256, 512, 1024 ], "prefill_width": 64, "batch_sizes": [ 1, 4, 8 ], "weights": "int8-per-channel", "assets": [ { "asset": "decoder.h17g.aimodelc", "source_hash": "26cc0e7170d5d954bc651bf9982d6c2b59f044b09720fcb6480b56f5ab87c55d", "start": 0, "end": 12, "functions": [ "gpt2_l0c256w64", "gpt2_l0c256w1", "gpt2_l0c512w64", "gpt2_l0c512w1", "gpt2_l0c1024w64", "gpt2_l0c1024w1", "gpt2_l0c256w4", "gpt2_l0c512w4", "gpt2_l0c1024w4", "gpt2_l0c2048w64", "gpt2_l0c2048w4", "gpt2_l0c4096w64", "gpt2_l0c4096w4", "gpt2_l0c256w8", "gpt2_l0c512w8", "gpt2_l0c1024w8", "gpt2_l0c2048w8", "gpt2_l0c4096w8", "gpt2_l0c8192w64", "gpt2_l0c8192w8" ], "cache_functions": [ { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 1 }, { "name": "gpt2_l0c256w1", "capacity": 256, "width": 1, "batch": 1 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 1 }, { "name": "gpt2_l0c512w1", "capacity": 512, "width": 1, "batch": 1 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 1 }, { "name": "gpt2_l0c1024w1", "capacity": 1024, "width": 1, "batch": 1 }, { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 4 }, { "name": "gpt2_l0c256w4", "capacity": 256, "width": 4, "batch": 4 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 4 }, { "name": "gpt2_l0c512w4", "capacity": 512, "width": 4, "batch": 4 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 4 }, { "name": "gpt2_l0c1024w4", "capacity": 1024, "width": 4, "batch": 4 }, { "name": "gpt2_l0c2048w64", "capacity": 2048, "width": 64, "batch": 4 }, { "name": "gpt2_l0c2048w4", "capacity": 2048, "width": 4, "batch": 4 }, { "name": "gpt2_l0c4096w64", "capacity": 4096, "width": 64, "batch": 4 }, { "name": "gpt2_l0c4096w4", "capacity": 4096, "width": 4, "batch": 4 }, { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 8 }, { "name": "gpt2_l0c256w8", "capacity": 256, "width": 8, "batch": 8 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 8 }, { "name": "gpt2_l0c512w8", "capacity": 512, "width": 8, "batch": 8 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 8 }, { "name": "gpt2_l0c1024w8", "capacity": 1024, "width": 8, "batch": 8 }, { "name": "gpt2_l0c2048w64", "capacity": 2048, "width": 64, "batch": 8 }, { "name": "gpt2_l0c2048w8", "capacity": 2048, "width": 8, "batch": 8 }, { "name": "gpt2_l0c4096w64", "capacity": 4096, "width": 64, "batch": 8 }, { "name": "gpt2_l0c4096w8", "capacity": 4096, "width": 8, "batch": 8 }, { "name": "gpt2_l0c8192w64", "capacity": 8192, "width": 64, "batch": 8 }, { "name": "gpt2_l0c8192w8", "capacity": 8192, "width": 8, "batch": 8 } ] } ], "checkpoint_hash": "e422f60580cb6e7a458de329e2ff44690428afe1ab145e6d562a004f42aed985", "source": { "repo": "openai-community/gpt2", "revision": "607a30d783dfa663caf39e06633721c8d4cfcd7e" }, "architecture": "h17g", "min_os": "27.0", "deployment": "aot-staged"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167---language: entags:- exbert
license: mit---
# GPT-2
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)and first released at [this page](https://openai.com/blog/better-language-models/).
Disclaimer: The team releasing GPT-2 also wrote a[model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model cardhas been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
## Model description
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. Thismeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lotsof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure thepredictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract featuresuseful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from aprompt.
This is the **smallest** version of GPT-2, with 124M parameters.
**Related Models:** [GPT-Large](https://huggingface.co/gpt2-large), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
## Intended uses & limitations
You can use the raw model for text generation or fine-tune it to a downstream task. See the[model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you.
### How to use
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, weset a seed for reproducibility:
```python>>> from transformers import pipeline, set_seed>>> generator = pipeline('text-generation', model='gpt2')>>> set_seed(42)>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."}, {'generated_text': "Hello, I'm a language model, a compiler, a compiler library, I just want to know how I build this kind of stuff. I don"}, {'generated_text': "Hello, I'm a language model, and also have more than a few of your own, but I understand that they're going to need some help"}, {'generated_text': "Hello, I'm a language model, a system model. I want to know my language so that it might be more interesting, more user-friendly"}, {'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]```
Here is how to use this model to get the features of a given text in PyTorch:
```pythonfrom transformers import GPT2Tokenizer, GPT2Modeltokenizer = GPT2Tokenizer.from_pretrained('gpt2')model = GPT2Model.from_pretrained('gpt2')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='pt')output = model(**encoded_input)```
and in TensorFlow:
```pythonfrom transformers import GPT2Tokenizer, TFGPT2Modeltokenizer = GPT2Tokenizer.from_pretrained('gpt2')model = TFGPT2Model.from_pretrained('gpt2')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='tf')output = model(encoded_input)```
### Limitations and bias
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot ofunfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their[model card](https://github.com/openai/gpt-2/blob/master/model_card.md#out-of-scope-use-cases):
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases> that require the generated text to be true.>> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar> levels of caution around use cases that are sensitive to biases around human attributes.
Here's an example of how the model can have biased predictions:
```python>>> from transformers import pipeline, set_seed>>> generator = pipeline('text-generation', model='gpt2')>>> set_seed(42)>>> generator("The White man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The White man worked as a mannequin for'}, {'generated_text': 'The White man worked as a maniser of the'}, {'generated_text': 'The White man worked as a bus conductor by day'}, {'generated_text': 'The White man worked as a plumber at the'}, {'generated_text': 'The White man worked as a journalist. He had'}]
>>> set_seed(42)>>> generator("The Black man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The Black man worked as a man at a restaurant'}, {'generated_text': 'The Black man worked as a car salesman in a'}, {'generated_text': 'The Black man worked as a police sergeant at the'}, {'generated_text': 'The Black man worked as a man-eating monster'}, {'generated_text': 'The Black man worked as a slave, and was'}]```
This bias will also affect all fine-tuned versions of this model.
## Training data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the webpages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed fromthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
## Training procedure
### Preprocessing
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and avocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exactdetails of training.
## Evaluation results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW ||:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) || | 35.13 | 45.99 | 87.65 | 83.4 | 29.41 | 65.85 | 1.16 | 1,17 | 37.50 | 75.20 |
### BibTeX entry and citation info
```bibtex@article{radford2019language, title={Language Models are Unsupervised Multitask Learners}, author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya}, year={2019}}```
<a href="https://huggingface.co/exbert/?model=gpt2"> <img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png"></a>12345678910111213141516171819202122232425262728293031{ "activation_function": "gelu_new", "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_layer": 12, "n_positions": 1024, "resid_pdrop": 0.1, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "vocab_size": 50257}123456{ "bos_token_id": 50256, "eos_token_id": 50256, "transformers_version": "4.26.0.dev0", "_from_model_config": true}123version https://git-lfs.github.com/spec/v1oid sha256:8488bf4fdfaebb6cd9d174cee500ad21ee1046a3cbd9c7cbe2e41d61449d2ab5size 787678161{"model_max_length": 1024}123456789{ "ANECompiler": "10.26.4", "LLIRVersion": "0.1b", "Weights": [ { "11029520955045366355": "gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights" } ]}123version https://git-lfs.github.com/spec/v1oid sha256:edf90ae6fc75dced0c6868dc53c34460d9c4e5b382cb8bd86bd86f83c092dbd9size 165894123version https://git-lfs.github.com/spec/v1oid sha256:4ff260358e293928f6474e2fa2c66651d136f3efd9a5a3a0e26e4fde836aac2bsize 650804123version https://git-lfs.github.com/spec/v1oid sha256:4a613450c399f0efe86f56c148185d02237958e0ba26fdb339fbb9c38caf2345size 684956123version https://git-lfs.github.com/spec/v1oid sha256:5416a12202a9e65fa432e176f53e685c80add2fa32a18be2b8eab82fd4c1bfaesize 723806123version https://git-lfs.github.com/spec/v1oid sha256:6d79c2937292bd60fb44b2ed2e648d370fd232c0978ff5336c6cb4db788d20adsize 698484123version https://git-lfs.github.com/spec/v1oid sha256:6f27b0dd825a4c16bd8db94119a5cf81a92f23d30bb92786e71130458a1f7a67size 702338123version https://git-lfs.github.com/spec/v1oid sha256:8d8a63d6716c2bd5db2b850deab441b40cd1d72f2c330f53a47abd9fd1372dcbsize 728501123version https://git-lfs.github.com/spec/v1oid sha256:511f8d4ca332507ec435948ffadc1b6ca1f06bfa5a8c9ec63de1e76aa7bc1d11size 705454123version https://git-lfs.github.com/spec/v1oid sha256:78831651de210ef812fc849cdf70ca3a4cdcb542156e5e8795da94ec77f52322size 657197123version https://git-lfs.github.com/spec/v1oid sha256:401cdc48f9cc9e2ec34c851b29f6950cd50ded30b638be42fc4b4b0af5d7e550size 712980123version https://git-lfs.github.com/spec/v1oid sha256:a52ddf60c501e7576d1d9f05b4370e4a8555943eb32a14fddb7f110c4a533f5fsize 674676123version https://git-lfs.github.com/spec/v1oid sha256:1181511ecb92dd868965249b41a09318a5d9fb74ae120fe23fce867c7f5209d6size 720062123version https://git-lfs.github.com/spec/v1oid sha256:a1c7bebe3e004d3ad62a508db2516f7d568c1d10ca4787b206aa7f342bb96897size 699454123version https://git-lfs.github.com/spec/v1oid sha256:941acde7f31779f3c8284d2868207f39fa69ffa30d4eba40df6f2a2d31d77e7fsize 720774123version https://git-lfs.github.com/spec/v1oid sha256:c77f83be382e1a00a0925816af1ebb4595ad40f3f4a25e9e32b3ff43fa00ff90size 700446123version https://git-lfs.github.com/spec/v1oid sha256:b4268b5366d4a57bb4636d6569b518ee2b7cdcae883672eade99b70fd95b6c4asize 647898123version https://git-lfs.github.com/spec/v1oid sha256:ebe9687a0afbd461d8da95a67e9e64acae7ad8e450dc26354bd4f9b9345cb08csize 683320123version https://git-lfs.github.com/spec/v1oid sha256:5c82d9dea8e2d5120f6b47688f9e2413e08c60311fd657fe48580808bfef0f7csize 687450123version https://git-lfs.github.com/spec/v1oid sha256:c98077db3001c78b1dc59918693c9fd3d5aeb2d9d0cbe903d25e192ac5a8073fsize 697946123version https://git-lfs.github.com/spec/v1oid sha256:79d59e8ba59424771550918d731216401717532c15b5f8e6d74d8410e5c23abesize 702485123version https://git-lfs.github.com/spec/v1oid sha256:a66f89d0a4846bac64c6cb6643163538853b6e2415f3de05441b320eeb65486asize 690265123version https://git-lfs.github.com/spec/v1oid sha256:a475dc3b0c7db200d70c999747324d74f8298977e70fbb91e3d835a28b16d2c2size 1497314123version https://git-lfs.github.com/spec/v1oid sha256:86b8594a26fa945ea3465c940f397f579e1a78127a7d94f569d537caeae94eddsize 85344104123version https://git-lfs.github.com/spec/v1oid sha256:0666c9eaf9092bb5249b97d50fb88001c66c8315e6576ac95cd763a741e050c2size 1371725123456{ "producer" : "coreai-build-3600.83.1", "assetVersion" : "2.0", "creationDate" : "20261101T124638Z", "sourceHash" : "26CC0E7170D5D954BC651BF9982D6C2B59F044B09720FCB6480B56F5AB87C55D"}1{"operationDistribution":[{"name":"constant","count":6911},{"count":1758,"name":"transpose"},{"name":"add","count":1496},{"count":1468,"name":"broadcasting_add"},{"count":1410,"name":"reshape"},{"name":"broadcast_in_dims","count":1113},{"count":960,"name":"blockwise_shift_scale"},{"name":"conv2d","count":960},{"name":"invoke","count":740},{"name":"concat","count":500},{"name":"broadcasting_divide","count":268},{"name":"divide","count":268},{"name":"split","count":260},{"name":"gelu","count":240},{"count":44,"name":"cast"},{"count":40,"name":"batch_matmul"},{"count":40,"name":"broadcasting_batch_matmul"},{"name":"mul","count":40},{"count":36,"name":"reduce"},{"name":"broadcasting_mul","count":32},{"name":"reduce_sum","count":28},{"count":20,"name":"exp"},{"count":20,"name":"softmax"},{"name":"broadcast_to","count":16},{"name":"broadcast_shapes","count":8},{"name":"gather_nd","count":8},{"count":8,"name":"get_shape"},{"name":"reduce_mean","count":8},{"name":"reduce_product","count":8},{"count":4,"name":"broadcasting_sub"},{"count":4,"name":"rsqrt"},{"name":"sub","count":4}],"computeTypes":["Float16","Float32","Int32","Int8","UInt32","UInt64"],"storageTypes":[{"name":"Int8","count":84937728},{"count":207362,"name":"Float16"},{"name":"UInt32","count":158},{"name":"Int32","count":13},{"name":"Float32","count":2},{"count":1,"name":"UInt64"}]}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234{ "kind": "gpt2", "version": 2, "model": "gpt2", "config": { "hidden": 768, "heads": 12, "layers": 12, "positions": 1024, "vocab": 50257, "eps": 1e-05, "ffn": 3072 }, "capacities": [ 256, 512, 1024 ], "prefill_width": 64, "batch_sizes": [ 1, 4, 8 ], "weights": "int8-per-channel", "assets": [ { "asset": "decoder.h17s.aimodelc", "source_hash": "26cc0e7170d5d954bc651bf9982d6c2b59f044b09720fcb6480b56f5ab87c55d", "start": 0, "end": 12, "functions": [ "gpt2_l0c256w64", "gpt2_l0c256w1", "gpt2_l0c512w64", "gpt2_l0c512w1", "gpt2_l0c1024w64", "gpt2_l0c1024w1", "gpt2_l0c256w4", "gpt2_l0c512w4", "gpt2_l0c1024w4", "gpt2_l0c2048w64", "gpt2_l0c2048w4", "gpt2_l0c4096w64", "gpt2_l0c4096w4", "gpt2_l0c256w8", "gpt2_l0c512w8", "gpt2_l0c1024w8", "gpt2_l0c2048w8", "gpt2_l0c4096w8", "gpt2_l0c8192w64", "gpt2_l0c8192w8" ], "cache_functions": [ { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 1 }, { "name": "gpt2_l0c256w1", "capacity": 256, "width": 1, "batch": 1 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 1 }, { "name": "gpt2_l0c512w1", "capacity": 512, "width": 1, "batch": 1 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 1 }, { "name": "gpt2_l0c1024w1", "capacity": 1024, "width": 1, "batch": 1 }, { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 4 }, { "name": "gpt2_l0c256w4", "capacity": 256, "width": 4, "batch": 4 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 4 }, { "name": "gpt2_l0c512w4", "capacity": 512, "width": 4, "batch": 4 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 4 }, { "name": "gpt2_l0c1024w4", "capacity": 1024, "width": 4, "batch": 4 }, { "name": "gpt2_l0c2048w64", "capacity": 2048, "width": 64, "batch": 4 }, { "name": "gpt2_l0c2048w4", "capacity": 2048, "width": 4, "batch": 4 }, { "name": "gpt2_l0c4096w64", "capacity": 4096, "width": 64, "batch": 4 }, { "name": "gpt2_l0c4096w4", "capacity": 4096, "width": 4, "batch": 4 }, { "name": "gpt2_l0c256w64", "capacity": 256, "width": 64, "batch": 8 }, { "name": "gpt2_l0c256w8", "capacity": 256, "width": 8, "batch": 8 }, { "name": "gpt2_l0c512w64", "capacity": 512, "width": 64, "batch": 8 }, { "name": "gpt2_l0c512w8", "capacity": 512, "width": 8, "batch": 8 }, { "name": "gpt2_l0c1024w64", "capacity": 1024, "width": 64, "batch": 8 }, { "name": "gpt2_l0c1024w8", "capacity": 1024, "width": 8, "batch": 8 }, { "name": "gpt2_l0c2048w64", "capacity": 2048, "width": 64, "batch": 8 }, { "name": "gpt2_l0c2048w8", "capacity": 2048, "width": 8, "batch": 8 }, { "name": "gpt2_l0c4096w64", "capacity": 4096, "width": 64, "batch": 8 }, { "name": "gpt2_l0c4096w8", "capacity": 4096, "width": 8, "batch": 8 }, { "name": "gpt2_l0c8192w64", "capacity": 8192, "width": 64, "batch": 8 }, { "name": "gpt2_l0c8192w8", "capacity": 8192, "width": 8, "batch": 8 } ] } ], "checkpoint_hash": "e422f60580cb6e7a458de329e2ff44690428afe1ab145e6d562a004f42aed985", "source": { "repo": "openai-community/gpt2", "revision": "607a30d783dfa663caf39e06633721c8d4cfcd7e" }, "architecture": "h17s", "min_os": "27.0", "deployment": "aot-staged"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167---language: entags:- exbert
license: mit---
# GPT-2
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)and first released at [this page](https://openai.com/blog/better-language-models/).
Disclaimer: The team releasing GPT-2 also wrote a[model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model cardhas been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
## Model description
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. Thismeans it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lotsof publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure thepredictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract featuresuseful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from aprompt.
This is the **smallest** version of GPT-2, with 124M parameters.
**Related Models:** [GPT-Large](https://huggingface.co/gpt2-large), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
## Intended uses & limitations
You can use the raw model for text generation or fine-tune it to a downstream task. See the[model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you.
### How to use
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, weset a seed for reproducibility:
```python>>> from transformers import pipeline, set_seed>>> generator = pipeline('text-generation', model='gpt2')>>> set_seed(42)>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
[{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."}, {'generated_text': "Hello, I'm a language model, a compiler, a compiler library, I just want to know how I build this kind of stuff. I don"}, {'generated_text': "Hello, I'm a language model, and also have more than a few of your own, but I understand that they're going to need some help"}, {'generated_text': "Hello, I'm a language model, a system model. I want to know my language so that it might be more interesting, more user-friendly"}, {'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]```
Here is how to use this model to get the features of a given text in PyTorch:
```pythonfrom transformers import GPT2Tokenizer, GPT2Modeltokenizer = GPT2Tokenizer.from_pretrained('gpt2')model = GPT2Model.from_pretrained('gpt2')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='pt')output = model(**encoded_input)```
and in TensorFlow:
```pythonfrom transformers import GPT2Tokenizer, TFGPT2Modeltokenizer = GPT2Tokenizer.from_pretrained('gpt2')model = TFGPT2Model.from_pretrained('gpt2')text = "Replace me by any text you'd like."encoded_input = tokenizer(text, return_tensors='tf')output = model(encoded_input)```
### Limitations and bias
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot ofunfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their[model card](https://github.com/openai/gpt-2/blob/master/model_card.md#out-of-scope-use-cases):
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases> that require the generated text to be true.>> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar> levels of caution around use cases that are sensitive to biases around human attributes.
Here's an example of how the model can have biased predictions:
```python>>> from transformers import pipeline, set_seed>>> generator = pipeline('text-generation', model='gpt2')>>> set_seed(42)>>> generator("The White man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The White man worked as a mannequin for'}, {'generated_text': 'The White man worked as a maniser of the'}, {'generated_text': 'The White man worked as a bus conductor by day'}, {'generated_text': 'The White man worked as a plumber at the'}, {'generated_text': 'The White man worked as a journalist. He had'}]
>>> set_seed(42)>>> generator("The Black man worked as a", max_length=10, num_return_sequences=5)
[{'generated_text': 'The Black man worked as a man at a restaurant'}, {'generated_text': 'The Black man worked as a car salesman in a'}, {'generated_text': 'The Black man worked as a police sergeant at the'}, {'generated_text': 'The Black man worked as a man-eating monster'}, {'generated_text': 'The Black man worked as a slave, and was'}]```
This bias will also affect all fine-tuned versions of this model.
## Training data
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the webpages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed fromthis dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
## Training procedure
### Preprocessing
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and avocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exactdetails of training.
## Evaluation results
The model achieves the following results without any fine-tuning (zero-shot):
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW ||:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) || | 35.13 | 45.99 | 87.65 | 83.4 | 29.41 | 65.85 | 1.16 | 1,17 | 37.50 | 75.20 |
### BibTeX entry and citation info
```bibtex@article{radford2019language, title={Language Models are Unsupervised Multitask Learners}, author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya}, year={2019}}```
<a href="https://huggingface.co/exbert/?model=gpt2"> <img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png"></a>12345678910111213141516171819202122232425262728293031{ "activation_function": "gelu_new", "architectures": [ "GPT2LMHeadModel" ], "attn_pdrop": 0.1, "bos_token_id": 50256, "embd_pdrop": 0.1, "eos_token_id": 50256, "initializer_range": 0.02, "layer_norm_epsilon": 1e-05, "model_type": "gpt2", "n_ctx": 1024, "n_embd": 768, "n_head": 12, "n_layer": 12, "n_positions": 1024, "resid_pdrop": 0.1, "summary_activation": null, "summary_first_dropout": 0.1, "summary_proj_to_labels": true, "summary_type": "cls_index", "summary_use_proj": true, "task_specific_params": { "text-generation": { "do_sample": true, "max_length": 50 } }, "vocab_size": 50257}123456{ "bos_token_id": 50256, "eos_token_id": 50256, "transformers_version": "4.26.0.dev0", "_from_model_config": true}123version https://git-lfs.github.com/spec/v1oid sha256:8488bf4fdfaebb6cd9d174cee500ad21ee1046a3cbd9c7cbe2e41d61449d2ab5size 787678161{"model_max_length": 1024}123456789{ "ANECompiler": "10.26.4", "LLIRVersion": "0.1b", "Weights": [ { "5462290158104985093": "gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights" } ]}.gitattributes+2
gpt2/int8/macos27/h17g/model.jsonAdded+234
gpt2/int8/macos27/h17s/checkpoint/README.mdAdded+167
gpt2/int8/macos27/h17s/checkpoint/config.jsonAdded+31
gpt2/int8/macos27/h17s/checkpoint/generation_config.jsonAdded+6
gpt2/int8/macos27/h17s/checkpoint/merges.txtAdded
gpt2/int8/macos27/h17s/checkpoint/model.safetensorsAdded+3
gpt2/int8/macos27/h17s/checkpoint/tokenizer.jsonAdded
gpt2/int8/macos27/h17s/checkpoint/tokenizer_config.jsonAdded+1
gpt2/int8/macos27/h17s/checkpoint/vocab.jsonAdded
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.jsonAdded+9
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weightsAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w1_IenFJ1GSZFXtSI-1yaeozQ_0_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w4_tmsSNgMGeI7V8itesd-A6w_1_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w64_rSxzX4fSuqdOE7KVUvQgqQ_2_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c1024w8_iKsrfL2rNL8zQzdOUlUZ5Q_3_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w4_6r0Zg1IUWQByvoxqvE5JtA_4_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w64_8kfJfdrK5IyHrQXwlL11RQ_5_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c2048w8_ZEzGbu2gIh24LhJW-EvsGQ_6_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w1_3Zihyom_ORiPUtOgoKqr6A_7_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w4_6H47qaK-SzkD-kf-6d6_kQ_8_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c256w8_Unl5vAsQ-msc7f8s9bV1pA_10_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w4_IHI5-XpuRXZz3FXRdAu_aA_11_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w64_GE5SuCbSnvhoodS8qBwgeQ_12_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c4096w8_0TTYrpXDXLsLC2vUdt7lSQ_13_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w1_Ca3mWeEDniuKAzO_6YXkNQ_14_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w4_iSKMLLpUuOodEuw_60CNcw_15_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w64_MGtGd_9wfGYNW7kcppQJbg_16_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c512w8_vTMI_EMMSc8g_5no4A9P1w_17_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c8192w64_5JXamHMFTpqemXTAfCTWkg_18_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/h17s/gpt2_l0c8192w8_yfcfcOxpejySNt_MNan-ww_19_ANE_region_0_0.mlir.bcAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/manifest.plistAdded
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/original_model_0.mpsgraphAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/resources.binAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/specialized_model_1.mpsgraphAdded+3
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s.mlirbAdded
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main.hashAdded
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/metadata.jsonAdded+6
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/stats.jsonAdded+1
gpt2/int8/macos27/h17s/model.jsonAdded+234
gpt2/int8/macos27/h18g/checkpoint/README.mdAdded+167
gpt2/int8/macos27/h18g/checkpoint/config.jsonAdded+31
gpt2/int8/macos27/h18g/checkpoint/generation_config.jsonAdded+6
gpt2/int8/macos27/h18g/checkpoint/merges.txtAdded
gpt2/int8/macos27/h18g/checkpoint/model.safetensorsAdded+3
gpt2/int8/macos27/h18g/checkpoint/tokenizer.jsonAdded
gpt2/int8/macos27/h18g/checkpoint/tokenizer_config.jsonAdded+1
gpt2/int8/macos27/h18g/checkpoint/vocab.jsonAdded
gpt2/int8/macos27/h18g/decoder.h18g.aimodelc/main-h18g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.jsonAdded+9