IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e5b0296 verified
raw
history blame
17.9 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": {},
"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,
"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.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": 718.76608,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.339328
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.22008154296875,
"mean": 7.22008154296875,
"stdev": 0.0,
"p50": 7.22008154296875,
"p90": 7.22008154296875,
"p95": 7.22008154296875,
"p99": 7.22008154296875,
"values": [
7.22008154296875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.793115986718073e-07,
"ram": 5.197320580065442e-07,
"gpu": 1.6683346679999354e-06,
"total": 3.1673783246782867e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1034.539008,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 78,
"total": 0.48606099224090576,
"mean": 0.006231551182575715,
"stdev": 0.00022044247419866617,
"p50": 0.006172639846801758,
"p90": 0.006348444938659668,
"p95": 0.00639748146533966,
"p99": 0.007367847881317139,
"values": [
0.007453472137451172,
0.007012095928192139,
0.007342271804809571,
0.006242368221282959,
0.006213568210601807,
0.006405695915222168,
0.006214047908782959,
0.006186592102050781,
0.006176383972167969,
0.0062046079635620114,
0.00619865608215332,
0.006181407928466797,
0.006191167831420898,
0.006197535991668701,
0.006194431781768799,
0.006188416004180909,
0.006151999950408936,
0.006157951831817627,
0.006145279884338379,
0.006154623985290528,
0.006159584045410157,
0.006153120040893555,
0.006176991939544678,
0.006181344032287598,
0.006139488220214844,
0.006177216053009033,
0.006151135921478272,
0.006171840190887451,
0.006158527851104737,
0.006161503791809082,
0.006155072212219238,
0.006163296222686768,
0.006173151969909668,
0.006168704032897949,
0.006162335872650146,
0.006154943943023681,
0.006172192096710205,
0.006188223838806153,
0.0061784319877624515,
0.006192543983459473,
0.006161183834075928,
0.006192543983459473,
0.0062000322341918945,
0.006178751945495605,
0.006172959804534912,
0.006158720016479493,
0.006154016017913818,
0.006152448177337647,
0.006184800148010254,
0.006396031856536865,
0.00634441614151001,
0.006352320194244385,
0.006376800060272217,
0.00633296012878418,
0.006346784114837647,
0.006388288021087646,
0.006167263984680176,
0.006149248123168945,
0.006152128219604492,
0.006156832218170166,
0.006167808055877686,
0.006167903900146484,
0.0061842241287231444,
0.006158976078033447,
0.006135903835296631,
0.0061188158988952634,
0.006086783885955811,
0.006184671878814697,
0.006184000015258789,
0.006145055770874023,
0.006158527851104737,
0.006166751861572266,
0.006140192031860351,
0.006173952102661133,
0.006140992164611816,
0.006158048152923584,
0.006145311832427979,
0.006172319889068603
]
},
"throughput": {
"unit": "tokens/s",
"value": 320.94737592660374
},
"energy": {
"unit": "kWh",
"cpu": 7.714006463858646e-08,
"ram": 4.21744284547718e-08,
"gpu": 1.4934355381818132e-07,
"total": 2.6865804691153957e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7444407.576812823
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1050.181632,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 78,
"total": 0.5122047977447508,
"mean": 0.006566728176214757,
"stdev": 0.00016871641130133169,
"p50": 0.006514431953430176,
"p90": 0.00668101749420166,
"p95": 0.006739836931228637,
"p99": 0.007449140267372132,
"values": [
0.007405856132507324,
0.007594048023223877,
0.006651519775390625,
0.0065146880149841305,
0.006596735954284668,
0.006574975967407227,
0.0065073599815368656,
0.006533728122711181,
0.006656159877777099,
0.006490367889404297,
0.006540671825408935,
0.006519711971282959,
0.006526783943176269,
0.006513760089874267,
0.006525248050689697,
0.0065567679405212406,
0.0065140161514282225,
0.006504640102386474,
0.006497983932495117,
0.006513599872589111,
0.00648902416229248,
0.0066202559471130375,
0.006502816200256348,
0.006513055801391602,
0.006529759883880615,
0.0064967360496521,
0.006515103816986084,
0.006518400192260742,
0.006530848026275635,
0.0065259838104248045,
0.006524735927581787,
0.006513440132141114,
0.006514175891876221,
0.006503359794616699,
0.006589439868927002,
0.006533120155334473,
0.006514976024627686,
0.006498784065246582,
0.006498591899871826,
0.006511648178100586,
0.006531551837921142,
0.006505023956298828,
0.006496960163116455,
0.006516736030578613,
0.00650105619430542,
0.006492159843444824,
0.0065112638473510745,
0.006602399826049805,
0.006806911945343018,
0.006695712089538574,
0.006829855918884277,
0.00667471981048584,
0.006719840049743652,
0.006702847957611084,
0.006728000164031982,
0.006512415885925293,
0.006516799926757812,
0.006515711784362793,
0.006507743835449218,
0.00651148796081543,
0.006602367877960205,
0.006497695922851563,
0.006504799842834473,
0.006506207942962646,
0.0065188159942626955,
0.006429183959960938,
0.006486144065856934,
0.0064908480644226075,
0.00652342414855957,
0.006505087852478027,
0.006503263950347901,
0.006491903781890869,
0.006494624137878418,
0.006587007999420166,
0.006496895790100097,
0.006494431972503662,
0.00650054407119751,
0.006509471893310547
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.28283753575857
},
"energy": {
"unit": "kWh",
"cpu": 7.26547937243532e-08,
"ram": 3.941167303104087e-08,
"gpu": 1.4153862333181898e-07,
"total": 2.5360509008721304e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3943138.5216129017
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 78,
"total": 0.48157603359222395,
"mean": 0.0061740517127208214,
"stdev": 0.00014694507505766714,
"p50": 0.006129152059555054,
"p90": 0.0062877120494842535,
"p95": 0.006345550441741943,
"p99": 0.006914928750991822,
"values": [
0.006872064113616944,
0.007058432102203369,
0.006240255832672119,
0.0061296639442443845,
0.006174719810485839,
0.006187007904052734,
0.006123519897460937,
0.006131711959838867,
0.006273024082183838,
0.006109183788299561,
0.006136832237243653,
0.00613478422164917,
0.006132736206054688,
0.006130688190460205,
0.006140927791595459,
0.0061511039733886715,
0.006120448112487793,
0.006121471881866455,
0.006113279819488526,
0.0061265921592712404,
0.006095871925354004,
0.0062156801223754886,
0.006118400096893311,
0.006115327835083008,
0.006148096084594727,
0.006114304065704346,
0.006130688190460205,
0.006135807991027832,
0.00614902400970459,
0.006129695892333985,
0.006137887954711914,
0.0061296639442443845,
0.0061092801094055176,
0.006120448112487793,
0.006205440044403076,
0.006150144100189209,
0.006132736206054688,
0.006108160018920898,
0.006112256050109863,
0.006128640174865723,
0.006136832237243653,
0.006120448112487793,
0.0061123199462890625,
0.006108160018920898,
0.006116352081298828,
0.006109183788299561,
0.0061265921592712404,
0.006217728137969971,
0.006408192157745361,
0.006302720069885254,
0.006436863899230957,
0.006281280040740967,
0.006313983917236328,
0.006310848236083985,
0.006334496021270752,
0.006130688190460205,
0.006113279819488526,
0.0061337599754333495,
0.00612556791305542,
0.0061296639442443845,
0.006220799922943115,
0.006115327835083008,
0.006120480060577392,
0.006113279819488526,
0.0061265921592712404,
0.006050816059112549,
0.006105088233947754,
0.006108160018920898,
0.006128640174865723,
0.006123487949371338,
0.006112256050109863,
0.006110208034515381,
0.006112256050109863,
0.0062044157981872555,
0.006113279819488526,
0.006113279819488526,
0.006105088233947754,
0.006127615928649902
]
},
"throughput": {
"unit": "tokens/s",
"value": 161.9681930975135
},
"energy": null,
"efficiency": null
}
}
}