IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6e6d0c6 verified
raw
history blame
17.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model_type": "gpt2",
"model": "openai-community/gpt2",
"processor": "openai-community/gpt2",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"model_kwargs": {},
"processor_kwargs": {},
"no_weights": true,
"device_map": null,
"torch_dtype": null,
"eval_mode": true,
"to_bettertransformer": false,
"low_cpu_mem_usage": null,
"attn_implementation": null,
"cache_implementation": null,
"autocast_enabled": false,
"autocast_dtype": null,
"torch_compile": false,
"torch_compile_target": "forward",
"torch_compile_config": {},
"quantization_scheme": null,
"quantization_config": {},
"deepspeed_inference": false,
"deepspeed_inference_config": {},
"peft_type": null,
"peft_config": {}
},
"scenario": {
"name": "inference",
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
"iterations": 1,
"duration": 1,
"warmup_runs": 1,
"input_shapes": {
"batch_size": 1,
"num_choices": 2,
"sequence_length": 2
},
"new_tokens": null,
"memory": true,
"latency": true,
"energy": true,
"forward_kwargs": {},
"generate_kwargs": {
"max_new_tokens": 2,
"min_new_tokens": 2
},
"call_kwargs": {
"num_inference_steps": 2
}
},
"launcher": {
"name": "process",
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
"device_isolation": true,
"device_isolation_action": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.285632,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.531456,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.14532666015625,
"mean": 7.14532666015625,
"stdev": 0.0,
"p50": 7.14532666015625,
"p90": 7.14532666015625,
"p95": 7.14532666015625,
"p99": 7.14532666015625,
"values": [
7.14532666015625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.0208025574684144e-06,
"ram": 5.211049834909431e-07,
"gpu": 1.724168045998814e-06,
"total": 3.2660755869581714e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1021.8496,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.49104268693923947,
"mean": 0.006547235825856527,
"stdev": 0.00032682946057927876,
"p50": 0.006635583877563476,
"p90": 0.006913702392578125,
"p95": 0.007002614355087281,
"p99": 0.0072196299552917485,
"values": [
0.007212607860565185,
0.007022304058074951,
0.006822527885437012,
0.006802783966064453,
0.0066994881629943845,
0.006644224166870117,
0.006768991947174072,
0.006903200149536133,
0.006681856155395508,
0.006855231761932373,
0.00685103988647461,
0.006857120037078858,
0.0067768640518188475,
0.006764575958251953,
0.006635583877563476,
0.006625951766967774,
0.0066244797706604,
0.0067205758094787595,
0.006840991973876953,
0.006837791919708252,
0.006788447856903076,
0.006673120021820069,
0.0068611521720886234,
0.006779232025146484,
0.006588704109191894,
0.006712672233581543,
0.006925280094146728,
0.006647391796112061,
0.006696896076202392,
0.006685120105743408,
0.006979648113250732,
0.006892896175384521,
0.0068364801406860356,
0.006799712181091309,
0.006624320030212402,
0.006613984107971192,
0.006478079795837402,
0.006650879859924317,
0.006279903888702393,
0.006312255859375,
0.006920703887939453,
0.006994175910949707,
0.00717526388168335,
0.006828320026397705,
0.006647071838378906,
0.007239615917205811,
0.006350783824920654,
0.006351039886474609,
0.006179903984069824,
0.0061586880683898925,
0.006363103866577149,
0.006162464141845703,
0.006392320156097412,
0.006172063827514648,
0.00614515209197998,
0.006140511989593506,
0.006130303859710693,
0.006134111881256104,
0.006149216175079346,
0.006160543918609619,
0.006136672019958496,
0.006304160118103027,
0.006334335803985596,
0.006286431789398193,
0.0061502399444580075,
0.006093567848205567,
0.006125216007232666,
0.0061456642150878905,
0.006119775772094727,
0.006148032188415527,
0.0061439361572265625,
0.006071839809417725,
0.006041600227355957,
0.0060588159561157226,
0.006312672138214111
]
},
"throughput": {
"unit": "tokens/s",
"value": 305.47242427125417
},
"energy": {
"unit": "kWh",
"cpu": 7.812999276041288e-08,
"ram": 4.2716856181147914e-08,
"gpu": 1.5286744685526237e-07,
"total": 2.737142957968232e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7306889.083661857
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1037.492224,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.5183674225807189,
"mean": 0.006911565634409586,
"stdev": 0.0003304561895476605,
"p50": 0.007025023937225342,
"p90": 0.007329715251922608,
"p95": 0.007392713403701782,
"p99": 0.007437212762832642,
"values": [
0.007361855983734131,
0.007465983867645264,
0.0071485438346862796,
0.007155456066131592,
0.0069604477882385255,
0.0070648322105407715,
0.00718720006942749,
0.007203360080718994,
0.007214240074157715,
0.007184991836547852,
0.007230239868164063,
0.007153535842895508,
0.007220672130584717,
0.007187263965606689,
0.006964032173156738,
0.0071073598861694336,
0.007093440055847168,
0.007081920146942138,
0.0072707839012146,
0.007242400169372559,
0.0070731201171875,
0.007369120121002198,
0.007107840061187744,
0.007181983947753906,
0.00706492805480957,
0.007133152008056641,
0.007055263996124267,
0.007122623920440674,
0.00704691219329834,
0.007137663841247558,
0.007383456230163574,
0.007281504154205322,
0.007208191871643067,
0.0070764479637146,
0.007386367797851562,
0.006998528003692627,
0.006794464111328125,
0.006797344207763672,
0.006514175891876221,
0.007025023937225342,
0.007407519817352295,
0.007411935806274414,
0.007427103996276855,
0.007034687995910644,
0.006986688137054444,
0.00683955192565918,
0.006781375885009765,
0.006809375762939453,
0.006466847896575928,
0.006660895824432373,
0.006607359886169434,
0.006692319869995117,
0.006565216064453125,
0.006452896118164062,
0.006477727890014649,
0.00648198413848877,
0.006486911773681641,
0.006478816032409668,
0.006445055961608887,
0.0064551677703857425,
0.006847328186035157,
0.00669209623336792,
0.006719359874725342,
0.006578335762023926,
0.006402847766876221,
0.006435008049011231,
0.006477248191833496,
0.006485983848571777,
0.006462975978851319,
0.006456352233886718,
0.0063918719291687015,
0.006407519817352295,
0.006402431964874267,
0.006592031955718994,
0.0067899198532104495
]
},
"throughput": {
"unit": "tokens/s",
"value": 144.685018257144
},
"energy": {
"unit": "kWh",
"cpu": 6.963832679207804e-08,
"ram": 3.8065329230058826e-08,
"gpu": 1.4064101840397887e-07,
"total": 2.4834467442611573e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4026661.744653224
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 75,
"total": 0.48410927867889386,
"mean": 0.006454790382385253,
"stdev": 0.0002764361897624375,
"p50": 0.006534143924713135,
"p90": 0.006795020771026612,
"p95": 0.00687503342628479,
"p99": 0.006945546197891236,
"values": [
0.006851583957672119,
0.006938623905181885,
0.006651904106140137,
0.006653952121734619,
0.006479872226715088,
0.0065710082054138185,
0.0066826238632202144,
0.006696959972381592,
0.006717440128326416,
0.0066713600158691405,
0.006723584175109864,
0.006659039974212647,
0.006718495845794678,
0.006670335769653321,
0.006487040042877197,
0.006608895778656006,
0.0065792322158813475,
0.0065710082054138185,
0.006759424209594727,
0.006707200050354004,
0.0065853757858276366,
0.006834176063537598,
0.0066078720092773435,
0.0066744318008422855,
0.006540351867675781,
0.0066109437942504885,
0.006534143924713135,
0.006604735851287842,
0.00653004789352417,
0.006631423950195312,
0.0068187518119812015,
0.006746111869812011,
0.006675456047058105,
0.0065812478065490725,
0.006864895820617676,
0.006529024124145508,
0.0063170561790466305,
0.00638259220123291,
0.006127615928649902,
0.006557695865631104,
0.0068986878395080565,
0.006900735855102539,
0.006965248107910156,
0.006556640148162842,
0.006562816143035889,
0.0063907837867736815,
0.006386688232421875,
0.006409215927124024,
0.006085631847381592,
0.006240255832672119,
0.00622489595413208,
0.006300672054290772,
0.006182911872863769,
0.00607539176940918,
0.006073344230651856,
0.006100992202758789,
0.006107135772705078,
0.006097919940948486,
0.0060661759376525876,
0.00607539176940918,
0.0064204797744750975,
0.006293504238128662,
0.006312960147857666,
0.006193120002746582,
0.006023168087005615,
0.006045695781707764,
0.006094880104064941,
0.006093823909759521,
0.006076416015625,
0.006060031890869141,
0.006011903762817383,
0.006009856224060059,
0.006024191856384278,
0.006209536075592041,
0.006384640216827392
]
},
"throughput": {
"unit": "tokens/s",
"value": 154.92369864232023
},
"energy": null,
"efficiency": null
}
}
}