Publish model bundles (part 6)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +2 -0
- gpt2/int8/macos27/h17g/model.json +234 -0
- gpt2/int8/macos27/h17s/checkpoint/README.md +167 -0
- gpt2/int8/macos27/h17s/checkpoint/config.json +31 -0
- gpt2/int8/macos27/h17s/checkpoint/generation_config.json +6 -0
- gpt2/int8/macos27/h17s/checkpoint/merges.txt +0 -0
- gpt2/int8/macos27/h17s/checkpoint/model.safetensors +3 -0
- gpt2/int8/macos27/h17s/checkpoint/tokenizer.json +0 -0
- gpt2/int8/macos27/h17s/checkpoint/tokenizer_config.json +1 -0
- gpt2/int8/macos27/h17s/checkpoint/vocab.json +0 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.json +9 -0
- 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.weights +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- 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.bc +3 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/manifest.plist +0 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/original_model_0.mpsgraph +3 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/resources.bin +3 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/specialized_model_1.mpsgraph +3 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s.mlirb +0 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main.hash +0 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/metadata.json +6 -0
- gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/stats.json +1 -0
- gpt2/int8/macos27/h17s/model.json +234 -0
- gpt2/int8/macos27/h18g/checkpoint/README.md +167 -0
- gpt2/int8/macos27/h18g/checkpoint/config.json +31 -0
- gpt2/int8/macos27/h18g/checkpoint/generation_config.json +6 -0
- gpt2/int8/macos27/h18g/checkpoint/merges.txt +0 -0
- gpt2/int8/macos27/h18g/checkpoint/model.safetensors +3 -0
- gpt2/int8/macos27/h18g/checkpoint/tokenizer.json +0 -0
- gpt2/int8/macos27/h18g/checkpoint/tokenizer_config.json +1 -0
- gpt2/int8/macos27/h18g/checkpoint/vocab.json +0 -0
- gpt2/int8/macos27/h18g/decoder.h18g.aimodelc/main-h18g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.json +9 -0
.gitattributes
CHANGED
|
@@ -23,3 +23,5 @@ gpt2/int8/macos27/h16s/decoder.h16s.aimodelc/main-h16s-delegates/MPSGraph/mpsExe
|
|
| 23 |
gpt2/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 -text
|
| 24 |
gpt2/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 -text
|
| 25 |
gpt2/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 -text
|
|
|
|
|
|
|
|
|
| 23 |
gpt2/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 -text
|
| 24 |
gpt2/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 -text
|
| 25 |
gpt2/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 -text
|
| 26 |
+
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.weights filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
gpt2/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
|
gpt2/int8/macos27/h17g/model.json
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"kind": "gpt2",
|
| 3 |
+
"version": 2,
|
| 4 |
+
"model": "gpt2",
|
| 5 |
+
"config": {
|
| 6 |
+
"hidden": 768,
|
| 7 |
+
"heads": 12,
|
| 8 |
+
"layers": 12,
|
| 9 |
+
"positions": 1024,
|
| 10 |
+
"vocab": 50257,
|
| 11 |
+
"eps": 1e-05,
|
| 12 |
+
"ffn": 3072
|
| 13 |
+
},
|
| 14 |
+
"capacities": [
|
| 15 |
+
256,
|
| 16 |
+
512,
|
| 17 |
+
1024
|
| 18 |
+
],
|
| 19 |
+
"prefill_width": 64,
|
| 20 |
+
"batch_sizes": [
|
| 21 |
+
1,
|
| 22 |
+
4,
|
| 23 |
+
8
|
| 24 |
+
],
|
| 25 |
+
"weights": "int8-per-channel",
|
| 26 |
+
"assets": [
|
| 27 |
+
{
|
| 28 |
+
"asset": "decoder.h17g.aimodelc",
|
| 29 |
+
"source_hash": "26cc0e7170d5d954bc651bf9982d6c2b59f044b09720fcb6480b56f5ab87c55d",
|
| 30 |
+
"start": 0,
|
| 31 |
+
"end": 12,
|
| 32 |
+
"functions": [
|
| 33 |
+
"gpt2_l0c256w64",
|
| 34 |
+
"gpt2_l0c256w1",
|
| 35 |
+
"gpt2_l0c512w64",
|
| 36 |
+
"gpt2_l0c512w1",
|
| 37 |
+
"gpt2_l0c1024w64",
|
| 38 |
+
"gpt2_l0c1024w1",
|
| 39 |
+
"gpt2_l0c256w4",
|
| 40 |
+
"gpt2_l0c512w4",
|
| 41 |
+
"gpt2_l0c1024w4",
|
| 42 |
+
"gpt2_l0c2048w64",
|
| 43 |
+
"gpt2_l0c2048w4",
|
| 44 |
+
"gpt2_l0c4096w64",
|
| 45 |
+
"gpt2_l0c4096w4",
|
| 46 |
+
"gpt2_l0c256w8",
|
| 47 |
+
"gpt2_l0c512w8",
|
| 48 |
+
"gpt2_l0c1024w8",
|
| 49 |
+
"gpt2_l0c2048w8",
|
| 50 |
+
"gpt2_l0c4096w8",
|
| 51 |
+
"gpt2_l0c8192w64",
|
| 52 |
+
"gpt2_l0c8192w8"
|
| 53 |
+
],
|
| 54 |
+
"cache_functions": [
|
| 55 |
+
{
|
| 56 |
+
"name": "gpt2_l0c256w64",
|
| 57 |
+
"capacity": 256,
|
| 58 |
+
"width": 64,
|
| 59 |
+
"batch": 1
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"name": "gpt2_l0c256w1",
|
| 63 |
+
"capacity": 256,
|
| 64 |
+
"width": 1,
|
| 65 |
+
"batch": 1
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "gpt2_l0c512w64",
|
| 69 |
+
"capacity": 512,
|
| 70 |
+
"width": 64,
|
| 71 |
+
"batch": 1
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"name": "gpt2_l0c512w1",
|
| 75 |
+
"capacity": 512,
|
| 76 |
+
"width": 1,
|
| 77 |
+
"batch": 1
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name": "gpt2_l0c1024w64",
|
| 81 |
+
"capacity": 1024,
|
| 82 |
+
"width": 64,
|
| 83 |
+
"batch": 1
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "gpt2_l0c1024w1",
|
| 87 |
+
"capacity": 1024,
|
| 88 |
+
"width": 1,
|
| 89 |
+
"batch": 1
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"name": "gpt2_l0c256w64",
|
| 93 |
+
"capacity": 256,
|
| 94 |
+
"width": 64,
|
| 95 |
+
"batch": 4
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name": "gpt2_l0c256w4",
|
| 99 |
+
"capacity": 256,
|
| 100 |
+
"width": 4,
|
| 101 |
+
"batch": 4
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"name": "gpt2_l0c512w64",
|
| 105 |
+
"capacity": 512,
|
| 106 |
+
"width": 64,
|
| 107 |
+
"batch": 4
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "gpt2_l0c512w4",
|
| 111 |
+
"capacity": 512,
|
| 112 |
+
"width": 4,
|
| 113 |
+
"batch": 4
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "gpt2_l0c1024w64",
|
| 117 |
+
"capacity": 1024,
|
| 118 |
+
"width": 64,
|
| 119 |
+
"batch": 4
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "gpt2_l0c1024w4",
|
| 123 |
+
"capacity": 1024,
|
| 124 |
+
"width": 4,
|
| 125 |
+
"batch": 4
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"name": "gpt2_l0c2048w64",
|
| 129 |
+
"capacity": 2048,
|
| 130 |
+
"width": 64,
|
| 131 |
+
"batch": 4
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "gpt2_l0c2048w4",
|
| 135 |
+
"capacity": 2048,
|
| 136 |
+
"width": 4,
|
| 137 |
+
"batch": 4
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"name": "gpt2_l0c4096w64",
|
| 141 |
+
"capacity": 4096,
|
| 142 |
+
"width": 64,
|
| 143 |
+
"batch": 4
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "gpt2_l0c4096w4",
|
| 147 |
+
"capacity": 4096,
|
| 148 |
+
"width": 4,
|
| 149 |
+
"batch": 4
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "gpt2_l0c256w64",
|
| 153 |
+
"capacity": 256,
|
| 154 |
+
"width": 64,
|
| 155 |
+
"batch": 8
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"name": "gpt2_l0c256w8",
|
| 159 |
+
"capacity": 256,
|
| 160 |
+
"width": 8,
|
| 161 |
+
"batch": 8
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"name": "gpt2_l0c512w64",
|
| 165 |
+
"capacity": 512,
|
| 166 |
+
"width": 64,
|
| 167 |
+
"batch": 8
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"name": "gpt2_l0c512w8",
|
| 171 |
+
"capacity": 512,
|
| 172 |
+
"width": 8,
|
| 173 |
+
"batch": 8
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"name": "gpt2_l0c1024w64",
|
| 177 |
+
"capacity": 1024,
|
| 178 |
+
"width": 64,
|
| 179 |
+
"batch": 8
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"name": "gpt2_l0c1024w8",
|
| 183 |
+
"capacity": 1024,
|
| 184 |
+
"width": 8,
|
| 185 |
+
"batch": 8
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name": "gpt2_l0c2048w64",
|
| 189 |
+
"capacity": 2048,
|
| 190 |
+
"width": 64,
|
| 191 |
+
"batch": 8
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"name": "gpt2_l0c2048w8",
|
| 195 |
+
"capacity": 2048,
|
| 196 |
+
"width": 8,
|
| 197 |
+
"batch": 8
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"name": "gpt2_l0c4096w64",
|
| 201 |
+
"capacity": 4096,
|
| 202 |
+
"width": 64,
|
| 203 |
+
"batch": 8
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "gpt2_l0c4096w8",
|
| 207 |
+
"capacity": 4096,
|
| 208 |
+
"width": 8,
|
| 209 |
+
"batch": 8
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"name": "gpt2_l0c8192w64",
|
| 213 |
+
"capacity": 8192,
|
| 214 |
+
"width": 64,
|
| 215 |
+
"batch": 8
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"name": "gpt2_l0c8192w8",
|
| 219 |
+
"capacity": 8192,
|
| 220 |
+
"width": 8,
|
| 221 |
+
"batch": 8
|
| 222 |
+
}
|
| 223 |
+
]
|
| 224 |
+
}
|
| 225 |
+
],
|
| 226 |
+
"checkpoint_hash": "e422f60580cb6e7a458de329e2ff44690428afe1ab145e6d562a004f42aed985",
|
| 227 |
+
"source": {
|
| 228 |
+
"repo": "openai-community/gpt2",
|
| 229 |
+
"revision": "607a30d783dfa663caf39e06633721c8d4cfcd7e"
|
| 230 |
+
},
|
| 231 |
+
"architecture": "h17g",
|
| 232 |
+
"min_os": "27.0",
|
| 233 |
+
"deployment": "aot-staged"
|
| 234 |
+
}
|
gpt2/int8/macos27/h17s/checkpoint/README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- exbert
|
| 5 |
+
|
| 6 |
+
license: mit
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# GPT-2
|
| 11 |
+
|
| 12 |
+
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
|
| 13 |
+
|
| 14 |
+
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in
|
| 15 |
+
[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
|
| 16 |
+
and first released at [this page](https://openai.com/blog/better-language-models/).
|
| 17 |
+
|
| 18 |
+
Disclaimer: The team releasing GPT-2 also wrote a
|
| 19 |
+
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model card
|
| 20 |
+
has been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This
|
| 25 |
+
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
|
| 26 |
+
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
|
| 27 |
+
it was trained to guess the next word in sentences.
|
| 28 |
+
|
| 29 |
+
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
|
| 30 |
+
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
|
| 31 |
+
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
|
| 32 |
+
|
| 33 |
+
This way, the model learns an inner representation of the English language that can then be used to extract features
|
| 34 |
+
useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a
|
| 35 |
+
prompt.
|
| 36 |
+
|
| 37 |
+
This is the **smallest** version of GPT-2, with 124M parameters.
|
| 38 |
+
|
| 39 |
+
**Related Models:** [GPT-Large](https://huggingface.co/gpt2-large), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
|
| 40 |
+
|
| 41 |
+
## Intended uses & limitations
|
| 42 |
+
|
| 43 |
+
You can use the raw model for text generation or fine-tune it to a downstream task. See the
|
| 44 |
+
[model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you.
|
| 45 |
+
|
| 46 |
+
### How to use
|
| 47 |
+
|
| 48 |
+
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
|
| 49 |
+
set a seed for reproducibility:
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
>>> from transformers import pipeline, set_seed
|
| 53 |
+
>>> generator = pipeline('text-generation', model='gpt2')
|
| 54 |
+
>>> set_seed(42)
|
| 55 |
+
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
|
| 56 |
+
|
| 57 |
+
[{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."},
|
| 58 |
+
{'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"},
|
| 59 |
+
{'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"},
|
| 60 |
+
{'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"},
|
| 61 |
+
{'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Here is how to use this model to get the features of a given text in PyTorch:
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from transformers import GPT2Tokenizer, GPT2Model
|
| 68 |
+
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
| 69 |
+
model = GPT2Model.from_pretrained('gpt2')
|
| 70 |
+
text = "Replace me by any text you'd like."
|
| 71 |
+
encoded_input = tokenizer(text, return_tensors='pt')
|
| 72 |
+
output = model(**encoded_input)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
and in TensorFlow:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from transformers import GPT2Tokenizer, TFGPT2Model
|
| 79 |
+
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
| 80 |
+
model = TFGPT2Model.from_pretrained('gpt2')
|
| 81 |
+
text = "Replace me by any text you'd like."
|
| 82 |
+
encoded_input = tokenizer(text, return_tensors='tf')
|
| 83 |
+
output = model(encoded_input)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Limitations and bias
|
| 87 |
+
|
| 88 |
+
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of
|
| 89 |
+
unfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their
|
| 90 |
+
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md#out-of-scope-use-cases):
|
| 91 |
+
|
| 92 |
+
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases
|
| 93 |
+
> that require the generated text to be true.
|
| 94 |
+
>
|
| 95 |
+
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do
|
| 96 |
+
> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a
|
| 97 |
+
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
|
| 98 |
+
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
|
| 99 |
+
> levels of caution around use cases that are sensitive to biases around human attributes.
|
| 100 |
+
|
| 101 |
+
Here's an example of how the model can have biased predictions:
|
| 102 |
+
|
| 103 |
+
```python
|
| 104 |
+
>>> from transformers import pipeline, set_seed
|
| 105 |
+
>>> generator = pipeline('text-generation', model='gpt2')
|
| 106 |
+
>>> set_seed(42)
|
| 107 |
+
>>> generator("The White man worked as a", max_length=10, num_return_sequences=5)
|
| 108 |
+
|
| 109 |
+
[{'generated_text': 'The White man worked as a mannequin for'},
|
| 110 |
+
{'generated_text': 'The White man worked as a maniser of the'},
|
| 111 |
+
{'generated_text': 'The White man worked as a bus conductor by day'},
|
| 112 |
+
{'generated_text': 'The White man worked as a plumber at the'},
|
| 113 |
+
{'generated_text': 'The White man worked as a journalist. He had'}]
|
| 114 |
+
|
| 115 |
+
>>> set_seed(42)
|
| 116 |
+
>>> generator("The Black man worked as a", max_length=10, num_return_sequences=5)
|
| 117 |
+
|
| 118 |
+
[{'generated_text': 'The Black man worked as a man at a restaurant'},
|
| 119 |
+
{'generated_text': 'The Black man worked as a car salesman in a'},
|
| 120 |
+
{'generated_text': 'The Black man worked as a police sergeant at the'},
|
| 121 |
+
{'generated_text': 'The Black man worked as a man-eating monster'},
|
| 122 |
+
{'generated_text': 'The Black man worked as a slave, and was'}]
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
This bias will also affect all fine-tuned versions of this model.
|
| 126 |
+
|
| 127 |
+
## Training data
|
| 128 |
+
|
| 129 |
+
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
|
| 130 |
+
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
|
| 131 |
+
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
|
| 132 |
+
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
|
| 133 |
+
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
|
| 134 |
+
|
| 135 |
+
## Training procedure
|
| 136 |
+
|
| 137 |
+
### Preprocessing
|
| 138 |
+
|
| 139 |
+
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
|
| 140 |
+
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
|
| 141 |
+
|
| 142 |
+
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact
|
| 143 |
+
details of training.
|
| 144 |
+
|
| 145 |
+
## Evaluation results
|
| 146 |
+
|
| 147 |
+
The model achieves the following results without any fine-tuning (zero-shot):
|
| 148 |
+
|
| 149 |
+
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|
| 150 |
+
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
|
| 151 |
+
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
|
| 152 |
+
| | 35.13 | 45.99 | 87.65 | 83.4 | 29.41 | 65.85 | 1.16 | 1,17 | 37.50 | 75.20 |
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
### BibTeX entry and citation info
|
| 156 |
+
|
| 157 |
+
```bibtex
|
| 158 |
+
@article{radford2019language,
|
| 159 |
+
title={Language Models are Unsupervised Multitask Learners},
|
| 160 |
+
author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya},
|
| 161 |
+
year={2019}
|
| 162 |
+
}
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
<a href="https://huggingface.co/exbert/?model=gpt2">
|
| 166 |
+
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
|
| 167 |
+
</a>
|
gpt2/int8/macos27/h17s/checkpoint/config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.1,
|
| 7 |
+
"bos_token_id": 50256,
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 50256,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_epsilon": 1e-05,
|
| 12 |
+
"model_type": "gpt2",
|
| 13 |
+
"n_ctx": 1024,
|
| 14 |
+
"n_embd": 768,
|
| 15 |
+
"n_head": 12,
|
| 16 |
+
"n_layer": 12,
|
| 17 |
+
"n_positions": 1024,
|
| 18 |
+
"resid_pdrop": 0.1,
|
| 19 |
+
"summary_activation": null,
|
| 20 |
+
"summary_first_dropout": 0.1,
|
| 21 |
+
"summary_proj_to_labels": true,
|
| 22 |
+
"summary_type": "cls_index",
|
| 23 |
+
"summary_use_proj": true,
|
| 24 |
+
"task_specific_params": {
|
| 25 |
+
"text-generation": {
|
| 26 |
+
"do_sample": true,
|
| 27 |
+
"max_length": 50
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"vocab_size": 50257
|
| 31 |
+
}
|
gpt2/int8/macos27/h17s/checkpoint/generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 50256,
|
| 3 |
+
"eos_token_id": 50256,
|
| 4 |
+
"transformers_version": "4.26.0.dev0",
|
| 5 |
+
"_from_model_config": true
|
| 6 |
+
}
|
gpt2/int8/macos27/h17s/checkpoint/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h17s/checkpoint/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8488bf4fdfaebb6cd9d174cee500ad21ee1046a3cbd9c7cbe2e41d61449d2ab5
|
| 3 |
+
size 78767816
|
gpt2/int8/macos27/h17s/checkpoint/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h17s/checkpoint/tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"model_max_length": 1024}
|
gpt2/int8/macos27/h17s/checkpoint/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ANECompiler": "10.26.4",
|
| 3 |
+
"LLIRVersion": "0.1b",
|
| 4 |
+
"Weights": [
|
| 5 |
+
{
|
| 6 |
+
"11029520955045366355": "gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights"
|
| 7 |
+
}
|
| 8 |
+
]
|
| 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.weights
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edf90ae6fc75dced0c6868dc53c34460d9c4e5b382cb8bd86bd86f83c092dbd9
|
| 3 |
+
size 165894
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ff260358e293928f6474e2fa2c66651d136f3efd9a5a3a0e26e4fde836aac2b
|
| 3 |
+
size 650804
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a613450c399f0efe86f56c148185d02237958e0ba26fdb339fbb9c38caf2345
|
| 3 |
+
size 684956
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5416a12202a9e65fa432e176f53e685c80add2fa32a18be2b8eab82fd4c1bfae
|
| 3 |
+
size 723806
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d79c2937292bd60fb44b2ed2e648d370fd232c0978ff5336c6cb4db788d20ad
|
| 3 |
+
size 698484
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f27b0dd825a4c16bd8db94119a5cf81a92f23d30bb92786e71130458a1f7a67
|
| 3 |
+
size 702338
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d8a63d6716c2bd5db2b850deab441b40cd1d72f2c330f53a47abd9fd1372dcb
|
| 3 |
+
size 728501
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:511f8d4ca332507ec435948ffadc1b6ca1f06bfa5a8c9ec63de1e76aa7bc1d11
|
| 3 |
+
size 705454
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78831651de210ef812fc849cdf70ca3a4cdcb542156e5e8795da94ec77f52322
|
| 3 |
+
size 657197
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:401cdc48f9cc9e2ec34c851b29f6950cd50ded30b638be42fc4b4b0af5d7e550
|
| 3 |
+
size 712980
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a52ddf60c501e7576d1d9f05b4370e4a8555943eb32a14fddb7f110c4a533f5f
|
| 3 |
+
size 674676
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1181511ecb92dd868965249b41a09318a5d9fb74ae120fe23fce867c7f5209d6
|
| 3 |
+
size 720062
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1c7bebe3e004d3ad62a508db2516f7d568c1d10ca4787b206aa7f342bb96897
|
| 3 |
+
size 699454
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:941acde7f31779f3c8284d2868207f39fa69ffa30d4eba40df6f2a2d31d77e7f
|
| 3 |
+
size 720774
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c77f83be382e1a00a0925816af1ebb4595ad40f3f4a25e9e32b3ff43fa00ff90
|
| 3 |
+
size 700446
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4268b5366d4a57bb4636d6569b518ee2b7cdcae883672eade99b70fd95b6c4a
|
| 3 |
+
size 647898
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ebe9687a0afbd461d8da95a67e9e64acae7ad8e450dc26354bd4f9b9345cb08c
|
| 3 |
+
size 683320
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c82d9dea8e2d5120f6b47688f9e2413e08c60311fd657fe48580808bfef0f7c
|
| 3 |
+
size 687450
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c98077db3001c78b1dc59918693c9fd3d5aeb2d9d0cbe903d25e192ac5a8073f
|
| 3 |
+
size 697946
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79d59e8ba59424771550918d731216401717532c15b5f8e6d74d8410e5c23abe
|
| 3 |
+
size 702485
|
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.bc
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a66f89d0a4846bac64c6cb6643163538853b6e2415f3de05441b320eeb65486a
|
| 3 |
+
size 690265
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/manifest.plist
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/original_model_0.mpsgraph
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a475dc3b0c7db200d70c999747324d74f8298977e70fbb91e3d835a28b16d2c2
|
| 3 |
+
size 1497314
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/resources.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86b8594a26fa945ea3465c940f397f579e1a78127a7d94f569d537caeae94edd
|
| 3 |
+
size 85344104
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/specialized_model_1.mpsgraph
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0666c9eaf9092bb5249b97d50fb88001c66c8315e6576ac95cd763a741e050c2
|
| 3 |
+
size 1371725
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main-h17s.mlirb
ADDED
|
Binary file (7.83 kB). View file
|
|
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/main.hash
ADDED
|
Binary file (32 Bytes). View file
|
|
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/metadata.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"producer" : "coreai-build-3600.83.1",
|
| 3 |
+
"assetVersion" : "2.0",
|
| 4 |
+
"creationDate" : "20261101T124638Z",
|
| 5 |
+
"sourceHash" : "26CC0E7170D5D954BC651BF9982D6C2B59F044B09720FCB6480B56F5AB87C55D"
|
| 6 |
+
}
|
gpt2/int8/macos27/h17s/decoder.h17s.aimodelc/stats.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 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"}]}
|
gpt2/int8/macos27/h17s/model.json
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"kind": "gpt2",
|
| 3 |
+
"version": 2,
|
| 4 |
+
"model": "gpt2",
|
| 5 |
+
"config": {
|
| 6 |
+
"hidden": 768,
|
| 7 |
+
"heads": 12,
|
| 8 |
+
"layers": 12,
|
| 9 |
+
"positions": 1024,
|
| 10 |
+
"vocab": 50257,
|
| 11 |
+
"eps": 1e-05,
|
| 12 |
+
"ffn": 3072
|
| 13 |
+
},
|
| 14 |
+
"capacities": [
|
| 15 |
+
256,
|
| 16 |
+
512,
|
| 17 |
+
1024
|
| 18 |
+
],
|
| 19 |
+
"prefill_width": 64,
|
| 20 |
+
"batch_sizes": [
|
| 21 |
+
1,
|
| 22 |
+
4,
|
| 23 |
+
8
|
| 24 |
+
],
|
| 25 |
+
"weights": "int8-per-channel",
|
| 26 |
+
"assets": [
|
| 27 |
+
{
|
| 28 |
+
"asset": "decoder.h17s.aimodelc",
|
| 29 |
+
"source_hash": "26cc0e7170d5d954bc651bf9982d6c2b59f044b09720fcb6480b56f5ab87c55d",
|
| 30 |
+
"start": 0,
|
| 31 |
+
"end": 12,
|
| 32 |
+
"functions": [
|
| 33 |
+
"gpt2_l0c256w64",
|
| 34 |
+
"gpt2_l0c256w1",
|
| 35 |
+
"gpt2_l0c512w64",
|
| 36 |
+
"gpt2_l0c512w1",
|
| 37 |
+
"gpt2_l0c1024w64",
|
| 38 |
+
"gpt2_l0c1024w1",
|
| 39 |
+
"gpt2_l0c256w4",
|
| 40 |
+
"gpt2_l0c512w4",
|
| 41 |
+
"gpt2_l0c1024w4",
|
| 42 |
+
"gpt2_l0c2048w64",
|
| 43 |
+
"gpt2_l0c2048w4",
|
| 44 |
+
"gpt2_l0c4096w64",
|
| 45 |
+
"gpt2_l0c4096w4",
|
| 46 |
+
"gpt2_l0c256w8",
|
| 47 |
+
"gpt2_l0c512w8",
|
| 48 |
+
"gpt2_l0c1024w8",
|
| 49 |
+
"gpt2_l0c2048w8",
|
| 50 |
+
"gpt2_l0c4096w8",
|
| 51 |
+
"gpt2_l0c8192w64",
|
| 52 |
+
"gpt2_l0c8192w8"
|
| 53 |
+
],
|
| 54 |
+
"cache_functions": [
|
| 55 |
+
{
|
| 56 |
+
"name": "gpt2_l0c256w64",
|
| 57 |
+
"capacity": 256,
|
| 58 |
+
"width": 64,
|
| 59 |
+
"batch": 1
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"name": "gpt2_l0c256w1",
|
| 63 |
+
"capacity": 256,
|
| 64 |
+
"width": 1,
|
| 65 |
+
"batch": 1
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "gpt2_l0c512w64",
|
| 69 |
+
"capacity": 512,
|
| 70 |
+
"width": 64,
|
| 71 |
+
"batch": 1
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"name": "gpt2_l0c512w1",
|
| 75 |
+
"capacity": 512,
|
| 76 |
+
"width": 1,
|
| 77 |
+
"batch": 1
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name": "gpt2_l0c1024w64",
|
| 81 |
+
"capacity": 1024,
|
| 82 |
+
"width": 64,
|
| 83 |
+
"batch": 1
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "gpt2_l0c1024w1",
|
| 87 |
+
"capacity": 1024,
|
| 88 |
+
"width": 1,
|
| 89 |
+
"batch": 1
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"name": "gpt2_l0c256w64",
|
| 93 |
+
"capacity": 256,
|
| 94 |
+
"width": 64,
|
| 95 |
+
"batch": 4
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"name": "gpt2_l0c256w4",
|
| 99 |
+
"capacity": 256,
|
| 100 |
+
"width": 4,
|
| 101 |
+
"batch": 4
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"name": "gpt2_l0c512w64",
|
| 105 |
+
"capacity": 512,
|
| 106 |
+
"width": 64,
|
| 107 |
+
"batch": 4
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"name": "gpt2_l0c512w4",
|
| 111 |
+
"capacity": 512,
|
| 112 |
+
"width": 4,
|
| 113 |
+
"batch": 4
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"name": "gpt2_l0c1024w64",
|
| 117 |
+
"capacity": 1024,
|
| 118 |
+
"width": 64,
|
| 119 |
+
"batch": 4
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "gpt2_l0c1024w4",
|
| 123 |
+
"capacity": 1024,
|
| 124 |
+
"width": 4,
|
| 125 |
+
"batch": 4
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"name": "gpt2_l0c2048w64",
|
| 129 |
+
"capacity": 2048,
|
| 130 |
+
"width": 64,
|
| 131 |
+
"batch": 4
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"name": "gpt2_l0c2048w4",
|
| 135 |
+
"capacity": 2048,
|
| 136 |
+
"width": 4,
|
| 137 |
+
"batch": 4
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"name": "gpt2_l0c4096w64",
|
| 141 |
+
"capacity": 4096,
|
| 142 |
+
"width": 64,
|
| 143 |
+
"batch": 4
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "gpt2_l0c4096w4",
|
| 147 |
+
"capacity": 4096,
|
| 148 |
+
"width": 4,
|
| 149 |
+
"batch": 4
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "gpt2_l0c256w64",
|
| 153 |
+
"capacity": 256,
|
| 154 |
+
"width": 64,
|
| 155 |
+
"batch": 8
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"name": "gpt2_l0c256w8",
|
| 159 |
+
"capacity": 256,
|
| 160 |
+
"width": 8,
|
| 161 |
+
"batch": 8
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"name": "gpt2_l0c512w64",
|
| 165 |
+
"capacity": 512,
|
| 166 |
+
"width": 64,
|
| 167 |
+
"batch": 8
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"name": "gpt2_l0c512w8",
|
| 171 |
+
"capacity": 512,
|
| 172 |
+
"width": 8,
|
| 173 |
+
"batch": 8
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"name": "gpt2_l0c1024w64",
|
| 177 |
+
"capacity": 1024,
|
| 178 |
+
"width": 64,
|
| 179 |
+
"batch": 8
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"name": "gpt2_l0c1024w8",
|
| 183 |
+
"capacity": 1024,
|
| 184 |
+
"width": 8,
|
| 185 |
+
"batch": 8
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"name": "gpt2_l0c2048w64",
|
| 189 |
+
"capacity": 2048,
|
| 190 |
+
"width": 64,
|
| 191 |
+
"batch": 8
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"name": "gpt2_l0c2048w8",
|
| 195 |
+
"capacity": 2048,
|
| 196 |
+
"width": 8,
|
| 197 |
+
"batch": 8
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"name": "gpt2_l0c4096w64",
|
| 201 |
+
"capacity": 4096,
|
| 202 |
+
"width": 64,
|
| 203 |
+
"batch": 8
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "gpt2_l0c4096w8",
|
| 207 |
+
"capacity": 4096,
|
| 208 |
+
"width": 8,
|
| 209 |
+
"batch": 8
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"name": "gpt2_l0c8192w64",
|
| 213 |
+
"capacity": 8192,
|
| 214 |
+
"width": 64,
|
| 215 |
+
"batch": 8
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"name": "gpt2_l0c8192w8",
|
| 219 |
+
"capacity": 8192,
|
| 220 |
+
"width": 8,
|
| 221 |
+
"batch": 8
|
| 222 |
+
}
|
| 223 |
+
]
|
| 224 |
+
}
|
| 225 |
+
],
|
| 226 |
+
"checkpoint_hash": "e422f60580cb6e7a458de329e2ff44690428afe1ab145e6d562a004f42aed985",
|
| 227 |
+
"source": {
|
| 228 |
+
"repo": "openai-community/gpt2",
|
| 229 |
+
"revision": "607a30d783dfa663caf39e06633721c8d4cfcd7e"
|
| 230 |
+
},
|
| 231 |
+
"architecture": "h17s",
|
| 232 |
+
"min_os": "27.0",
|
| 233 |
+
"deployment": "aot-staged"
|
| 234 |
+
}
|
gpt2/int8/macos27/h18g/checkpoint/README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
tags:
|
| 4 |
+
- exbert
|
| 5 |
+
|
| 6 |
+
license: mit
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# GPT-2
|
| 11 |
+
|
| 12 |
+
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
|
| 13 |
+
|
| 14 |
+
Pretrained model on English language using a causal language modeling (CLM) objective. It was introduced in
|
| 15 |
+
[this paper](https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)
|
| 16 |
+
and first released at [this page](https://openai.com/blog/better-language-models/).
|
| 17 |
+
|
| 18 |
+
Disclaimer: The team releasing GPT-2 also wrote a
|
| 19 |
+
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md) for their model. Content from this model card
|
| 20 |
+
has been written by the Hugging Face team to complete the information they provided and give specific examples of bias.
|
| 21 |
+
|
| 22 |
+
## Model description
|
| 23 |
+
|
| 24 |
+
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This
|
| 25 |
+
means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots
|
| 26 |
+
of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely,
|
| 27 |
+
it was trained to guess the next word in sentences.
|
| 28 |
+
|
| 29 |
+
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence,
|
| 30 |
+
shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the
|
| 31 |
+
predictions for the token `i` only uses the inputs from `1` to `i` but not the future tokens.
|
| 32 |
+
|
| 33 |
+
This way, the model learns an inner representation of the English language that can then be used to extract features
|
| 34 |
+
useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a
|
| 35 |
+
prompt.
|
| 36 |
+
|
| 37 |
+
This is the **smallest** version of GPT-2, with 124M parameters.
|
| 38 |
+
|
| 39 |
+
**Related Models:** [GPT-Large](https://huggingface.co/gpt2-large), [GPT-Medium](https://huggingface.co/gpt2-medium) and [GPT-XL](https://huggingface.co/gpt2-xl)
|
| 40 |
+
|
| 41 |
+
## Intended uses & limitations
|
| 42 |
+
|
| 43 |
+
You can use the raw model for text generation or fine-tune it to a downstream task. See the
|
| 44 |
+
[model hub](https://huggingface.co/models?filter=gpt2) to look for fine-tuned versions on a task that interests you.
|
| 45 |
+
|
| 46 |
+
### How to use
|
| 47 |
+
|
| 48 |
+
You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we
|
| 49 |
+
set a seed for reproducibility:
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
>>> from transformers import pipeline, set_seed
|
| 53 |
+
>>> generator = pipeline('text-generation', model='gpt2')
|
| 54 |
+
>>> set_seed(42)
|
| 55 |
+
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)
|
| 56 |
+
|
| 57 |
+
[{'generated_text': "Hello, I'm a language model, a language for thinking, a language for expressing thoughts."},
|
| 58 |
+
{'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"},
|
| 59 |
+
{'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"},
|
| 60 |
+
{'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"},
|
| 61 |
+
{'generated_text': 'Hello, I\'m a language model, not a language model"\n\nThe concept of "no-tricks" comes in handy later with new'}]
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Here is how to use this model to get the features of a given text in PyTorch:
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from transformers import GPT2Tokenizer, GPT2Model
|
| 68 |
+
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
| 69 |
+
model = GPT2Model.from_pretrained('gpt2')
|
| 70 |
+
text = "Replace me by any text you'd like."
|
| 71 |
+
encoded_input = tokenizer(text, return_tensors='pt')
|
| 72 |
+
output = model(**encoded_input)
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
and in TensorFlow:
|
| 76 |
+
|
| 77 |
+
```python
|
| 78 |
+
from transformers import GPT2Tokenizer, TFGPT2Model
|
| 79 |
+
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
| 80 |
+
model = TFGPT2Model.from_pretrained('gpt2')
|
| 81 |
+
text = "Replace me by any text you'd like."
|
| 82 |
+
encoded_input = tokenizer(text, return_tensors='tf')
|
| 83 |
+
output = model(encoded_input)
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Limitations and bias
|
| 87 |
+
|
| 88 |
+
The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of
|
| 89 |
+
unfiltered content from the internet, which is far from neutral. As the openAI team themselves point out in their
|
| 90 |
+
[model card](https://github.com/openai/gpt-2/blob/master/model_card.md#out-of-scope-use-cases):
|
| 91 |
+
|
| 92 |
+
> Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases
|
| 93 |
+
> that require the generated text to be true.
|
| 94 |
+
>
|
| 95 |
+
> Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do
|
| 96 |
+
> not recommend that they be deployed into systems that interact with humans > unless the deployers first carry out a
|
| 97 |
+
> study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race,
|
| 98 |
+
> and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar
|
| 99 |
+
> levels of caution around use cases that are sensitive to biases around human attributes.
|
| 100 |
+
|
| 101 |
+
Here's an example of how the model can have biased predictions:
|
| 102 |
+
|
| 103 |
+
```python
|
| 104 |
+
>>> from transformers import pipeline, set_seed
|
| 105 |
+
>>> generator = pipeline('text-generation', model='gpt2')
|
| 106 |
+
>>> set_seed(42)
|
| 107 |
+
>>> generator("The White man worked as a", max_length=10, num_return_sequences=5)
|
| 108 |
+
|
| 109 |
+
[{'generated_text': 'The White man worked as a mannequin for'},
|
| 110 |
+
{'generated_text': 'The White man worked as a maniser of the'},
|
| 111 |
+
{'generated_text': 'The White man worked as a bus conductor by day'},
|
| 112 |
+
{'generated_text': 'The White man worked as a plumber at the'},
|
| 113 |
+
{'generated_text': 'The White man worked as a journalist. He had'}]
|
| 114 |
+
|
| 115 |
+
>>> set_seed(42)
|
| 116 |
+
>>> generator("The Black man worked as a", max_length=10, num_return_sequences=5)
|
| 117 |
+
|
| 118 |
+
[{'generated_text': 'The Black man worked as a man at a restaurant'},
|
| 119 |
+
{'generated_text': 'The Black man worked as a car salesman in a'},
|
| 120 |
+
{'generated_text': 'The Black man worked as a police sergeant at the'},
|
| 121 |
+
{'generated_text': 'The Black man worked as a man-eating monster'},
|
| 122 |
+
{'generated_text': 'The Black man worked as a slave, and was'}]
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
This bias will also affect all fine-tuned versions of this model.
|
| 126 |
+
|
| 127 |
+
## Training data
|
| 128 |
+
|
| 129 |
+
The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web
|
| 130 |
+
pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from
|
| 131 |
+
this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights
|
| 132 |
+
40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText
|
| 133 |
+
[here](https://github.com/openai/gpt-2/blob/master/domains.txt).
|
| 134 |
+
|
| 135 |
+
## Training procedure
|
| 136 |
+
|
| 137 |
+
### Preprocessing
|
| 138 |
+
|
| 139 |
+
The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a
|
| 140 |
+
vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.
|
| 141 |
+
|
| 142 |
+
The larger model was trained on 256 cloud TPU v3 cores. The training duration was not disclosed, nor were the exact
|
| 143 |
+
details of training.
|
| 144 |
+
|
| 145 |
+
## Evaluation results
|
| 146 |
+
|
| 147 |
+
The model achieves the following results without any fine-tuning (zero-shot):
|
| 148 |
+
|
| 149 |
+
| Dataset | LAMBADA | LAMBADA | CBT-CN | CBT-NE | WikiText2 | PTB | enwiki8 | text8 | WikiText103 | 1BW |
|
| 150 |
+
|:--------:|:-------:|:-------:|:------:|:------:|:---------:|:------:|:-------:|:------:|:-----------:|:-----:|
|
| 151 |
+
| (metric) | (PPL) | (ACC) | (ACC) | (ACC) | (PPL) | (PPL) | (BPB) | (BPC) | (PPL) | (PPL) |
|
| 152 |
+
| | 35.13 | 45.99 | 87.65 | 83.4 | 29.41 | 65.85 | 1.16 | 1,17 | 37.50 | 75.20 |
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
### BibTeX entry and citation info
|
| 156 |
+
|
| 157 |
+
```bibtex
|
| 158 |
+
@article{radford2019language,
|
| 159 |
+
title={Language Models are Unsupervised Multitask Learners},
|
| 160 |
+
author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya},
|
| 161 |
+
year={2019}
|
| 162 |
+
}
|
| 163 |
+
```
|
| 164 |
+
|
| 165 |
+
<a href="https://huggingface.co/exbert/?model=gpt2">
|
| 166 |
+
<img width="300px" src="https://cdn-media.huggingface.co/exbert/button.png">
|
| 167 |
+
</a>
|
gpt2/int8/macos27/h18g/checkpoint/config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.1,
|
| 7 |
+
"bos_token_id": 50256,
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 50256,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_epsilon": 1e-05,
|
| 12 |
+
"model_type": "gpt2",
|
| 13 |
+
"n_ctx": 1024,
|
| 14 |
+
"n_embd": 768,
|
| 15 |
+
"n_head": 12,
|
| 16 |
+
"n_layer": 12,
|
| 17 |
+
"n_positions": 1024,
|
| 18 |
+
"resid_pdrop": 0.1,
|
| 19 |
+
"summary_activation": null,
|
| 20 |
+
"summary_first_dropout": 0.1,
|
| 21 |
+
"summary_proj_to_labels": true,
|
| 22 |
+
"summary_type": "cls_index",
|
| 23 |
+
"summary_use_proj": true,
|
| 24 |
+
"task_specific_params": {
|
| 25 |
+
"text-generation": {
|
| 26 |
+
"do_sample": true,
|
| 27 |
+
"max_length": 50
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"vocab_size": 50257
|
| 31 |
+
}
|
gpt2/int8/macos27/h18g/checkpoint/generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 50256,
|
| 3 |
+
"eos_token_id": 50256,
|
| 4 |
+
"transformers_version": "4.26.0.dev0",
|
| 5 |
+
"_from_model_config": true
|
| 6 |
+
}
|
gpt2/int8/macos27/h18g/checkpoint/merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h18g/checkpoint/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8488bf4fdfaebb6cd9d174cee500ad21ee1046a3cbd9c7cbe2e41d61449d2ab5
|
| 3 |
+
size 78767816
|
gpt2/int8/macos27/h18g/checkpoint/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h18g/checkpoint/tokenizer_config.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"model_max_length": 1024}
|
gpt2/int8/macos27/h18g/checkpoint/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
gpt2/int8/macos27/h18g/decoder.h18g.aimodelc/main-h18g-delegates/MPSGraph/mpsExecutable.mpsgraphpackage/binary_0.llir.bundle/Manifest.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ANECompiler": "10.26.4",
|
| 3 |
+
"LLIRVersion": "0.1b",
|
| 4 |
+
"Weights": [
|
| 5 |
+
{
|
| 6 |
+
"5462290158104985093": "gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc/gpt2_l0c256w64_0yMrxWXKCA6QYzi-5O0Rjw_9_ANE_region_0_0.bc.weights"
|
| 7 |
+
}
|
| 8 |
+
]
|
| 9 |
+
}
|