IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6d4577b verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_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": 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.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.41.0",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1059.729408,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.0096
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.49858991909027106,
"mean": 0.00874719156298721,
"stdev": 0.0007302884269170841,
"p50": 0.008714847564697266,
"p90": 0.009277344131469727,
"p95": 0.009604499435424803,
"p99": 0.011386877212524408,
"values": [
0.012863807678222657,
0.010226431846618653,
0.009518336296081543,
0.008904671669006348,
0.008702495574951171,
0.00885484790802002,
0.008876832008361816,
0.008953215599060059,
0.008917568206787109,
0.008901280403137207,
0.008829279899597168,
0.008795104026794433,
0.008805376052856445,
0.009061984062194824,
0.00884175968170166,
0.008969728469848632,
0.00994915199279785,
0.009212896347045899,
0.009079039573669434,
0.009208415985107422,
0.009119104385375977,
0.009034720420837403,
0.008841535568237305,
0.008774271965026855,
0.008652671813964844,
0.008917152404785156,
0.008714847564697266,
0.00903545570373535,
0.009076191902160644,
0.009374015808105469,
0.009511615753173828,
0.00843609619140625,
0.008296319961547852,
0.00827017593383789,
0.008212800025939942,
0.00821776008605957,
0.008304800033569336,
0.008230591773986816,
0.008203231811523437,
0.008226592063903809,
0.008214624404907226,
0.008202655792236328,
0.008199456214904786,
0.008223360061645507,
0.008211392402648926,
0.008204416275024414,
0.008198368072509765,
0.008219103813171386,
0.008209152221679688,
0.008206111907958984,
0.008221471786499023,
0.008207807540893555,
0.008235872268676758,
0.008222944259643554,
0.008214431762695313,
0.008244735717773437,
0.008231840133666991
]
},
"throughput": {
"unit": "tokens/s",
"value": 228.6448153785476
},
"energy": {
"unit": "kWh",
"cpu": 1.019888609676053e-07,
"ram": 5.569706973358571e-08,
"gpu": 1.8574801184615695e-07,
"total": 3.43433942547348e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5823536.20951216
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1059.729408,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.46016
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5080791330337525,
"mean": 0.008913669000592149,
"stdev": 0.000660524063924243,
"p50": 0.008965439796447754,
"p90": 0.009514815902709962,
"p95": 0.009622386932373047,
"p99": 0.011062747879028313,
"values": [
0.012598079681396484,
0.00985641574859619,
0.009672256469726562,
0.00905907154083252,
0.009100480079650879,
0.00912492847442627,
0.009058591842651367,
0.009167391777038575,
0.00915881633758545,
0.009069503784179688,
0.00899283218383789,
0.009081631660461427,
0.009347968101501465,
0.009175840377807618,
0.009087103843688965,
0.009034912109375,
0.00945417594909668,
0.009584256172180176,
0.009509023666381835,
0.009522208213806152,
0.009609919548034668,
0.00915875244140625,
0.00906777572631836,
0.008960384368896485,
0.008981663703918457,
0.009078432083129882,
0.008965439796447754,
0.00930451202392578,
0.0095098876953125,
0.009232992172241212,
0.008775008201599122,
0.008485504150390625,
0.008502335548400878,
0.008451647758483886,
0.008400320053100586,
0.008400927543640137,
0.008370304107666015,
0.00848476791381836,
0.008425663948059083,
0.008402591705322265,
0.008456224441528321,
0.008401727676391602,
0.008396800041198731,
0.008403167724609376,
0.008393343925476074,
0.00837622356414795,
0.008380064010620117,
0.008379167556762695,
0.008384415626525879,
0.008409024238586426,
0.00852239990234375,
0.008389056205749512,
0.008412128448486328,
0.008387807846069337,
0.008400639533996583,
0.008379199981689452,
0.008383423805236816
]
},
"throughput": {
"unit": "tokens/s",
"value": 112.18724858793483
},
"energy": {
"unit": "kWh",
"cpu": 9.726372129104305e-08,
"ram": 5.3241322361711156e-08,
"gpu": 1.7461338755384862e-07,
"total": 3.251184312066027e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3075802.243166371
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 56,
"total": 0.983206979751587,
"mean": 0.017557267495564053,
"stdev": 0.0009199960913363237,
"p50": 0.017726975440979002,
"p90": 0.018714623451232912,
"p95": 0.018927055835723877,
"p99": 0.019804006958007814,
"values": [
0.02026188850402832,
0.01922969627380371,
0.01805414390563965,
0.01779814338684082,
0.01803878402709961,
0.01794867134094238,
0.01817804718017578,
0.01807257652282715,
0.01804287910461426,
0.01784115219116211,
0.017932287216186525,
0.018101247787475586,
0.018343936920166014,
0.017967103958129883,
0.018029632568359374,
0.01942937660217285,
0.018826175689697265,
0.01862758445739746,
0.018769920349121092,
0.018736127853393555,
0.018273279190063475,
0.017936384201049805,
0.017781759262084963,
0.01766912078857422,
0.018084863662719726,
0.017672191619873046,
0.018350080490112306,
0.018573312759399413,
0.018693119049072265,
0.01839411163330078,
0.016978944778442383,
0.01679052734375,
0.01678335952758789,
0.016631807327270508,
0.01665433692932129,
0.016701440811157226,
0.016737279891967775,
0.01663488006591797,
0.016672767639160157,
0.016699392318725585,
0.01663488006591797,
0.01661440086364746,
0.016659456253051756,
0.01660927963256836,
0.016621599197387694,
0.016600032806396485,
0.01663283157348633,
0.01661337661743164,
0.01664614486694336,
0.016739328384399413,
0.016644096374511717,
0.016661504745483398,
0.016657407760620118,
0.016642080307006837,
0.0166461124420166,
0.016642112731933594
]
},
"throughput": {
"unit": "tokens/s",
"value": 56.95647117369806
},
"energy": null,
"efficiency": null
}
}
}