IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7191c8f verified
raw
history blame
16.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16
},
"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.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.227-219.884.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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 820.023296,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.08057241821289063
],
"count": 1,
"total": 0.08057241821289063,
"mean": 0.08057241821289063,
"p50": 0.08057241821289063,
"p90": 0.08057241821289063,
"p95": 0.08057241821289063,
"p99": 0.08057241821289063,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1271.857152,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394112
},
"latency": {
"unit": "s",
"values": [
0.007254784107208252,
0.007166304111480713,
0.007696608066558838,
0.007599487781524659,
0.007474912166595459,
0.007653728008270264,
0.007188032150268555,
0.007287871837615967,
0.007186048030853272,
0.007149216175079346,
0.0071389441490173336,
0.007209727764129639,
0.007270271778106689,
0.007109216213226318,
0.007147295951843262,
0.007183968067169189,
0.007244448184967041,
0.007181856155395508,
0.007249216079711914,
0.007565440177917481,
0.007263455867767334,
0.007193600177764893,
0.007317088127136231,
0.007165056228637695,
0.007136064052581787,
0.007228064060211182,
0.007218815803527832,
0.007142943859100342,
0.00757587194442749,
0.007909664154052734,
0.007671135902404785,
0.007786240100860596,
0.007168032169342041,
0.0071008319854736325,
0.007165023803710938,
0.007044832229614258,
0.007077280044555664,
0.007095903873443604,
0.007288671970367431,
0.007274847984313965,
0.007077248096466065,
0.007067008018493652,
0.007087840080261231,
0.0073229122161865235,
0.00726854419708252,
0.0073740482330322266,
0.007413055896759033,
0.00726416015625,
0.0074650559425354,
0.007387968063354492,
0.007237215995788574,
0.007384160041809082,
0.0073372478485107424,
0.007459136009216308,
0.007320735931396484,
0.007072159767150879,
0.007052159786224365,
0.007131135940551757,
0.007057536125183106,
0.0070594558715820314,
0.007089536190032959,
0.007127488136291504,
0.007237247943878174,
0.007238368034362793,
0.00720851182937622,
0.007162879943847656,
0.007212512016296387,
0.007167168140411377,
0.0071060161590576175,
0.007149087905883789
],
"count": 70,
"total": 0.508318401813507,
"mean": 0.007261691454478672,
"p50": 0.007211119890213013,
"p90": 0.007566483354568482,
"p95": 0.007663302350044251,
"p99": 0.007824501557350158,
"stdev": 0.0001856147474409133,
"stdev_": 2.5560814392139286
},
"throughput": {
"unit": "tokens/s",
"value": 4406.686816783422
},
"energy": {
"unit": "kWh",
"cpu": 8.898257377176823e-08,
"ram": 4.862536330930314e-08,
"gpu": 1.899607655671635e-07,
"total": 3.2756870264823486e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 97689430.46541212
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1271.857152,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394624
},
"latency": {
"unit": "s",
"values": [
0.006964479923248291,
0.0074273600578308105,
0.007358560085296631,
0.007215904235839844,
0.0072362241744995115,
0.007232351779937744,
0.006999360084533691,
0.006936384201049805,
0.007104703903198242,
0.006933824062347412,
0.006867775917053223,
0.007179711818695068,
0.0068599038124084475,
0.006990943908691406,
0.006901984214782715,
0.007149663925170899,
0.006992159843444824,
0.006970111846923828,
0.007403584003448487,
0.007169407844543457,
0.007113599777221679,
0.007283679962158203,
0.006960544109344482,
0.006933023929595947,
0.006952352046966552,
0.007119552135467529,
0.006916128158569336,
0.0068718080520629886,
0.0076265277862548825,
0.0075485119819641115,
0.007283455848693847,
0.0073042879104614255,
0.006844192028045654,
0.006899871826171875,
0.006960224151611328,
0.0069978880882263185,
0.006888192176818847,
0.006997439861297607,
0.006946944236755371,
0.006890560150146484,
0.0068579201698303225,
0.006834496021270752,
0.006848639965057373,
0.00710265588760376,
0.007163519859313965,
0.0071430401802062985,
0.007201312065124511,
0.007099455833435059,
0.007234752178192139,
0.0076332478523254395,
0.007074240207672119,
0.007002592086791992,
0.007033535957336426,
0.00725497579574585,
0.007183135986328125,
0.006851295948028565,
0.006895552158355713,
0.006926623821258545,
0.006863584041595459,
0.00690012788772583,
0.006904352188110352,
0.007177120208740235,
0.006999711990356445,
0.0070997757911682126,
0.006955103874206543,
0.006883488178253174,
0.006900032043457031,
0.006867519855499268,
0.006942815780639648,
0.0069552001953125
],
"count": 70,
"total": 0.4940230078697204,
"mean": 0.007057471540996007,
"p50": 0.006994799852371216,
"p90": 0.007285740756988525,
"p95": 0.007416660833358765,
"p99": 0.007628611006736755,
"stdev": 0.00018995810267578782,
"stdev_": 2.691588645768445
},
"throughput": {
"unit": "tokens/s",
"value": 283.3876110420339
},
"energy": {
"unit": "kWh",
"cpu": 8.164643921434377e-08,
"ram": 4.439476142377347e-08,
"gpu": 1.5735697260426476e-07,
"total": 2.83398173242382e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7057208.510266082
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.0066068158149719235,
0.006960127830505371,
0.006985727787017822,
0.006853631973266602,
0.006813695907592773,
0.006863872051239014,
0.006635519981384277,
0.006583295822143555,
0.006744063854217529,
0.006573056221008301,
0.006502399921417237,
0.006633471965789795,
0.006511616230010986,
0.006625279903411865,
0.006536191940307618,
0.006772736072540283,
0.006627327919006347,
0.006618112087249756,
0.007001088142395019,
0.006798240184783935,
0.006750207901000976,
0.006917119979858399,
0.006602752208709717,
0.006566751956939698,
0.00658841609954834,
0.006750207901000976,
0.006552480220794678,
0.0065177597999572755,
0.007157760143280029,
0.0071188478469848635,
0.006905856132507324,
0.006944767951965332,
0.006495232105255127,
0.006549471855163574,
0.006568960189819336,
0.006633471965789795,
0.006516736030578613,
0.006629280090332031,
0.006595615863800049,
0.006534143924713135,
0.006508575916290283,
0.006486015796661377,
0.006499328136444092,
0.006724607944488525,
0.006793312072753906,
0.006758399963378906,
0.006845439910888672,
0.00674508810043335,
0.006875135898590088,
0.0072540159225463864,
0.0067123198509216305,
0.006654975891113281,
0.00667955207824707,
0.00690176010131836,
0.006829055786132812,
0.006498303890228272,
0.006534143924713135,
0.00657203197479248,
0.006511616230010986,
0.0065484800338745115,
0.006550528049468994,
0.006823935985565186,
0.006638591766357422,
0.0067420158386230465,
0.006585343837738037,
0.006532095909118653,
0.0065474557876586915,
0.006518784046173095,
0.006591487884521485,
0.006589439868927002
],
"count": 70,
"total": 0.468193950176239,
"mean": 0.0066884850025177,
"p50": 0.006628304004669189,
"p90": 0.006919884777069092,
"p95": 0.006994175982475281,
"p99": 0.0071875994348526,
"stdev": 0.00017476595346062866,
"stdev_": 2.612937808709188
},
"throughput": {
"unit": "tokens/s",
"value": 299.0213776732928
},
"energy": null,
"efficiency": null
}
}
}