IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
295e7b3
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+rocm5.7", | |
"_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": "6", | |
"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": false, | |
"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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082014.482432, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1104.560128, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 4482.093056, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.07953050994873047 | |
], | |
"count": 1, | |
"total": 0.07953050994873047, | |
"mean": 0.07953050994873047, | |
"p50": 0.07953050994873047, | |
"p90": 0.07953050994873047, | |
"p95": 0.07953050994873047, | |
"p99": 0.07953050994873047, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1270.976512, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 300807.217152, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.235456 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.008880812644958496, | |
0.008895853042602538, | |
0.008894252777099609, | |
0.008879053115844726, | |
0.008871533393859864, | |
0.008883052825927735, | |
0.008875693321228027, | |
0.008898411750793457, | |
0.008924331665039063, | |
0.008894251823425294, | |
0.008867373466491699, | |
0.008900012969970703, | |
0.008882412910461426, | |
0.008973452568054199, | |
0.008877133369445801, | |
0.00895201301574707, | |
0.008878412246704102, | |
0.008867212295532226, | |
0.008918572425842285, | |
0.01064593505859375, | |
0.00891521167755127, | |
0.008934573173522949, | |
0.008906892776489258, | |
0.009013772010803223, | |
0.009027213096618652, | |
0.009002732276916505, | |
0.009058093070983887, | |
0.009010413169860839, | |
0.00907313346862793, | |
0.009069132804870605, | |
0.009026092529296875, | |
0.009085291862487794, | |
0.009011053085327148, | |
0.010193134307861328, | |
0.009228333473205567, | |
0.008906091690063477, | |
0.008832012176513672, | |
0.008820813179016113, | |
0.008836172103881835, | |
0.008905291557312012, | |
0.008934732437133788, | |
0.008937611579895019, | |
0.008941132545471192, | |
0.008943213462829589, | |
0.00892977237701416, | |
0.009124173164367675, | |
0.009145612716674805, | |
0.00911729335784912, | |
0.009080331802368164, | |
0.009092493057250977, | |
0.009086413383483887, | |
0.00909825325012207, | |
0.00910097312927246, | |
0.009148332595825195, | |
0.009101452827453614, | |
0.009124492645263672, | |
0.009128493309020996, | |
0.008966732025146484 | |
], | |
"count": 58, | |
"total": 0.5235167398452759, | |
"mean": 0.009026150686987516, | |
"p50": 0.00894217300415039, | |
"p90": 0.00912569284439087, | |
"p95": 0.00916033272743225, | |
"p99": 0.01038783863067627, | |
"stdev": 0.0002844547961190293, | |
"stdev_": 3.1514518866731476 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 221.57839696641508 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1270.976512, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 306717.868032, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.257984 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007993131160736085, | |
0.007986731052398681, | |
0.008149130821228028, | |
0.008021130561828613, | |
0.007998731136322022, | |
0.007925130844116212, | |
0.007942730903625489, | |
0.007968011856079102, | |
0.007950411796569825, | |
0.007963691234588623, | |
0.007986731052398681, | |
0.007963370800018311, | |
0.00796065092086792, | |
0.007962891101837158, | |
0.007972811222076416, | |
0.007985130786895752, | |
0.007998571872711182, | |
0.008029932022094727, | |
0.00891665267944336, | |
0.008314412117004394, | |
0.008236811637878419, | |
0.008150731086730957, | |
0.008274091720581054, | |
0.008323692321777343, | |
0.008280331611633301, | |
0.008305131912231445, | |
0.008325132369995117, | |
0.008338730812072754, | |
0.008483052253723145, | |
0.008329292297363282, | |
0.008343050956726075, | |
0.008352811813354493, | |
0.00909297275543213, | |
0.008457612037658692, | |
0.00795889186859131, | |
0.007931530952453613, | |
0.007897931098937988, | |
0.007883211135864258, | |
0.007994731903076173, | |
0.00803249168395996, | |
0.007991851806640625, | |
0.008180011749267578, | |
0.007999051094055175, | |
0.007988171100616455, | |
0.007996811866760253, | |
0.008497132301330566, | |
0.00850129222869873, | |
0.008414892196655274, | |
0.00839281177520752, | |
0.008384172439575194, | |
0.008371051788330077, | |
0.008343530654907226, | |
0.008366412162780761, | |
0.008384652137756347, | |
0.00849793243408203, | |
0.008378730773925782, | |
0.008454252243041992, | |
0.007983692169189453 | |
], | |
"count": 58, | |
"total": 0.4751086730957032, | |
"mean": 0.00819152884647764, | |
"p50": 0.008149930953979492, | |
"p90": 0.008465244102478028, | |
"p95": 0.008498436403274535, | |
"p99": 0.008992470312118531, | |
"stdev": 0.00025139753788260564, | |
"stdev_": 3.068994110796627 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.0773336383965 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.007576971054077148, | |
0.007538249969482422, | |
0.007719050884246826, | |
0.007573770999908447, | |
0.007580010890960693, | |
0.007504970073699951, | |
0.00751600980758667, | |
0.007548330783843994, | |
0.007530890941619873, | |
0.0075265707969665524, | |
0.0075724911689758305, | |
0.007547370910644531, | |
0.0075208101272583, | |
0.007528969764709473, | |
0.007541289806365967, | |
0.007569290161132812, | |
0.007577610969543457, | |
0.007603530883789063, | |
0.007563691139221191, | |
0.0077816109657287596, | |
0.007719211101531983, | |
0.007658411026000977, | |
0.00777009105682373, | |
0.00779745101928711, | |
0.007761291027069092, | |
0.007796492099761963, | |
0.007791050910949707, | |
0.007832651138305663, | |
0.007976491928100586, | |
0.00781489086151123, | |
0.007811370849609375, | |
0.007839691162109376, | |
0.007884490966796874, | |
0.007978891849517823, | |
0.007541131019592285, | |
0.007504651069641113, | |
0.007484490871429443, | |
0.007473130226135254, | |
0.007570731163024902, | |
0.0075939311981201175, | |
0.007547851085662842, | |
0.007749131202697754, | |
0.0075769701004028325, | |
0.007579050064086914, | |
0.007556011199951172, | |
0.007928811073303222, | |
0.007926570892333984, | |
0.007885770797729492, | |
0.007865931987762451, | |
0.007827850818634033, | |
0.007841771125793456, | |
0.00781489086151123, | |
0.007846251010894775, | |
0.007848011016845704, | |
0.007975050926208496, | |
0.007863530158996582, | |
0.007917130947113037, | |
0.007448010921478272 | |
], | |
"count": 58, | |
"total": 0.446020630836487, | |
"mean": 0.007690010876491153, | |
"p50": 0.00763097095489502, | |
"p90": 0.007895178842544556, | |
"p95": 0.007935747051239013, | |
"p99": 0.007977523894309998, | |
"stdev": 0.0001574792607590027, | |
"stdev_": 2.0478418468877164 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 130.03882778073344 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |