
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
50ae19d
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+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.29792, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.215-203.850.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.41.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1079.066624, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.0096 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.4970152645111083, | |
"mean": 0.008875272580555506, | |
"stdev": 0.0007367715199718251, | |
"p50": 0.008922560214996338, | |
"p90": 0.009299776077270509, | |
"p95": 0.009614247798919678, | |
"p99": 0.011390137672424326, | |
"values": [ | |
0.013154080390930176, | |
0.009946911811828614, | |
0.009781023979187013, | |
0.009558655738830567, | |
0.009340160369873047, | |
0.009315232276916503, | |
0.00916220760345459, | |
0.009256575584411621, | |
0.009159520149230957, | |
0.009179583549499512, | |
0.009010175704956054, | |
0.009118783950805663, | |
0.009026623725891114, | |
0.009284319877624512, | |
0.009257375717163086, | |
0.009190176010131836, | |
0.008934016227722169, | |
0.009175871849060059, | |
0.00909654426574707, | |
0.009027680397033692, | |
0.009074208259582519, | |
0.009023360252380371, | |
0.009175423622131348, | |
0.009231712341308594, | |
0.008823776245117187, | |
0.009041952133178712, | |
0.008401599884033203, | |
0.009137120246887207, | |
0.009265472412109375, | |
0.009018431663513184, | |
0.008879679679870606, | |
0.008911104202270507, | |
0.008679519653320313, | |
0.008689663887023925, | |
0.008655232429504394, | |
0.008327520370483399, | |
0.00831436824798584, | |
0.008282208442687988, | |
0.00829856014251709, | |
0.00830297565460205, | |
0.008303135871887206, | |
0.008278847694396973, | |
0.008285375595092773, | |
0.008262880325317383, | |
0.00826416015625, | |
0.00826905632019043, | |
0.008284319877624511, | |
0.008280832290649414, | |
0.00827347183227539, | |
0.008306719779968262, | |
0.008279168128967285, | |
0.008270624160766602, | |
0.008293215751647948, | |
0.00828172779083252, | |
0.008287167549133301, | |
0.008285152435302734 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 225.34519158112656 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.025733363125973e-07, | |
"ram": 5.585369192196029e-08, | |
"gpu": 1.9142496156896661e-07, | |
"total": 3.4985198980352424e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5716703.229623457 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1079.066624, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.46016 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5073699531555175, | |
"mean": 0.009060177734919957, | |
"stdev": 0.0005824231882526098, | |
"p50": 0.009046880245208739, | |
"p90": 0.009621551990509033, | |
"p95": 0.009868720293045044, | |
"p99": 0.010767433547973637, | |
"values": [ | |
0.01148646354675293, | |
0.010179136276245117, | |
0.00993673610687256, | |
0.009741663932800293, | |
0.009644096374511718, | |
0.009846048355102539, | |
0.009333056449890137, | |
0.00945206356048584, | |
0.009358847618103027, | |
0.009425888061523438, | |
0.009342687606811523, | |
0.009338208198547363, | |
0.009453824043273926, | |
0.009456192016601563, | |
0.009397088050842285, | |
0.009389887809753418, | |
0.009347583770751953, | |
0.009414719581604005, | |
0.009327391624450683, | |
0.009245920181274413, | |
0.009431520462036132, | |
0.009425312042236329, | |
0.00932140827178955, | |
0.009212896347045899, | |
0.00931222438812256, | |
0.008645215988159179, | |
0.008996000289916992, | |
0.009497504234313964, | |
0.009599007606506348, | |
0.008957728385925293, | |
0.009097760200500488, | |
0.008912351608276367, | |
0.008905599594116211, | |
0.008903648376464844, | |
0.008882880210876465, | |
0.00851625633239746, | |
0.008512960433959962, | |
0.00855843162536621, | |
0.008452672004699707, | |
0.008472831726074218, | |
0.008435615539550781, | |
0.00848265552520752, | |
0.008461888313293458, | |
0.008478015899658202, | |
0.008465920448303223, | |
0.008501983642578126, | |
0.008496479988098144, | |
0.008473312377929688, | |
0.008474783897399902, | |
0.008446656227111816, | |
0.008573247909545898, | |
0.008516960144042969, | |
0.008457152366638184, | |
0.008458527565002441, | |
0.008454079627990723, | |
0.008460960388183593 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 110.3731106891839 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.576673194823133e-08, | |
"ram": 5.2581090683439666e-08, | |
"gpu": 1.749225537310319e-07, | |
"total": 3.232703763627028e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3093385.8253625454 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.9816115188598633, | |
"mean": 0.01784748216108842, | |
"stdev": 0.0009441486175049097, | |
"p50": 0.017978368759155275, | |
"p90": 0.018855731582641602, | |
"p95": 0.019228057289123537, | |
"p99": 0.019966301040649417, | |
"values": [ | |
0.020175872802734376, | |
0.019787776947021486, | |
0.019319807052612305, | |
0.01902079963684082, | |
0.019188735961914064, | |
0.018566144943237304, | |
0.018735103607177735, | |
0.018534400939941405, | |
0.018669567108154296, | |
0.018332672119140626, | |
0.018522111892700196, | |
0.018497535705566406, | |
0.018817024230957033, | |
0.01867366409301758, | |
0.018637823104858398, | |
0.018313215255737304, | |
0.018589696884155273, | |
0.01846681594848633, | |
0.018323455810546875, | |
0.01854876708984375, | |
0.01849648094177246, | |
0.018507776260375978, | |
0.018505727767944336, | |
0.018127872467041017, | |
0.01785958480834961, | |
0.017354751586914064, | |
0.01864396858215332, | |
0.018881536483764647, | |
0.018103296279907227, | |
0.017978368759155275, | |
0.017904640197753906, | |
0.017617919921875, | |
0.017624063491821287, | |
0.017558528900146485, | |
0.016887807846069337, | |
0.01683046340942383, | |
0.01688479995727539, | |
0.016781248092651368, | |
0.01679974365234375, | |
0.01676288032531738, | |
0.016761856079101564, | |
0.01678950309753418, | |
0.01676697540283203, | |
0.016763935089111327, | |
0.016782304763793946, | |
0.01679974365234375, | |
0.01680179214477539, | |
0.016777215957641603, | |
0.016776191711425782, | |
0.016870399475097657, | |
0.01678950309753418, | |
0.01680793571472168, | |
0.016759807586669923, | |
0.016773120880126953, | |
0.0167587833404541 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.030312341772664 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |