IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
79f56a5 verified
raw
history blame
13.7 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": "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": 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.0",
"optimum_benchmark_commit": "748abd0c7ac21cfb1798768cad39007b466ce8e8",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1049.772032,
"max_global_vram": 1107.529728,
"max_process_vram": 264602.759168,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.5063605384826659,
"mean": 0.00858238200818078,
"stdev": 0.00047495156118434003,
"p50": 0.008555323600769042,
"p90": 0.00897138557434082,
"p95": 0.009062200736999511,
"p99": 0.01020143186569214,
"values": [
0.010618194580078125,
0.009044120788574219,
0.008731162071228028,
0.008641082763671875,
0.008458683967590332,
0.008129244804382324,
0.008517244338989257,
0.009224920272827149,
0.008042365074157716,
0.008409083366394043,
0.009039641380310059,
0.009899638175964355,
0.008967321395874023,
0.008987642288208008,
0.00880316162109375,
0.008816282272338867,
0.008796122550964356,
0.00881020164489746,
0.00878940200805664,
0.00880412197113037,
0.008786521911621093,
0.008796762466430665,
0.00877580165863037,
0.008764122009277344,
0.008815961837768555,
0.00882716178894043,
0.008852280616760255,
0.008491483688354493,
0.008816441535949708,
0.00883484172821045,
0.008520763397216797,
0.008427642822265624,
0.008284443855285645,
0.008274524688720704,
0.00819388484954834,
0.007848926067352295,
0.008341564178466796,
0.008447644233703613,
0.008241563796997071,
0.008079645156860351,
0.008484124183654785,
0.008788922309875487,
0.008292604446411132,
0.00887724208831787,
0.008841562271118163,
0.00847788429260254,
0.008555323600769042,
0.008425402641296386,
0.008613082885742187,
0.008894362449645997,
0.00822076416015625,
0.008428443908691406,
0.007897726058959961,
0.008020285606384278,
0.008032605171203614,
0.007881566047668457,
0.007840126037597657,
0.007850525856018066,
0.007986364841461181
]
},
"throughput": {
"unit": "tokens/s",
"value": 233.03553699818855
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1049.772032,
"max_global_vram": 1107.595264,
"max_process_vram": 250064.11776,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.4954221873283386,
"mean": 0.008396986225904044,
"stdev": 0.00033830039712723153,
"p50": 0.008409724235534669,
"p90": 0.008743354415893554,
"p95": 0.008818345832824705,
"p99": 0.009245937652587891,
"values": [
0.009427639007568359,
0.008575162887573241,
0.00871772289276123,
0.008258524894714356,
0.008383323669433593,
0.008385563850402832,
0.00894636058807373,
0.008209404945373535,
0.00817148494720459,
0.008241085052490235,
0.009114360809326172,
0.00880412197113037,
0.008709403038024902,
0.00852236270904541,
0.008555803298950195,
0.008657882690429688,
0.008636761665344238,
0.008591643333435059,
0.00870908260345459,
0.008739002227783203,
0.008520122528076171,
0.008615642547607423,
0.008563962936401368,
0.008512763977050782,
0.008515804290771485,
0.008788922309875487,
0.00876076316833496,
0.008499802589416504,
0.008673883438110352,
0.008719162940979004,
0.008396763801574707,
0.008427643775939941,
0.008042045593261719,
0.008242203712463378,
0.007825406074523925,
0.007829246044158935,
0.008279005050659179,
0.008183485031127929,
0.008307804107666015,
0.007830687046051025,
0.008590522766113282,
0.00811404514312744,
0.008064764976501465,
0.0086134033203125,
0.008302683830261231,
0.008203165054321289,
0.008277243614196777,
0.008495003700256347,
0.008616602897644043,
0.008409724235534669,
0.008294525146484375,
0.007985245227813721,
0.007895805835723878,
0.00786444616317749,
0.007861085891723633,
0.008066204071044922,
0.008162044525146484,
0.007867486000061034,
0.00784636688232422
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.09034659543426
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 58,
"total": 0.9843949584960937,
"mean": 0.016972326870622306,
"stdev": 0.0006740743144609666,
"p50": 0.017019847869873046,
"p90": 0.01762154064178467,
"p95": 0.017661795902252198,
"p99": 0.018432882194519044,
"values": [
0.01771048355102539,
0.017485843658447266,
0.016989688873291015,
0.016861207962036134,
0.01656024932861328,
0.017449363708496094,
0.017560724258422852,
0.016222810745239256,
0.016696088790893553,
0.01764808464050293,
0.019254316329956056,
0.017813203811645507,
0.017651763916015625,
0.01736120414733887,
0.017462963104248046,
0.017425363540649413,
0.01755064392089844,
0.017433683395385743,
0.017559764862060546,
0.01752728462219238,
0.017430164337158202,
0.017413204193115234,
0.017277364730834962,
0.01734360694885254,
0.01757736396789551,
0.017653203964233397,
0.017050006866455077,
0.017555444717407227,
0.017610164642333986,
0.016968408584594728,
0.01686904716491699,
0.01645256805419922,
0.016453529357910158,
0.01609144973754883,
0.01570361328125,
0.016625848770141602,
0.016720888137817382,
0.01651576805114746,
0.016072090148925782,
0.017199766159057616,
0.016920568466186524,
0.016444889068603516,
0.017446964263916016,
0.017093526840209962,
0.01679448890686035,
0.016856727600097657,
0.016920568466186524,
0.0172695255279541,
0.017404403686523438,
0.016622488021850585,
0.016381210327148437,
0.015896410942077638,
0.015830331802368165,
0.01600889015197754,
0.01596777057647705,
0.015978811264038086,
0.0158426513671875,
0.015906492233276368
]
},
"throughput": {
"unit": "tokens/s",
"value": 58.919440311447055
},
"energy": null,
"efficiency": null
}
}
}