
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1c9ab52
verified
{ | |
"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": 1062.486016, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.0096 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5023425588607788, | |
"mean": 0.00866107860104791, | |
"stdev": 0.00036545555072536423, | |
"p50": 0.00870692777633667, | |
"p90": 0.00907689905166626, | |
"p95": 0.009180945777893065, | |
"p99": 0.009578651123046875, | |
"values": [ | |
0.009738944053649902, | |
0.009214048385620116, | |
0.009175104141235351, | |
0.008865728378295898, | |
0.008871904373168945, | |
0.008824288368225098, | |
0.008988063812255859, | |
0.008854592323303222, | |
0.00897926425933838, | |
0.008933504104614258, | |
0.009070591926574707, | |
0.009457728385925294, | |
0.008838848114013672, | |
0.00890675163269043, | |
0.009031999588012695, | |
0.008915936470031739, | |
0.008924575805664062, | |
0.008849056243896484, | |
0.008998623847961426, | |
0.008746623992919922, | |
0.008811488151550292, | |
0.008835488319396973, | |
0.009164447784423829, | |
0.008964927673339843, | |
0.008789471626281738, | |
0.008731616020202638, | |
0.008745183944702148, | |
0.00849027156829834, | |
0.00867580795288086, | |
0.009003552436828613, | |
0.009091615676879883, | |
0.008682239532470703, | |
0.008558079719543457, | |
0.008583135604858398, | |
0.008594688415527343, | |
0.008300736427307128, | |
0.008249631881713867, | |
0.008263263702392578, | |
0.00823574447631836, | |
0.008291135787963868, | |
0.008261759757995606, | |
0.008257184028625488, | |
0.008231807708740234, | |
0.008271743774414062, | |
0.008242207527160645, | |
0.008279487609863282, | |
0.008258975982666016, | |
0.008246047973632813, | |
0.00823417568206787, | |
0.008240415573120117, | |
0.008243103981018067, | |
0.008251232147216797, | |
0.0084617280960083, | |
0.008279711723327636, | |
0.00824563217163086, | |
0.008259776115417481, | |
0.008261024475097656, | |
0.00856783962249756 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 230.91812141711986 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0256076738295427e-07, | |
"ram": 5.607349792406804e-08, | |
"gpu": 1.959604058103444e-07, | |
"total": 3.545946711173667e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5640242.685254633 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1062.486016, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.46016 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5112908172607423, | |
"mean": 0.008815358918288657, | |
"stdev": 0.000364527483022805, | |
"p50": 0.008927855968475342, | |
"p90": 0.009230240345001221, | |
"p95": 0.009296318578720092, | |
"p99": 0.009471887397766113, | |
"values": [ | |
0.009449472427368164, | |
0.009432127952575683, | |
0.009102975845336914, | |
0.009126367568969727, | |
0.008976351737976075, | |
0.00911292839050293, | |
0.009099136352539063, | |
0.009087103843688965, | |
0.009151040077209472, | |
0.009114975929260255, | |
0.009046815872192382, | |
0.00950160026550293, | |
0.009085984230041503, | |
0.00915503978729248, | |
0.00916710376739502, | |
0.00922755241394043, | |
0.00912185573577881, | |
0.009001919746398926, | |
0.00920240020751953, | |
0.009031167984008789, | |
0.009056159973144531, | |
0.009100159645080567, | |
0.009245120048522949, | |
0.009236512184143066, | |
0.00927235221862793, | |
0.008783488273620606, | |
0.00899824047088623, | |
0.00853270435333252, | |
0.009065024375915528, | |
0.009152895927429199, | |
0.009124671936035156, | |
0.008879360198974609, | |
0.008708928108215332, | |
0.008713695526123047, | |
0.008415040016174316, | |
0.008377504348754884, | |
0.008393280029296875, | |
0.008623488426208496, | |
0.008375712394714355, | |
0.008381728172302247, | |
0.008404735565185548, | |
0.008361887931823731, | |
0.008417792320251465, | |
0.008362591743469238, | |
0.008388447761535644, | |
0.008386240005493165, | |
0.00841584014892578, | |
0.008369440078735352, | |
0.008412287712097169, | |
0.00839145565032959, | |
0.008502367973327637, | |
0.008377120018005372, | |
0.008414143562316895, | |
0.008382719993591308, | |
0.008405119895935058, | |
0.008380864143371582, | |
0.008562496185302734, | |
0.008725279808044434 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 113.43837605129887 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.547086063853322e-08, | |
"ram": 5.219590885864254e-08, | |
"gpu": 1.816417481229883e-07, | |
"total": 3.293085176201642e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3036666.063868516 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.9963274173736575, | |
"mean": 0.01747942837497644, | |
"stdev": 0.0006923864430788794, | |
"p50": 0.017605632781982423, | |
"p90": 0.01823068161010742, | |
"p95": 0.01840373764038086, | |
"p99": 0.018786590576171876, | |
"values": [ | |
0.018634752273559572, | |
0.018396160125732423, | |
0.01802342414855957, | |
0.017903615951538086, | |
0.017921024322509766, | |
0.018167808532714845, | |
0.017931264877319338, | |
0.01820057678222656, | |
0.018085887908935547, | |
0.018159616470336915, | |
0.018979839324951172, | |
0.017966079711914062, | |
0.018077695846557617, | |
0.0182108154296875, | |
0.01820364761352539, | |
0.01804595184326172, | |
0.01794047927856445, | |
0.01822003173828125, | |
0.01782374382019043, | |
0.017870847702026366, | |
0.0179814395904541, | |
0.01843404769897461, | |
0.01824665641784668, | |
0.018103296279907227, | |
0.017605632781982423, | |
0.017728511810302734, | |
0.017141759872436522, | |
0.017711103439331053, | |
0.018157567977905274, | |
0.018338815689086914, | |
0.017596416473388672, | |
0.017315839767456053, | |
0.017321983337402345, | |
0.017047552108764647, | |
0.016704511642456055, | |
0.016665599822998048, | |
0.016913408279418944, | |
0.01663795280456543, | |
0.016694271087646484, | |
0.016679935455322266, | |
0.016660480499267577, | |
0.0166748161315918, | |
0.016662527084350585, | |
0.016656383514404297, | |
0.016688127517700196, | |
0.016691200256347655, | |
0.016655359268188476, | |
0.016673791885375978, | |
0.01664204788208008, | |
0.01676697540283203, | |
0.016664575576782227, | |
0.016901119232177735, | |
0.016695295333862305, | |
0.016671743392944336, | |
0.016663551330566406, | |
0.016841728210449217, | |
0.017328128814697266 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 57.21010885182038 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |