IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f69c38c verified
raw
history blame
16.9 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.224-212.876.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.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.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 800.62464,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.9669453125,
"mean": 7.9669453125,
"stdev": 0.0,
"p50": 7.9669453125,
"p90": 7.9669453125,
"p95": 7.9669453125,
"p99": 7.9669453125,
"values": [
7.9669453125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.43747682291213e-06,
"ram": 1.3159183748014335e-06,
"gpu": 3.2819470699996245e-06,
"total": 7.035342267713188e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1201.99168,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.4877184958457948,
"mean": 0.00686927458937739,
"stdev": 0.00032787875605161496,
"p50": 0.006885280132293701,
"p90": 0.0072700481414794925,
"p95": 0.007363936185836792,
"p99": 0.007714486408233641,
"values": [
0.007531040191650391,
0.007365248203277588,
0.00738153600692749,
0.006964896202087402,
0.006993919849395752,
0.006754687786102295,
0.006868351936340332,
0.006947904109954834,
0.007063007831573486,
0.007023647785186767,
0.00684988784790039,
0.007025407791137695,
0.007053055763244629,
0.007056928157806396,
0.006979231834411621,
0.006965504169464111,
0.006791359901428222,
0.006753952026367188,
0.0068707518577575686,
0.006897759914398193,
0.007279839992523194,
0.007329152107238769,
0.007362624168395996,
0.0072700481414794925,
0.0068990721702575685,
0.007094848155975342,
0.006970143795013427,
0.006849503993988037,
0.006920576095581055,
0.006885280132293701,
0.006829664230346679,
0.006849215984344482,
0.0069753599166870114,
0.0068791680335998535,
0.007004767894744873,
0.007101183891296387,
0.007132224082946777,
0.007016831874847412,
0.006954495906829834,
0.006994624137878418,
0.0068161277770996094,
0.00659827184677124,
0.006859007835388183,
0.006487135887145996,
0.006930463790893555,
0.00704860782623291,
0.007071616172790528,
0.007210527896881104,
0.0068594241142272945,
0.0068215360641479495,
0.006874144077301025,
0.006734208106994629,
0.006379903793334961,
0.006345280170440674,
0.006356063842773437,
0.0063175358772277835,
0.0063591041564941405,
0.006556960105895996,
0.006618624210357666,
0.006631648063659668,
0.006361728191375733,
0.006373472213745117,
0.006337120056152344,
0.0064620161056518554,
0.0068921918869018555,
0.006634431838989258,
0.00814252758026123,
0.0068100161552429195,
0.006346303939819336,
0.006410208225250244,
0.006335584163665772
]
},
"throughput": {
"unit": "tokens/s",
"value": 291.15155814163984
},
"energy": {
"unit": "kWh",
"cpu": 7.932051431012716e-08,
"ram": 4.3346041533577254e-08,
"gpu": 1.5611123599999314e-07,
"total": 2.7877779184369754e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7174172.615304095
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1220.337664,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5140018877983095,
"mean": 0.007239463208426893,
"stdev": 0.00035439128605532257,
"p50": 0.007269792079925537,
"p90": 0.007703104019165039,
"p95": 0.007752624034881592,
"p99": 0.008056358528137205,
"values": [
0.00779088020324707,
0.007706624031066894,
0.007703104019165039,
0.007346303939819336,
0.0073517441749572756,
0.0071831679344177245,
0.007258111953735351,
0.0074154877662658695,
0.007389344215393066,
0.007269792079925537,
0.007350048065185547,
0.007447391986846924,
0.007400767803192139,
0.007244383811950684,
0.0073966078758239745,
0.007388031959533691,
0.007159391880035401,
0.007285408020019531,
0.007256256103515625,
0.007733759880065918,
0.0077495999336242676,
0.007783552169799804,
0.007755648136138916,
0.007579520225524903,
0.0075392317771911625,
0.007304575920104981,
0.007367519855499267,
0.007168000221252442,
0.007283775806427002,
0.007455840110778809,
0.0072336320877075195,
0.007271135807037353,
0.007277952194213867,
0.007307360172271729,
0.007496575832366944,
0.007401279926300049,
0.007359583854675293,
0.007465439796447754,
0.007186304092407227,
0.007426943778991699,
0.007117343902587891,
0.007175776004791259,
0.006840256214141846,
0.006776192188262939,
0.007271488189697265,
0.007367584228515625,
0.007625216007232666,
0.007169407844543457,
0.007179999828338623,
0.007145120143890381,
0.0072509760856628415,
0.007034016132354736,
0.006713920116424561,
0.006675007820129394,
0.006671999931335449,
0.006683839797973633,
0.006705567836761474,
0.007047200202941894,
0.007002943992614746,
0.006978464126586914,
0.00664134407043457,
0.006651743888854981,
0.00668339204788208,
0.007093088150024414,
0.007043263912200928,
0.00867580795288086,
0.007237919807434082,
0.007004831790924072,
0.006680480003356934,
0.006682496070861816,
0.006685120105743408
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.13178839502606
},
"energy": {
"unit": "kWh",
"cpu": 7.700996619059085e-08,
"ram": 4.208411090251434e-08,
"gpu": 1.477194164210486e-07,
"total": 2.668134935141538e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3747936.3836857537
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.47951372766494754,
"mean": 0.006753714474154189,
"stdev": 0.0003090302457971086,
"p50": 0.006758399963378906,
"p90": 0.007124991893768311,
"p95": 0.007195647954940796,
"p99": 0.007522015857696531,
"values": [
0.007258111953735351,
0.007171072006225586,
0.007164896011352539,
0.006780928134918213,
0.00684441614151001,
0.0066826238632202144,
0.006750239849090576,
0.006897664070129395,
0.0068577280044555666,
0.006759424209594727,
0.0067870721817016606,
0.0069324798583984375,
0.006865920066833496,
0.0067358717918396,
0.006859776020050049,
0.006821887969970703,
0.006647808074951172,
0.006749184131622315,
0.006758399963378906,
0.007124991893768311,
0.0071485438346862796,
0.00724070405960083,
0.0072202239036560055,
0.007064576148986816,
0.007015423774719238,
0.0067686400413513184,
0.006845439910888672,
0.00667852783203125,
0.006780928134918213,
0.006941696166992187,
0.006713344097137451,
0.006765567779541016,
0.006744063854217529,
0.00675328016281128,
0.0069632000923156735,
0.006863872051239014,
0.006848512172698974,
0.0069366078376770016,
0.006662144184112549,
0.00692633581161499,
0.0066447358131408694,
0.006669312000274658,
0.006411263942718506,
0.006360064029693604,
0.006807551860809326,
0.006866943836212158,
0.007098368167877197,
0.0067348480224609375,
0.0067348480224609375,
0.006707200050354004,
0.006814720153808594,
0.006618112087249756,
0.006322175979614258,
0.006276095867156982,
0.0062873601913452145,
0.006293504238128662,
0.006302752017974853,
0.006628352165222168,
0.0065731201171875,
0.006553599834442139,
0.006232063770294189,
0.0062638077735900875,
0.006292479991912842,
0.006686719894409179,
0.006632448196411133,
0.008137791633605958,
0.006815743923187256,
0.006586368083953857,
0.0062863359451293946,
0.00628326416015625,
0.006259647846221924
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.06666817599458
},
"energy": null,
"efficiency": null
}
}
}