IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f3468fa verified
raw
history blame
14.4 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": {},
"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,
"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": "33013b51e0268a2fd7f07c903783b994ac1e0021",
"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": 899.702784,
"max_global_vram": 1011.744768,
"max_process_vram": 46411.382784,
"max_reserved": 725.614592,
"max_allocated": 666.339328
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.4040009765625,
"mean": 7.4040009765625,
"stdev": 0.0,
"p50": 7.4040009765625,
"p90": 7.4040009765625,
"p95": 7.4040009765625,
"p99": 7.4040009765625,
"values": [
7.4040009765625
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1053.892608,
"max_global_vram": 1106.128896,
"max_process_vram": 302743.375872,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5146121807098388,
"mean": 0.009028283872102435,
"stdev": 0.0001938283883281074,
"p50": 0.008948469161987304,
"p90": 0.009208597183227538,
"p95": 0.009267253112792969,
"p99": 0.009726829986572264,
"values": [
0.009201429367065429,
0.009219348907470703,
0.009163509368896485,
0.009106228828430176,
0.009114869117736816,
0.009393909454345702,
0.009239829063415528,
0.009232789039611817,
0.009376949310302734,
0.009134069442749023,
0.010150547027587891,
0.0091900691986084,
0.008954388618469238,
0.00909263038635254,
0.008925108909606934,
0.008882228851318359,
0.00891486930847168,
0.008936148643493652,
0.008912949562072755,
0.008927028656005859,
0.008909588813781738,
0.008924948692321777,
0.008915988922119141,
0.008935508728027343,
0.00895262908935547,
0.008899028778076173,
0.008915669441223144,
0.008896148681640625,
0.008915349960327149,
0.008911829948425293,
0.008906709671020507,
0.008916149139404297,
0.008920148849487304,
0.008947348594665528,
0.008947989463806153,
0.008930709838867188,
0.008901589393615723,
0.008919029235839844,
0.008943988800048827,
0.00897039031982422,
0.008936308860778808,
0.008966388702392579,
0.00893406867980957,
0.008954710006713867,
0.00901422882080078,
0.009094709396362305,
0.008957590103149414,
0.008982229232788085,
0.009104148864746094,
0.009145269393920899,
0.00913438892364502,
0.009014068603515625,
0.009003668785095216,
0.008948469161987304,
0.008937588691711426,
0.008992308616638184,
0.008942390441894531
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.52604285960007
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1053.892608,
"max_global_vram": 1107.509248,
"max_process_vram": 301427.535872,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.4985259599685668,
"mean": 0.008746069473132752,
"stdev": 0.00014222138255234526,
"p50": 0.008704310417175292,
"p90": 0.008917781448364259,
"p95": 0.008977204704284668,
"p99": 0.00921258403778076,
"values": [
0.008920470237731933,
0.008803189277648926,
0.008839829444885254,
0.00871774959564209,
0.00887982940673828,
0.008969908714294433,
0.008854549407958984,
0.008915988922119141,
0.008825909614562989,
0.00902686882019043,
0.009448948860168458,
0.008674389839172363,
0.008598069190979003,
0.008631029129028321,
0.008667670249938964,
0.00868047046661377,
0.008709429740905762,
0.008766228675842286,
0.00875070858001709,
0.008643670082092285,
0.00862814998626709,
0.008592789649963378,
0.008958389282226562,
0.008642230033874512,
0.008690070152282715,
0.00863422966003418,
0.008634389877319336,
0.008675990104675292,
0.0085667085647583,
0.008664308547973633,
0.00866014862060547,
0.008669429779052735,
0.008657750129699706,
0.008658709526062012,
0.008602709770202636,
0.008872308731079102,
0.008735349655151367,
0.008731670379638672,
0.008666069030761718,
0.008717108726501464,
0.008704310417175292,
0.008652469635009766,
0.008686709403991699,
0.008654708862304688,
0.008673910140991212,
0.008716949462890625,
0.00870254898071289,
0.008738869667053223,
0.009006388664245605,
0.00878911018371582,
0.008735030174255372,
0.008743510246276856,
0.00878494930267334,
0.008691189765930175,
0.008650548934936523,
0.00880206871032715,
0.008809268951416016
]
},
"throughput": {
"unit": "tokens/s",
"value": 114.33707485081413
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.46097224807739257,
"mean": 0.008087232422410396,
"stdev": 0.0001365224569746595,
"p50": 0.008043510437011719,
"p90": 0.008232534027099609,
"p95": 0.00831778163909912,
"p99": 0.008557397232055662,
"values": [
0.00826655101776123,
0.008187350273132324,
0.008202710151672364,
0.008088790893554687,
0.008183989524841308,
0.008315349578857422,
0.008219189643859863,
0.008248950004577637,
0.00817887020111084,
0.008397588729858399,
0.00876078987121582,
0.0080489501953125,
0.007935510158538819,
0.007989429950714111,
0.008007190704345702,
0.008020791053771972,
0.008041589736938477,
0.008030550003051758,
0.008101110458374023,
0.0079843111038208,
0.007980950832366943,
0.007960471153259277,
0.008221590042114257,
0.007993431091308593,
0.00799631118774414,
0.00802047061920166,
0.0079791898727417,
0.008046870231628417,
0.007907670021057129,
0.007997270107269288,
0.007972310066223145,
0.007987831115722656,
0.00800847053527832,
0.007978710174560547,
0.008010390281677247,
0.008209750175476075,
0.008074231147766113,
0.008075989723205567,
0.008040630340576171,
0.008069910049438477,
0.008043991088867188,
0.00801358985900879,
0.008018230438232422,
0.008043510437011719,
0.008009910583496094,
0.008054869651794434,
0.008036789894104003,
0.008123991012573242,
0.008327509880065918,
0.00814879035949707,
0.008034871101379395,
0.00805055046081543,
0.008112790107727051,
0.008031511306762695,
0.008039509773254395,
0.008076789855957032,
0.008063030242919923
]
},
"throughput": {
"unit": "tokens/s",
"value": 123.65169538455659
},
"energy": null,
"efficiency": null
}
}
}