IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ae44f24 verified
raw
history blame
17.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": "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": "57f6495c03ea0fa48e157048c97add150dcd765c",
"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": 1048.84224,
"max_global_vram": 1107.521536,
"max_process_vram": 249092.780032,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 67,
"total": 0.5275467381477357,
"mean": 0.007873831912652769,
"stdev": 0.0010312373936893374,
"p50": 0.007656301975250244,
"p90": 0.008040300750732421,
"p95": 0.008157564163208007,
"p99": 0.011136165752410915,
"values": [
0.01604972267150879,
0.00795966100692749,
0.007945741176605224,
0.007867021083831787,
0.007739501953125,
0.007818221092224121,
0.007824780941009522,
0.0077323012351989745,
0.0077823810577392575,
0.007798701763153076,
0.007748141765594483,
0.00775150203704834,
0.007958860874176025,
0.007873260974884033,
0.007795182228088379,
0.007789421081542969,
0.007769421100616455,
0.007656301975250244,
0.007611341953277588,
0.00793294095993042,
0.007908300876617431,
0.00784062099456787,
0.007799181938171387,
0.008006701469421387,
0.007803821086883545,
0.007603981971740723,
0.007714221000671387,
0.007595181941986084,
0.007651822090148926,
0.007591980934143067,
0.007603981018066406,
0.007625582218170166,
0.007585902214050293,
0.0075601420402526855,
0.007579341888427734,
0.0075937418937683104,
0.0075644621849060055,
0.007614380836486816,
0.007577260971069336,
0.0076782221794128415,
0.008592458724975586,
0.008145581245422364,
0.008162699699401855,
0.008604939460754395,
0.008018220901489258,
0.00813550090789795,
0.008073420524597167,
0.007981740951538085,
0.007594222068786621,
0.007589422225952149,
0.007579981803894043,
0.007584621906280517,
0.007604462146759033,
0.007579501152038574,
0.007575981140136719,
0.00758718204498291,
0.007586542129516601,
0.007585741996765137,
0.0075615811347961425,
0.007574380874633789,
0.0075484619140625,
0.007550382137298584,
0.0075553421974182125,
0.007539341926574707,
0.00758062219619751,
0.007568461894989014,
0.007582702159881592
]
},
"throughput": {
"unit": "tokens/s",
"value": 254.00593030010225
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.84224,
"max_global_vram": 1107.525632,
"max_process_vram": 223892.733952,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 67,
"total": 0.481667643070221,
"mean": 0.007189069299555537,
"stdev": 0.00045463860269698243,
"p50": 0.007065262794494629,
"p90": 0.007435758209228515,
"p95": 0.007824717473983764,
"p99": 0.0087864463710785,
"values": [
0.010366535186767578,
0.007246222019195557,
0.00717214298248291,
0.0072327818870544435,
0.007107983112335205,
0.007050703048706055,
0.007131823062896728,
0.007212623119354248,
0.007065262794494629,
0.0071491022109985355,
0.007194382190704346,
0.007068782806396484,
0.0071175827980041505,
0.0071195030212402345,
0.007059662818908691,
0.0070700631141662595,
0.007037743091583252,
0.00696686315536499,
0.006999503135681153,
0.007401902198791504,
0.007486542224884033,
0.007542061805725098,
0.007270381927490234,
0.007135663032531738,
0.006981903076171875,
0.00716014289855957,
0.006996782779693603,
0.006983182907104492,
0.007125263214111328,
0.007002384185791016,
0.007251022815704345,
0.006972783088684082,
0.0069795031547546385,
0.006968943119049073,
0.006984783172607422,
0.006987022876739502,
0.00701934289932251,
0.00697438383102417,
0.0070889430046081545,
0.007972461223602295,
0.007927821159362794,
0.0073895821571350094,
0.007945741176605224,
0.007584142208099365,
0.007360142230987549,
0.007308621883392334,
0.007285101890563965,
0.007344141960144043,
0.00694670295715332,
0.00699038314819336,
0.006951663017272949,
0.007063343048095703,
0.007185422897338868,
0.006975503921508789,
0.006987664222717285,
0.006973423957824707,
0.006970223903656006,
0.006969744205474853,
0.006979504108428955,
0.006946383953094482,
0.006980463027954102,
0.0069537429809570315,
0.006953423023223877,
0.006979342937469483,
0.007073903083801269,
0.00701838207244873,
0.0069684629440307615
]
},
"throughput": {
"unit": "tokens/s",
"value": 139.10006404609632
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 133,
"total": 0.9950120120048525,
"mean": 0.007481293323344755,
"stdev": 0.0007623111669826,
"p50": 0.007922861099243164,
"p90": 0.008321931648254396,
"p95": 0.008482956314086913,
"p99": 0.009051465950012208,
"values": [
0.009929096221923828,
0.008437259674072266,
0.006837742805480957,
0.008393580436706544,
0.006787663936614991,
0.00828909969329834,
0.0068510231971740726,
0.008158221244812011,
0.006713263988494873,
0.008255660057067871,
0.00667310380935669,
0.008239500045776367,
0.006751503944396973,
0.008151659965515137,
0.006847023963928223,
0.008183340072631835,
0.006692783832550049,
0.00821134090423584,
0.006772943019866943,
0.008160140991210938,
0.006817583084106445,
0.00816382122039795,
0.006686704158782959,
0.00837693977355957,
0.006741744041442871,
0.00828462028503418,
0.006750702857971191,
0.00819982147216797,
0.006676623821258545,
0.008208620071411132,
0.006698063850402832,
0.008177419662475587,
0.00665342378616333,
0.00807534122467041,
0.006604944229125977,
0.008004780769348144,
0.0066367840766906735,
0.008325579643249512,
0.007033422946929931,
0.008307339668273926,
0.007073583126068116,
0.008284460067749024,
0.007171982765197754,
0.00820030117034912,
0.006857422828674317,
0.008454540252685546,
0.006771664142608643,
0.008198220252990723,
0.006618864059448242,
0.00800062084197998,
0.006743504047393799,
0.008165260314941407,
0.006626543998718262,
0.007995981216430664,
0.006617584228515625,
0.008048781394958496,
0.006770864009857178,
0.007976620197296143,
0.006647984981536865,
0.007988780021667481,
0.0068569440841674805,
0.008054381370544433,
0.006593584060668945,
0.00799678087234497,
0.006611343860626221,
0.007958860874176025,
0.006609583854675293,
0.007969261169433594,
0.006621744155883789,
0.007989901065826416,
0.006622543811798096,
0.007960141181945801,
0.006657423973083496,
0.008009260177612304,
0.006608145236968994,
0.007974219799041749,
0.006727503776550293,
0.008070220947265625,
0.007552462100982666,
0.009047657966613769,
0.007515182018280029,
0.008592140197753907,
0.007012942790985108,
0.008569739341735839,
0.0075319819450378415,
0.009053257942199707,
0.0072191829681396485,
0.008414219856262208,
0.006944783210754394,
0.008585100173950195,
0.006894062995910644,
0.008525580406188964,
0.006873262882232666,
0.008428299903869629,
0.006960302829742432,
0.00800926113128662,
0.0065828638076782225,
0.007987340927124024,
0.006620944023132324,
0.007980141162872314,
0.006597263813018799,
0.007969420909881592,
0.006705103874206543,
0.007993741035461426,
0.006814702987670899,
0.007980300903320312,
0.0066201438903808595,
0.007971021175384521,
0.006618864059448242,
0.00798654079437256,
0.006612304210662842,
0.00797774076461792,
0.006604623794555664,
0.007984460830688477,
0.006602863788604737,
0.00795966100692749,
0.006617104053497315,
0.007967340946197509,
0.00658606481552124,
0.007939180850982667,
0.006623983860015869,
0.007940620899200439,
0.006591184139251709,
0.007950860977172852,
0.006600143909454345,
0.007922861099243164,
0.006621103763580322,
0.0079700608253479,
0.006713263988494873,
0.007959500789642334,
0.0066489439010620115,
0.007982059955596924,
0.006612624168395996
]
},
"throughput": {
"unit": "tokens/s",
"value": 133.66672803478818
},
"energy": null,
"efficiency": null
}
}
}