IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e71f4d2 verified
raw
history blame
17.2 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.293824,
"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.43.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"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.842752,
"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.20201416015625,
"mean": 7.20201416015625,
"stdev": 0.0,
"p50": 7.20201416015625,
"p90": 7.20201416015625,
"p95": 7.20201416015625,
"p99": 7.20201416015625,
"values": [
7.20201416015625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.968413247002497e-07,
"ram": 5.306388396726902e-07,
"gpu": 1.844723697999942e-06,
"total": 3.372203862372882e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1023.791104,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.4922013750076293,
"mean": 0.006742484589145608,
"stdev": 0.0003445168649278434,
"p50": 0.006824863910675049,
"p90": 0.007146739292144775,
"p95": 0.007264582347869872,
"p99": 0.007406882648468017,
"values": [
0.007402304172515869,
0.007146048069000244,
0.007209440231323242,
0.0069868798255920414,
0.006847263813018799,
0.007016640186309814,
0.00700057601928711,
0.007081215858459473,
0.006851327896118164,
0.007054143905639648,
0.007146912097930908,
0.007014143943786621,
0.00698854398727417,
0.007044928073883057,
0.006824863910675049,
0.006952447891235352,
0.006797696113586426,
0.006927135944366455,
0.007418655872344971,
0.00736736011505127,
0.006947872161865235,
0.007324448108673096,
0.007135104179382324,
0.007224671840667725,
0.007162144184112549,
0.007050816059112549,
0.0069407038688659665,
0.00683955192565918,
0.006906720161437988,
0.006944223880767823,
0.007099264144897461,
0.007090720176696777,
0.006972896099090576,
0.00684764814376831,
0.006784992218017578,
0.006662015914916992,
0.006879839897155762,
0.006467999935150147,
0.006477119922637939,
0.006908736228942871,
0.0068707518577575686,
0.007120287895202636,
0.006779712200164795,
0.006687839984893799,
0.006738815784454346,
0.006388415813446045,
0.006309279918670654,
0.006367231845855713,
0.006363647937774658,
0.006333471775054932,
0.006313471794128418,
0.006344863891601563,
0.006331744194030761,
0.006720287799835205,
0.006620128154754639,
0.006429855823516846,
0.0062032961845397945,
0.006374847888946533,
0.006352384090423584,
0.006298624038696289,
0.006295807838439941,
0.006374271869659423,
0.006557759761810303,
0.0063348798751831055,
0.006357503890991211,
0.006351168155670166,
0.006326848030090332,
0.0063070721626281735,
0.006319295883178711,
0.006326687812805176,
0.006305408000946045,
0.006338367938995362,
0.006311327934265137
]
},
"throughput": {
"unit": "tokens/s",
"value": 296.62655858638533
},
"energy": {
"unit": "kWh",
"cpu": 7.957730783978831e-08,
"ram": 4.350816392254718e-08,
"gpu": 1.5961795021476337e-07,
"total": 2.8270342197709886e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7074551.790045242
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1039.433728,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5136707525253296,
"mean": 0.007036585651031912,
"stdev": 0.0003541739400431704,
"p50": 0.0071151361465454106,
"p90": 0.007447782516479492,
"p95": 0.007539808082580567,
"p99": 0.007652675876617432,
"values": [
0.007541535854339599,
0.00748902416229248,
0.007341087818145752,
0.00741161584854126,
0.007089663982391357,
0.00730675220489502,
0.007419167995452881,
0.007389503955841065,
0.007219647884368897,
0.0074225921630859375,
0.007364607810974121,
0.0072418560981750485,
0.007356671810150146,
0.007307519912719726,
0.007245120048522949,
0.007235007762908936,
0.007278687953948974,
0.007388832092285157,
0.007634943962097168,
0.007698272228240967,
0.007402976036071777,
0.007538656234741211,
0.007570047855377197,
0.0074635519981384275,
0.007311744213104248,
0.007310783863067627,
0.007233151912689209,
0.0072626562118530275,
0.007236639976501465,
0.007397151947021484,
0.007364607810974121,
0.00725164794921875,
0.007454080104827881,
0.007301375865936279,
0.0071151361465454106,
0.006854112148284912,
0.007,
0.006610688209533692,
0.006802175998687744,
0.007175776004791259,
0.007285280227661133,
0.0072559361457824705,
0.006971104145050049,
0.007006591796875,
0.0069617919921875,
0.006640736103057861,
0.00663804817199707,
0.006581567764282227,
0.006617695808410645,
0.006604544162750244,
0.006687967777252197,
0.00658128023147583,
0.006713151931762695,
0.006841184139251709,
0.006800191879272461,
0.006596352100372314,
0.0066152639389038086,
0.006588223934173584,
0.006619872093200684,
0.006706560134887695,
0.006595615863800049,
0.007010496139526367,
0.006628799915313721,
0.006636735916137696,
0.006593823909759522,
0.006592864036560058,
0.006603903770446777,
0.006605023860931396,
0.006642464160919189,
0.00662390422821045,
0.006597311973571778,
0.006630144119262695,
0.006557248115539551
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.11437898909827
},
"energy": {
"unit": "kWh",
"cpu": 7.331786298401264e-08,
"ram": 4.0088047475996894e-08,
"gpu": 1.4971634283651874e-07,
"total": 2.6312225329652814e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3800514.73211215
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.47994876766204836,
"mean": 0.0065746406529047716,
"stdev": 0.0002993772191616413,
"p50": 0.0066344962120056155,
"p90": 0.006911795330047607,
"p95": 0.006999859237670898,
"p99": 0.007109626770019532,
"values": [
0.0069847040176391605,
0.006958079814910889,
0.00683619213104248,
0.00690176010131836,
0.0066109437942504885,
0.00676966381072998,
0.006904831886291504,
0.00687718391418457,
0.0066979842185974124,
0.006910975933074951,
0.006815743923187256,
0.006738944053649902,
0.006845439910888672,
0.006789184093475341,
0.006743040084838867,
0.0067420158386230465,
0.006774784088134766,
0.006831103801727295,
0.007082943916320801,
0.007178239822387696,
0.006872064113616944,
0.0070225920677185055,
0.007045119762420654,
0.006964223861694336,
0.006809599876403808,
0.006804480075836182,
0.006707231998443603,
0.006750207901000976,
0.006730751991271973,
0.006872064113616944,
0.00683622407913208,
0.006747136116027832,
0.006912000179290771,
0.006755328178405762,
0.0066344962120056155,
0.006378496170043945,
0.006561791896820069,
0.006203392028808594,
0.0063508481979370115,
0.00672051191329956,
0.006789120197296142,
0.006822912216186523,
0.0065484800338745115,
0.006585343837738037,
0.006491136074066162,
0.006254591941833496,
0.006253568172454834,
0.006184959888458252,
0.006210559844970703,
0.006220799922943115,
0.006303743839263916,
0.006189055919647217,
0.006278143882751465,
0.006445055961608887,
0.006397952079772949,
0.006180863857269287,
0.006228991985321045,
0.006198272228240966,
0.00617574405670166,
0.006294528007507324,
0.006205440044403076,
0.006592512130737305,
0.006243328094482422,
0.006250495910644531,
0.00620851182937622,
0.00618393611907959,
0.006210559844970703,
0.006212607860565185,
0.006255616188049316,
0.006239232063293457,
0.006210559844970703,
0.00624128007888794,
0.006168543815612793
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.09956753426295
},
"energy": null,
"efficiency": null
}
}
}