IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e8c18ca verified
raw
history blame
15.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": "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": {},
"hub_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,
"latency": true,
"memory": 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.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1039.458304,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 68,
"total": 0.48493798398971555,
"mean": 0.007131440941025228,
"stdev": 0.00029395819693826206,
"p50": 0.007174463987350464,
"p90": 0.007287292861938476,
"p95": 0.007684726333618164,
"p99": 0.008294362554550171,
"values": [
0.008447615623474122,
0.008218879699707032,
0.007844511985778808,
0.007542912006378174,
0.006943967819213867,
0.006996640205383301,
0.00689299201965332,
0.007204192161560059,
0.007282464027404785,
0.007198719978332519,
0.0072436161041259765,
0.007202464103698731,
0.007231328010559082,
0.007192831993103027,
0.007230688095092774,
0.007177919864654541,
0.00716435194015503,
0.0068875842094421385,
0.006888000011444092,
0.006874656200408936,
0.0068873920440673825,
0.006909408092498779,
0.0069064640998840335,
0.006939519882202148,
0.00688972806930542,
0.00689683198928833,
0.006887551784515381,
0.006920383930206299,
0.006892320156097412,
0.006917407989501953,
0.006912831783294678,
0.006889120101928711,
0.006960512161254883,
0.0068839359283447265,
0.006902976036071777,
0.006928160190582276,
0.006895552158355713,
0.006924191951751709,
0.00729856014251709,
0.007239840030670166,
0.0072295360565185545,
0.0072212800979614255,
0.007197663784027099,
0.007215807914733887,
0.007207263946533203,
0.007018752098083496,
0.007181087970733643,
0.007221471786499023,
0.0071881599426269534,
0.007199071884155274,
0.0071840319633483885,
0.007204544067382812,
0.007246240139007569,
0.007189119815826416,
0.0077610878944396975,
0.007249599933624268,
0.00718668794631958,
0.007405824184417724,
0.0072178559303283695,
0.0071653761863708495,
0.0071710081100463865,
0.007217055797576905,
0.0068576960563659665,
0.006898303985595703,
0.006881951808929443,
0.006929408073425293,
0.006899007797241211,
0.006844064235687256
]
},
"throughput": {
"unit": "tokens/s",
"value": 280.44823150599865
},
"energy": {
"unit": "kWh",
"cpu": 8.627876591375293e-08,
"ram": 4.717262999567957e-08,
"gpu": 1.644163956231878e-07,
"total": 2.9786779153262034e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6714388.2516112
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1039.458304,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 68,
"total": 0.5171193952560422,
"mean": 0.007604696989059447,
"stdev": 0.00040966541479903483,
"p50": 0.00763976001739502,
"p90": 0.007730006551742554,
"p95": 0.008339572620391845,
"p99": 0.009120347270965574,
"values": [
0.008683744430541993,
0.00871014404296875,
0.008645119667053223,
0.007395328044891358,
0.0073640642166137695,
0.007326879978179932,
0.007357696056365967,
0.00768726396560669,
0.007669151782989502,
0.007637887954711914,
0.007674176216125489,
0.007772128105163575,
0.0076900157928466795,
0.007660863876342773,
0.0076845440864562985,
0.007711071968078614,
0.007665599822998047,
0.007329728126525879,
0.007329792022705078,
0.007325151920318604,
0.007320543766021728,
0.0072847681045532225,
0.007570208072662354,
0.007285952091217041,
0.0074327998161315915,
0.007322624206542969,
0.0073311362266540525,
0.007313888072967529,
0.007309792041778565,
0.007319104194641113,
0.007310688018798828,
0.007327104091644287,
0.007347775936126709,
0.007312895774841309,
0.0073368000984191896,
0.007304992198944092,
0.007336160182952881,
0.007406400203704834,
0.0077044801712036134,
0.007722432136535644,
0.007652448177337646,
0.007683551788330078,
0.007673600196838379,
0.00769916820526123,
0.007692543983459472,
0.0076436161994934086,
0.0077491202354431155,
0.007641632080078125,
0.007651264190673828,
0.007664576053619385,
0.007747680187225342,
0.00766864013671875,
0.007615871906280517,
0.0076921281814575195,
0.007714848041534424,
0.007693920135498047,
0.009953184127807617,
0.0077181758880615235,
0.00762390422821045,
0.007653920173645019,
0.0076488637924194336,
0.007650335788726806,
0.007351871967315674,
0.007425024032592774,
0.0073173117637634275,
0.007330687999725341,
0.007307040214538574,
0.007333568096160889
]
},
"throughput": {
"unit": "tokens/s",
"value": 131.49767853192012
},
"energy": {
"unit": "kWh",
"cpu": 8.338956890337655e-08,
"ram": 4.55946940306796e-08,
"gpu": 1.5554020954824434e-07,
"total": 2.845244724823004e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3514636.1621396476
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 67,
"total": 0.9870233640670779,
"mean": 0.014731692001001159,
"stdev": 0.0005640544464333131,
"p50": 0.014849023818969726,
"p90": 0.015012249374389648,
"p95": 0.015458406448364256,
"p99": 0.016954757080078126,
"values": [
0.016934911727905275,
0.016328704833984374,
0.015370240211486816,
0.014358528137207031,
0.014344191551208496,
0.0142807035446167,
0.01490227222442627,
0.01496985626220703,
0.014883839607238769,
0.014938112258911132,
0.014999551773071289,
0.014952447891235352,
0.014889984130859376,
0.014928895950317383,
0.014919679641723632,
0.014833663940429688,
0.014295040130615234,
0.014236672401428223,
0.014229503631591797,
0.014239744186401367,
0.014221311569213867,
0.014482432365417481,
0.014253055572509766,
0.014369791984558105,
0.014236672401428223,
0.014252032279968262,
0.014264320373535156,
0.014228480339050293,
0.014262271881103515,
0.014232576370239258,
0.014261247634887696,
0.014336000442504883,
0.01422646427154541,
0.014259167671203613,
0.014264320373535156,
0.014255104064941406,
0.014360575675964356,
0.015031295776367188,
0.014996479988098145,
0.014898176193237305,
0.014942208290100097,
0.014905344009399414,
0.014940159797668457,
0.014922752380371093,
0.01470464038848877,
0.014958592414855957,
0.014888959884643555,
0.014838784217834473,
0.01491763210296631,
0.014964735984802247,
0.014892031669616699,
0.014897151947021485,
0.01490124797821045,
0.01549619197845459,
0.014972928047180176,
0.0169932804107666,
0.015349760055541992,
0.014850048065185547,
0.01486847972869873,
0.014849023818969726,
0.01488486385345459,
0.014264320373535156,
0.014336000442504883,
0.014228480339050293,
0.014295040130615234,
0.014208000183105468,
0.014224384307861328
]
},
"throughput": {
"unit": "tokens/s",
"value": 67.88086527549181
},
"energy": null,
"efficiency": null
}
}
}