
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
146b21e
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 765.558784, | |
"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.4131181640625, | |
"mean": 7.4131181640625, | |
"stdev": 0.0, | |
"p50": 7.4131181640625, | |
"p90": 7.4131181640625, | |
"p95": 7.4131181640625, | |
"p99": 7.4131181640625, | |
"values": [ | |
7.4131181640625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.788029791664203e-07, | |
"ram": 5.207672702537668e-07, | |
"gpu": 0.0, | |
"total": 1.4995702494201872e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1067.311104, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.49055171251297003, | |
"mean": 0.006909179049478451, | |
"stdev": 0.0003850022049014062, | |
"p50": 0.006825056076049805, | |
"p90": 0.007403391838073731, | |
"p95": 0.007508320093154908, | |
"p99": 0.007807379102706909, | |
"values": [ | |
0.007810336112976074, | |
0.00741267204284668, | |
0.007417088031768799, | |
0.007239327907562256, | |
0.007096992015838623, | |
0.006782015800476074, | |
0.006825056076049805, | |
0.007403391838073731, | |
0.007249536037445069, | |
0.0073614721298217774, | |
0.007247456073760986, | |
0.007394207954406738, | |
0.007263008117675781, | |
0.007288064002990723, | |
0.007143648147583008, | |
0.006796160221099854, | |
0.007301216125488281, | |
0.007110239982604981, | |
0.007531040191650391, | |
0.0073714561462402345, | |
0.007239264011383056, | |
0.00708892822265625, | |
0.007485599994659424, | |
0.007261951923370361, | |
0.0076518402099609376, | |
0.007184319972991944, | |
0.0073151359558105465, | |
0.007806111812591552, | |
0.007127840042114258, | |
0.007152895927429199, | |
0.007003583908081055, | |
0.007013567924499512, | |
0.006944479942321777, | |
0.006891392230987549, | |
0.006661312103271484, | |
0.006774655818939209, | |
0.0066566081047058105, | |
0.006619840145111084, | |
0.006545087814331055, | |
0.006310431957244873, | |
0.006467872142791748, | |
0.006973599910736084, | |
0.007028831958770752, | |
0.007002719879150391, | |
0.006791935920715332, | |
0.0068633599281311035, | |
0.006805247783660888, | |
0.006551231861114502, | |
0.006601535797119141, | |
0.006334784030914306, | |
0.006603360176086426, | |
0.006568575859069824, | |
0.006554880142211914, | |
0.0065903358459472655, | |
0.006621183872222901, | |
0.006557568073272705, | |
0.006587679862976074, | |
0.006279104232788086, | |
0.006243103981018066, | |
0.0065946559906005855, | |
0.0066076798439025876, | |
0.006561600208282471, | |
0.006620863914489746, | |
0.006552927970886231, | |
0.006597856044769287, | |
0.006300288200378418, | |
0.006428160190582275, | |
0.0066059517860412595, | |
0.006646880149841309, | |
0.006572512149810791, | |
0.006656191825866699 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 289.4699913951387 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.89030131990766e-08, | |
"ram": 4.314008737212285e-08, | |
"gpu": 1.5171863989333367e-07, | |
"total": 2.737617404645331e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7305622.752859098 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1082.953728, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.5159459199905395, | |
"mean": 0.007266843943528726, | |
"stdev": 0.0003640046274855646, | |
"p50": 0.0072343039512634275, | |
"p90": 0.0076984639167785645, | |
"p95": 0.007760848045349121, | |
"p99": 0.007920889520645142, | |
"values": [ | |
0.007920063972473145, | |
0.007821375846862794, | |
0.007654784202575683, | |
0.007597951889038086, | |
0.007445888042449951, | |
0.0072343039512634275, | |
0.0076984639167785645, | |
0.007787680149078369, | |
0.007687808036804199, | |
0.007734015941619873, | |
0.007706111907958985, | |
0.007669343948364258, | |
0.007651360034942627, | |
0.007623104095458985, | |
0.007454527854919434, | |
0.007224800109863282, | |
0.007593279838562012, | |
0.0076146240234375, | |
0.007732704162597657, | |
0.007690048217773438, | |
0.0075445761680603025, | |
0.007922815799713134, | |
0.007661664009094239, | |
0.0076921601295471195, | |
0.007608607769012451, | |
0.007595615863800049, | |
0.0074941120147705076, | |
0.0076945281028747555, | |
0.007567327976226806, | |
0.0075289602279663085, | |
0.007344480037689209, | |
0.007332543849945069, | |
0.007201695919036865, | |
0.0072778878211975095, | |
0.007333888053894043, | |
0.0070423040390014645, | |
0.006770912170410156, | |
0.007104640007019043, | |
0.006592512130737305, | |
0.00660316801071167, | |
0.006916575908660889, | |
0.007307040214538574, | |
0.007611936092376709, | |
0.007081376075744629, | |
0.007048927783966065, | |
0.007179423809051514, | |
0.006990911960601806, | |
0.0071534719467163084, | |
0.006957888126373291, | |
0.006900832176208496, | |
0.007017343997955322, | |
0.006937503814697266, | |
0.0069201278686523435, | |
0.006896096229553223, | |
0.006919040203094483, | |
0.006907616138458252, | |
0.006941408157348633, | |
0.006583871841430664, | |
0.006920479774475098, | |
0.006961984157562256, | |
0.00705404806137085, | |
0.006947487831115723, | |
0.006978271961212158, | |
0.006931551933288574, | |
0.006908383846282959, | |
0.006588736057281494, | |
0.006922976016998291, | |
0.007259552001953125, | |
0.006920671939849853, | |
0.006896800041198731, | |
0.006926943778991699 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 137.61132174725185 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.546872152315024e-08, | |
"ram": 4.126081081896767e-08, | |
"gpu": 1.4338621379497967e-07, | |
"total": 2.6011574613709763e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3844442.3870938444 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.48184224033355705, | |
"mean": 0.006786510427233198, | |
"stdev": 0.000307229920914286, | |
"p50": 0.006747136116027832, | |
"p90": 0.007166975975036621, | |
"p95": 0.007225856065750122, | |
"p99": 0.007310438537597656, | |
"values": [ | |
0.007365632057189942, | |
0.007275519847869873, | |
0.0071281280517578125, | |
0.0070563840866088865, | |
0.006933504104614257, | |
0.006724607944488525, | |
0.007150591850280762, | |
0.007259136199951172, | |
0.007162879943847656, | |
0.0071792640686035155, | |
0.00714137601852417, | |
0.00714137601852417, | |
0.0071198720932006835, | |
0.007091231822967529, | |
0.006940639972686767, | |
0.006680575847625733, | |
0.00703385591506958, | |
0.007062528133392334, | |
0.007192575931549072, | |
0.007161856174468994, | |
0.0069928960800170895, | |
0.007286784172058106, | |
0.007122943878173828, | |
0.007171072006225586, | |
0.007068672180175781, | |
0.007015423774719238, | |
0.0069877438545227055, | |
0.007166975975036621, | |
0.007039999961853028, | |
0.006988800048828125, | |
0.006818816184997558, | |
0.006770688056945801, | |
0.0066938881874084475, | |
0.006765567779541016, | |
0.006814720153808594, | |
0.006558720111846924, | |
0.006348800182342529, | |
0.006592512130737305, | |
0.006200319766998291, | |
0.006200319766998291, | |
0.006437888145446777, | |
0.006833151817321777, | |
0.0070522880554199216, | |
0.006652927875518798, | |
0.006615039825439453, | |
0.006726655960083008, | |
0.006543360233306885, | |
0.006747136116027832, | |
0.006545407772064209, | |
0.006500351905822754, | |
0.006601727962493896, | |
0.006510591983795166, | |
0.006515711784362793, | |
0.0064880638122558594, | |
0.006520832061767578, | |
0.006508543968200684, | |
0.006526976108551025, | |
0.006196224212646485, | |
0.006520832061767578, | |
0.006558720111846924, | |
0.006638591766357422, | |
0.0065443840026855465, | |
0.006550528049468994, | |
0.006529056072235108, | |
0.0065075201988220215, | |
0.006179840087890625, | |
0.006515711784362793, | |
0.006854656219482422, | |
0.0065177597999572755, | |
0.006493184089660644, | |
0.006501376152038574 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 147.35113291613865 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |