IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
60ff718 verified
raw
history blame
14.5 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": "a7a97473b632c48148612a312a4eb89b241c78ba",
"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.054464,
"max_global_vram": 3298.373632,
"max_process_vram": 47743.369216,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.36406396484375,
"mean": 7.36406396484375,
"stdev": 0.0,
"p50": 7.36406396484375,
"p90": 7.36406396484375,
"p95": 7.36406396484375,
"p99": 7.36406396484375,
"values": [
7.36406396484375
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.60064,
"max_global_vram": 3394.10944,
"max_process_vram": 284475.8016,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.5140519723892212,
"mean": 0.00886296504119347,
"stdev": 0.00044650489460963173,
"p50": 0.008827340126037598,
"p90": 0.009009419822692872,
"p95": 0.009066355848312377,
"p99": 0.010389710035324096,
"values": [
0.008668940544128418,
0.008635979652404785,
0.008691980361938476,
0.008637741088867187,
0.008638541221618652,
0.008707340240478516,
0.008683341026306152,
0.008653900146484376,
0.008681420326232911,
0.008711820602416992,
0.008632460594177245,
0.00865630054473877,
0.008595181465148925,
0.008888299942016602,
0.00884589958190918,
0.008717101097106933,
0.008692939758300782,
0.008662381172180177,
0.008595661163330078,
0.008715821266174316,
0.008660140037536622,
0.008680621147155761,
0.01206605339050293,
0.009125100135803223,
0.008923980712890625,
0.008871820449829102,
0.008821579933166504,
0.00882110023498535,
0.008802539825439453,
0.008817099571228027,
0.008776459693908691,
0.008831661224365234,
0.00881566047668457,
0.008864139556884766,
0.008851340293884277,
0.008835980415344238,
0.008423980712890624,
0.008834540367126465,
0.008855660438537598,
0.008858381271362304,
0.00884749984741211,
0.00886653995513916,
0.008807660102844238,
0.008826539993286133,
0.008828140258789063,
0.008984939575195312,
0.009031180381774903,
0.008924619674682617,
0.008889100074768067,
0.00888270092010498,
0.008887499809265136,
0.008904140472412109,
0.008964779853820801,
0.008987979888916016,
0.009085260391235351,
0.00906301975250244,
0.009008939743041993,
0.009010540008544923
]
},
"throughput": {
"unit": "tokens/s",
"value": 225.65811674810396
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.60064,
"max_global_vram": 3394.142208,
"max_process_vram": 326632.767488,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.48732850742340095,
"mean": 0.008402215645231048,
"stdev": 0.00034892273791844373,
"p50": 0.008581740856170654,
"p90": 0.008734060668945312,
"p95": 0.008782571458816528,
"p99": 0.009024779644012451,
"values": [
0.007990221977233886,
0.007951182842254639,
0.00801742172241211,
0.007924622058868408,
0.007978541851043701,
0.008024301528930664,
0.008002222061157227,
0.007999503135681152,
0.00802494239807129,
0.008139981269836425,
0.007934542179107665,
0.007896302223205566,
0.00793934202194214,
0.008052142143249511,
0.008066222190856934,
0.007935021877288818,
0.007950861930847168,
0.0079305419921875,
0.007963342189788818,
0.007967021942138672,
0.007945422172546387,
0.007903501987457276,
0.00928925895690918,
0.00864078140258789,
0.008592140197753907,
0.008537581443786621,
0.008592620849609375,
0.008601740837097168,
0.00858574104309082,
0.00858750057220459,
0.008541900634765625,
0.00862973976135254,
0.008598541259765625,
0.00857214069366455,
0.00854270076751709,
0.008680781364440919,
0.008466700553894042,
0.008632301330566406,
0.008667981147766114,
0.008711179733276368,
0.008694061279296875,
0.008589580535888671,
0.008565740585327148,
0.00864078140258789,
0.00863838005065918,
0.008577740669250489,
0.008644620895385742,
0.008629581451416016,
0.00877518081665039,
0.00858926010131836,
0.008690381050109863,
0.008669421195983887,
0.008731660842895507,
0.00872797966003418,
0.008739660263061524,
0.008813578605651856,
0.008777099609375,
0.008825260162353516
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.01622646016978
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 58,
"total": 0.4549815478324889,
"mean": 0.007844509445387742,
"stdev": 0.00024405512931264804,
"p50": 0.007940542936325073,
"p90": 0.008073902225494384,
"p95": 0.00811303791999817,
"p99": 0.008340062646865844,
"values": [
0.007558863162994384,
0.007540624141693115,
0.007602222919464111,
0.00751598310470581,
0.007562063217163086,
0.007614223003387452,
0.007598062992095947,
0.007589263916015625,
0.007604302883148194,
0.007727342128753662,
0.007519982814788819,
0.007491023063659668,
0.007520943164825439,
0.007605903148651123,
0.007611982822418213,
0.007508142948150635,
0.007531982898712158,
0.007509743213653565,
0.007528462886810303,
0.007546223163604736,
0.0075255827903747555,
0.007483343124389649,
0.008582381248474122,
0.008004462242126465,
0.008000942230224609,
0.007938862800598145,
0.007942223072052002,
0.007983502864837646,
0.007985743045806884,
0.007935663223266602,
0.007927823066711425,
0.007992301940917969,
0.00798430299758911,
0.007921422958374023,
0.00789822292327881,
0.008055341720581055,
0.007826702117919922,
0.007998221874237061,
0.008032941818237304,
0.0080734224319458,
0.008033581733703613,
0.00795294189453125,
0.00793438196182251,
0.007984141826629638,
0.008001102447509765,
0.007950383186340332,
0.007989582061767577,
0.00800014305114746,
0.008109581947326661,
0.00795566177368164,
0.008009262084960937,
0.008072781562805175,
0.008075021743774414,
0.008069902420043946,
0.008069421768188477,
0.00815726089477539,
0.008103021621704102,
0.00813262176513672
]
},
"throughput": {
"unit": "tokens/s",
"value": 127.47769723038068
},
"energy": null,
"efficiency": null
}
}
}