IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
aad52ef verified
raw
history blame
17.4 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.225-213.878.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",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.1",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 803.069952,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.3642294921875,
"mean": 8.3642294921875,
"stdev": 0.0,
"p50": 8.3642294921875,
"p90": 8.3642294921875,
"p95": 8.3642294921875,
"p99": 8.3642294921875,
"values": [
8.3642294921875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.545394463888921e-06,
"ram": 1.348593274045352e-06,
"gpu": 3.51389169999999e-06,
"total": 7.4078794379342635e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1236.721664,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.495539776802063,
"mean": 0.006607197024027507,
"stdev": 0.00022572757378476891,
"p50": 0.00652182388305664,
"p90": 0.006782361698150635,
"p95": 0.006867846536636353,
"p99": 0.007634355964660647,
"values": [
0.007511328220367432,
0.007984511852264405,
0.0066670398712158204,
0.006535871982574463,
0.006516160011291504,
0.006523327827453613,
0.00653056001663208,
0.006537087917327881,
0.006503136157989502,
0.006519711971282959,
0.006514111995697022,
0.00658844804763794,
0.006735680103302002,
0.0064880638122558594,
0.0065253119468688964,
0.0064999361038208005,
0.006500607967376709,
0.006642816066741944,
0.006791232109069824,
0.006710207939147949,
0.006518496036529541,
0.006483456134796142,
0.006490111827850342,
0.006502655982971192,
0.006463168144226074,
0.006482783794403076,
0.00652182388305664,
0.00678982400894165,
0.006813151836395264,
0.006501215934753418,
0.006467167854309082,
0.006508800029754638,
0.006544032096862793,
0.006469567775726318,
0.006493631839752197,
0.00652019214630127,
0.006498752117156982,
0.006489727973937988,
0.006530655860900879,
0.0065008001327514645,
0.0064642238616943355,
0.006509503841400146,
0.006486368179321289,
0.00646892786026001,
0.006457119941711426,
0.006771168231964111,
0.006562111854553222,
0.006496479988098144,
0.006519552230834961,
0.006571072101593018,
0.006927296161651612,
0.006738272190093994,
0.006719359874725342,
0.006712863922119141,
0.006842368125915528,
0.006749279975891113,
0.006697696208953857,
0.006737184047698974,
0.006688608169555664,
0.006517600059509277,
0.0065222721099853515,
0.006643775939941406,
0.006574240207672119,
0.0065469760894775395,
0.0066072320938110355,
0.006590176105499268,
0.006581600189208984,
0.00648960018157959,
0.006513343811035156,
0.006501183986663818,
0.006463071823120117,
0.006494688034057617,
0.006507936000823974,
0.006470304012298584,
0.006981152057647705
]
},
"throughput": {
"unit": "tokens/s",
"value": 302.70022109630884
},
"energy": {
"unit": "kWh",
"cpu": 8.161482737347957e-08,
"ram": 4.442949716614011e-08,
"gpu": 1.5604464538355965e-07,
"total": 2.8208896992317933e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7089961.725708934
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1255.067648,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.5096569604873659,
"mean": 0.006795426139831543,
"stdev": 0.00016698073182804421,
"p50": 0.006747136116027832,
"p90": 0.006953926372528076,
"p95": 0.007010726308822632,
"p99": 0.007494784030914308,
"values": [
0.007621471881866455,
0.007003744125366211,
0.006683360099792481,
0.006701791763305664,
0.006692671775817871,
0.006662208080291748,
0.006750847816467285,
0.006773183822631836,
0.006847904205322265,
0.006921504020690918,
0.006724127769470215,
0.006779744148254395,
0.006777215957641602,
0.006681375980377198,
0.006684864044189453,
0.006689792156219483,
0.0068273282051086424,
0.006952544212341308,
0.006925536155700684,
0.006810368061065674,
0.00671398401260376,
0.006806335926055908,
0.006670015811920166,
0.006707520008087158,
0.0066863040924072265,
0.006783872127532959,
0.006752352237701416,
0.0069920320510864255,
0.00674121618270874,
0.006675712108612061,
0.00668393611907959,
0.006672639846801758,
0.006676767826080322,
0.006681888103485107,
0.006794784069061279,
0.006675519943237305,
0.006681920051574707,
0.006674272060394287,
0.006692768096923828,
0.006680031776428222,
0.00666710376739502,
0.006626207828521729,
0.0066724481582641606,
0.006747136116027832,
0.006770944118499756,
0.00693500804901123,
0.006690624237060547,
0.006788159847259521,
0.006721888065338135,
0.00745027208328247,
0.006954847812652588,
0.006945600032806396,
0.006880512237548828,
0.007084896087646484,
0.006901311874389649,
0.007008863925933838,
0.0069374718666076664,
0.006947391986846923,
0.006902624130249024,
0.007015071868896485,
0.006786272048950195,
0.006916639804840088,
0.006673024177551269,
0.00675984001159668,
0.0067701759338378905,
0.00670576000213623,
0.00668287992477417,
0.006685215950012207,
0.0066425280570983885,
0.006705728054046631,
0.006666399955749512,
0.00665561580657959,
0.006674975872039795,
0.006805984020233155,
0.0069220800399780276
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.15780576857094
},
"energy": {
"unit": "kWh",
"cpu": 7.462601773799516e-08,
"ram": 4.0948334324917945e-08,
"gpu": 1.4686495366907336e-07,
"total": 2.6243930573198637e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3810404.837075893
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 75,
"total": 0.4793567695617674,
"mean": 0.006391423594156901,
"stdev": 0.00015214267997472452,
"p50": 0.0063498239517211915,
"p90": 0.006549465656280518,
"p95": 0.006601216125488281,
"p99": 0.007024127893447876,
"values": [
0.007080959796905518,
0.00658841609954834,
0.0062904319763183595,
0.006311935901641846,
0.006302720069885254,
0.006270976066589356,
0.006356927871704101,
0.00637440013885498,
0.006449151992797852,
0.006531040191650391,
0.006334464073181153,
0.0063508801460266115,
0.006387712001800537,
0.006288383960723877,
0.00628223991394043,
0.006300672054290772,
0.006362112045288086,
0.00655353593826294,
0.006516736030578613,
0.006419456005096436,
0.006307839870452881,
0.006408192157745361,
0.00628223991394043,
0.0062873601913452145,
0.006296576023101807,
0.006392831802368164,
0.0063539199829101565,
0.006593535900115967,
0.006348800182342529,
0.00628326416015625,
0.006295551776885986,
0.006281216144561768,
0.006258687973022461,
0.006292543888092041,
0.006400000095367431,
0.006284287929534912,
0.006293504238128662,
0.006285312175750732,
0.006305791854858398,
0.006291456222534179,
0.0062791681289672855,
0.006237184047698975,
0.006255616188049316,
0.0063569917678833006,
0.0063498239517211915,
0.006510591983795166,
0.006302720069885254,
0.006379519939422608,
0.0062873601913452145,
0.007004159927368164,
0.006494207859039307,
0.006543360233306885,
0.0064654722213745115,
0.006681600093841553,
0.006500319957733154,
0.00659660816192627,
0.0065372161865234375,
0.006491136074066162,
0.0065136637687683106,
0.0066119680404663084,
0.006393856048583985,
0.006498303890228272,
0.006281216144561768,
0.0063569917678833006,
0.00638156795501709,
0.006313983917236328,
0.00628326416015625,
0.006291456222534179,
0.006250495910644531,
0.006307839870452881,
0.006278143882751465,
0.006255616188049316,
0.006245376110076905,
0.006408192157745361,
0.006515711784362793
]
},
"throughput": {
"unit": "tokens/s",
"value": 156.45966587384527
},
"energy": null,
"efficiency": null
}
}
}