IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5a27fb2 verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+cu124",
"_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": true,
"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 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 791.146496,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.40406787109375,
"mean": 7.40406787109375,
"stdev": 0.0,
"p50": 7.40406787109375,
"p90": 7.40406787109375,
"p95": 7.40406787109375,
"p99": 7.40406787109375,
"values": [
7.40406787109375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.876170423613219e-07,
"ram": 5.254440853459829e-07,
"gpu": 1.6105568439999263e-06,
"total": 3.123617971707231e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1221.890048,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.49105382585525503,
"mean": 0.0068201920257674326,
"stdev": 0.0003374801960039315,
"p50": 0.0069478399753570555,
"p90": 0.007172521638870239,
"p95": 0.007212335968017578,
"p99": 0.007325936741828919,
"values": [
0.007418816089630127,
0.007220960140228271,
0.007108543872833252,
0.007014880180358887,
0.007288000106811523,
0.006919583797454834,
0.007046016216278076,
0.007170015811920166,
0.007156544208526612,
0.006985023975372314,
0.007093535900115967,
0.00715721607208252,
0.007172800064086914,
0.007027328014373779,
0.007127711772918701,
0.007101247787475586,
0.006924831867218017,
0.006972159862518311,
0.006973472118377686,
0.007026976108551026,
0.007203807830810547,
0.007147776126861572,
0.007071296215057373,
0.00711568021774292,
0.0070260481834411624,
0.007131455898284912,
0.006879680156707764,
0.00699235200881958,
0.0072052798271179195,
0.006946112155914307,
0.007003392219543457,
0.006949567794799804,
0.007023263931274414,
0.007189727783203125,
0.0071330881118774414,
0.007055232048034668,
0.007095232009887696,
0.006943424224853515,
0.006846528053283691,
0.006697728157043457,
0.007010176181793213,
0.006733535766601562,
0.0067630081176757815,
0.006981279850006104,
0.00694320011138916,
0.00727347183227539,
0.00675820779800415,
0.006781888008117676,
0.006788512229919433,
0.006589087963104248,
0.006537343978881836,
0.006449984073638916,
0.006521664142608643,
0.0064362878799438476,
0.0063333439826965335,
0.00631763219833374,
0.006352575778961181,
0.006351840019226074,
0.006299007892608643,
0.00632147216796875,
0.006353216171264648,
0.006373568058013916,
0.0063129281997680664,
0.006316544055938721,
0.006362304210662841,
0.006368896007537842,
0.006328320026397705,
0.006316256046295166,
0.006312128067016602,
0.0063155522346496585,
0.006276671886444092,
0.006311583995819092
]
},
"throughput": {
"unit": "tokens/s",
"value": 293.24687522635446
},
"energy": {
"unit": "kWh",
"cpu": 7.947073518363137e-08,
"ram": 4.344276194959963e-08,
"gpu": 1.527928142550342e-07,
"total": 2.7570631138826517e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7254095.816412006
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1240.236032,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5167295026779175,
"mean": 0.00717679864830441,
"stdev": 0.0003682006698355517,
"p50": 0.007298239946365356,
"p90": 0.007530319786071778,
"p95": 0.00761276159286499,
"p99": 0.007866944594383245,
"values": [
0.007677279949188233,
0.00749616003036499,
0.007452415943145752,
0.007485343933105469,
0.007626368045806885,
0.007298336029052734,
0.007399295806884766,
0.007500959873199463,
0.00833129596710205,
0.007415359973907471,
0.007542687892913819,
0.007445504188537597,
0.00744649600982666,
0.007425951957702637,
0.007433568000793457,
0.007269951820373535,
0.007429408073425293,
0.007413887977600097,
0.007400447845458984,
0.007535200119018554,
0.007518943786621094,
0.007606368064880371,
0.007327104091644287,
0.007459360122680664,
0.007469920158386231,
0.007327455997467041,
0.007368031978607178,
0.007468480110168457,
0.007298143863677978,
0.007371295928955078,
0.0073901119232177735,
0.007336863994598389,
0.0074711360931396485,
0.007531583786010742,
0.007620575904846191,
0.007446464061737061,
0.007285855770111084,
0.007348639965057373,
0.007259615898132324,
0.007133632183074951,
0.007182623863220215,
0.006951903820037842,
0.007243264198303223,
0.007230559825897217,
0.0074963197708129885,
0.007127808094024658,
0.007080031871795654,
0.007170400142669678,
0.00699567985534668,
0.00681712007522583,
0.0068223681449890135,
0.006848127841949463,
0.006701312065124512,
0.006651711940765381,
0.0066641921997070315,
0.006687039852142334,
0.006631840229034424,
0.006661087989807129,
0.006685279846191407,
0.0066908798217773435,
0.006744768142700195,
0.006668032169342041,
0.006665952205657959,
0.006651264190673828,
0.006635263919830322,
0.006906976222991943,
0.006684671878814697,
0.006666687965393067,
0.006646815776824951,
0.006701663970947265,
0.006688511848449707,
0.006663839817047119
]
},
"throughput": {
"unit": "tokens/s",
"value": 139.33789270181907
},
"energy": {
"unit": "kWh",
"cpu": 7.565138947366326e-08,
"ram": 4.137088859593221e-08,
"gpu": 1.4366485436834399e-07,
"total": 2.6068713243793955e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3836015.957703877
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.48242070341110216,
"mean": 0.006700287547376421,
"stdev": 0.000311310714770207,
"p50": 0.006788095951080322,
"p90": 0.006986035013198852,
"p95": 0.007089510369300843,
"p99": 0.007324670987129215,
"values": [
0.007137279987335205,
0.006970367908477783,
0.00693555212020874,
0.006909952163696289,
0.007117824077606201,
0.00679423999786377,
0.0068853759765625,
0.006970367908477783,
0.007783455848693848,
0.006859776020050049,
0.007004159927368164,
0.006916096210479736,
0.006906879901885986,
0.006892543792724609,
0.006909952163696289,
0.006754303932189941,
0.006922239780426025,
0.006850560188293457,
0.006870016098022461,
0.007002111911773682,
0.006987775802612305,
0.007078911781311035,
0.006812672138214112,
0.006905856132507324,
0.00694271993637085,
0.0068321280479431154,
0.006849535942077637,
0.00692633581161499,
0.006770688056945801,
0.006849535942077637,
0.006870016098022461,
0.006825984001159668,
0.0069335360527038575,
0.006970367908477783,
0.007102464199066162,
0.006919167995452881,
0.006762495994567871,
0.006850560188293457,
0.006770688056945801,
0.006627327919006347,
0.006747136116027832,
0.006538176059722901,
0.006756351947784424,
0.006781951904296875,
0.006952960014343262,
0.0066744318008422855,
0.006633471965789795,
0.006717440128326416,
0.0065812478065490725,
0.0064143362045288085,
0.0063805441856384275,
0.006451200008392334,
0.006311935901641846,
0.006264768123626709,
0.0062679038047790524,
0.006288383960723877,
0.006244351863861084,
0.0062638077735900875,
0.0062975997924804685,
0.006301695823669433,
0.006358016014099121,
0.006260735988616943,
0.0062679038047790524,
0.006261760234832763,
0.006247424125671387,
0.006511616230010986,
0.00628223991394043,
0.006266880035400391,
0.006245408058166504,
0.006308864116668702,
0.006292479991912842,
0.00626585578918457
]
},
"throughput": {
"unit": "tokens/s",
"value": 149.24732601835308
},
"energy": null,
"efficiency": null
}
}
}