IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e46caa0 verified
raw
history blame
14.9 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+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": "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": 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": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "61123f7169ae188508e9e8c5ca6b9a54a00965ed",
"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": 901.337088,
"max_global_vram": 1011.736576,
"max_process_vram": 42234.392576,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.39232177734375,
"mean": 7.39232177734375,
"stdev": 0.0,
"p50": 7.39232177734375,
"p90": 7.39232177734375,
"p95": 7.39232177734375,
"p99": 7.39232177734375,
"values": [
7.39232177734375
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.82592,
"max_global_vram": 1107.472384,
"max_process_vram": 257246.572544,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5027758588790895,
"mean": 0.00824222719473917,
"stdev": 0.00050703768068848,
"p50": 0.007996458053588867,
"p90": 0.008607654571533204,
"p95": 0.008959174156188965,
"p99": 0.009978051757812497,
"values": [
0.00890477466583252,
0.009110214233398438,
0.008959174156188965,
0.008607654571533204,
0.008460616111755371,
0.008359816551208496,
0.00835805606842041,
0.00838013744354248,
0.008399017333984375,
0.008397095680236817,
0.0085999755859375,
0.008463815689086914,
0.011279808044433594,
0.008261417388916016,
0.007943177223205566,
0.007911817073822021,
0.007915337085723877,
0.007947018146514892,
0.008019336700439453,
0.007964616775512695,
0.007996458053588867,
0.007924616813659668,
0.007965258121490479,
0.007979817867279053,
0.00793869686126709,
0.008011978149414062,
0.007949576854705811,
0.007962697982788087,
0.00795069694519043,
0.008175017356872559,
0.007945898056030274,
0.00795565700531006,
0.007960137844085693,
0.00796077823638916,
0.007963976860046386,
0.007987338066101074,
0.007949257850646973,
0.007996936798095704,
0.007972618103027344,
0.007984937191009522,
0.008021257400512695,
0.007966697216033936,
0.007999817848205566,
0.007958697795867919,
0.008102856636047363,
0.009031014442443848,
0.008452936172485352,
0.008580295562744141,
0.008912614822387695,
0.008490856170654298,
0.008462696075439454,
0.008513895988464356,
0.008499496459960938,
0.008268457412719726,
0.00793949794769287,
0.007979497909545899,
0.007967176914215088,
0.007976936817169189,
0.007973097801208496,
0.007982216835021972,
0.00792061710357666
]
},
"throughput": {
"unit": "tokens/s",
"value": 242.6528598091248
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.82592,
"max_global_vram": 1107.505152,
"max_process_vram": 275257.397248,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5023547334671018,
"mean": 0.008235323499460689,
"stdev": 0.0002462456532481302,
"p50": 0.008126696586608887,
"p90": 0.008585894584655761,
"p95": 0.00869661521911621,
"p99": 0.008859623146057129,
"values": [
0.008892455101013184,
0.008837735176086426,
0.00861901569366455,
0.00853117561340332,
0.008339495658874511,
0.008326696395874024,
0.008356616020202637,
0.008455816268920899,
0.008391016006469727,
0.00869069480895996,
0.00851901626586914,
0.00838621711730957,
0.008585894584655761,
0.007991816997528076,
0.00799741792678833,
0.008185736656188965,
0.00803501796722412,
0.008107657432556153,
0.00809101676940918,
0.008071818351745606,
0.008024456977844239,
0.008107177734375,
0.008213736534118653,
0.008122857093811036,
0.00801437759399414,
0.008000137329101563,
0.008139177322387696,
0.00796269702911377,
0.00813997745513916,
0.008029096603393555,
0.008011337280273437,
0.008069096565246582,
0.008091816902160645,
0.008126856803894043,
0.008004457473754882,
0.00823405647277832,
0.0080670166015625,
0.008015976905822755,
0.008012936592102051,
0.008115817070007324,
0.008043018341064453,
0.007981576919555665,
0.008090216636657715,
0.008039016723632813,
0.00869661521911621,
0.008516136169433594,
0.008495816230773926,
0.008796295166015626,
0.00833501625061035,
0.008499655723571777,
0.008498695373535156,
0.008379336357116698,
0.008428296089172364,
0.007912937164306641,
0.008183176040649415,
0.0080986967086792,
0.00816941738128662,
0.008060136795043945,
0.008126696586608887,
0.008078696250915528,
0.00800989818572998
]
},
"throughput": {
"unit": "tokens/s",
"value": 121.42813819827327
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 61,
"total": 0.4523790345191955,
"mean": 0.007416049746216322,
"stdev": 0.00025937191883085905,
"p50": 0.007281418800354004,
"p90": 0.007732937812805176,
"p95": 0.00803261661529541,
"p99": 0.008078568649291993,
"values": [
0.008110536575317382,
0.008051337242126465,
0.007728298187255859,
0.007707337856292725,
0.007549259185791015,
0.007487977981567383,
0.007534539222717285,
0.00751213788986206,
0.007547977924346924,
0.007813258171081543,
0.007678537845611572,
0.00757629919052124,
0.007675498008728027,
0.0071822190284729,
0.007168620109558105,
0.007302218914031982,
0.007241099834442139,
0.00730557918548584,
0.0072322998046875,
0.007235340118408203,
0.007187979221343994,
0.007243179798126221,
0.007365259170532226,
0.007243978977203369,
0.0072033400535583495,
0.007185419082641601,
0.007214859962463379,
0.007182378768920899,
0.00724590015411377,
0.007227180004119873,
0.007222699165344238,
0.007198540210723877,
0.007261259078979492,
0.007283498764038086,
0.00719566011428833,
0.007376779079437256,
0.007233098983764648,
0.007235980033874512,
0.007231499195098877,
0.007244939804077148,
0.007211339950561523,
0.00725373888015747,
0.0072927789688110355,
0.007213099002838135,
0.00803261661529541,
0.007864778041839599,
0.007732937812805176,
0.008057256698608399,
0.007650537967681885,
0.007695658206939697,
0.007675658226013184,
0.007605739116668701,
0.007633578777313232,
0.007154540061950683,
0.007351018905639648,
0.007249098777770996,
0.007308138847351074,
0.007203660011291504,
0.007281418800354004,
0.007247818946838379,
0.007239820003509522
]
},
"throughput": {
"unit": "tokens/s",
"value": 134.8426769265135
},
"energy": null,
"efficiency": null
}
}
}