
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0e7fca3
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", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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", | |
"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.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.40.2", | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1077.137408, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.4942872362136842, | |
"mean": 0.009153467337290446, | |
"stdev": 0.00034077844730828906, | |
"p50": 0.009137743949890136, | |
"p90": 0.009556566333770751, | |
"p95": 0.009606407880783081, | |
"p99": 0.009890948123931884, | |
"values": [ | |
0.009888256072998047, | |
0.009893983840942382, | |
0.00953446388244629, | |
0.009431520462036132, | |
0.0093919038772583, | |
0.009289536476135254, | |
0.009342399597167969, | |
0.009633760452270507, | |
0.009441120147705078, | |
0.009539679527282715, | |
0.009577024459838867, | |
0.009463040351867676, | |
0.009174336433410644, | |
0.008999263763427735, | |
0.009387104034423829, | |
0.009550496101379395, | |
0.009591679573059082, | |
0.009117280006408691, | |
0.009163647651672364, | |
0.009559167861938476, | |
0.009451231956481933, | |
0.009444831848144531, | |
0.009015392303466797, | |
0.009007712364196778, | |
0.009075008392333984, | |
0.00924227237701416, | |
0.009216863632202149, | |
0.009116512298583984, | |
0.009213472366333008, | |
0.008870240211486816, | |
0.009003999710083008, | |
0.00869593620300293, | |
0.009368895530700683, | |
0.00944918441772461, | |
0.009373536109924316, | |
0.009121439933776855, | |
0.009154047966003418, | |
0.008972448348999023, | |
0.009032511711120605, | |
0.008937919616699219, | |
0.008915904045104981, | |
0.008875712394714356, | |
0.008925344467163086, | |
0.008894463539123536, | |
0.00886787223815918, | |
0.008951456069946288, | |
0.008938591957092285, | |
0.008719936370849609, | |
0.008852352142333984, | |
0.008526816368103027, | |
0.008515487670898438, | |
0.008523232460021972, | |
0.008509504318237304, | |
0.008537440299987794 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 218.49643706622194 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0663871024106e-07, | |
"ram": 5.830213500008245e-08, | |
"gpu": 1.875702201261254e-07, | |
"total": 3.525110653672679e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5673580.76523435 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1077.137408, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.5110613718032837, | |
"mean": 0.009464099477838587, | |
"stdev": 0.0003649819981887666, | |
"p50": 0.009395008087158204, | |
"p90": 0.009907730865478515, | |
"p95": 0.00999717617034912, | |
"p99": 0.010224975891113281, | |
"values": [ | |
0.010066752433776855, | |
0.010091872215270995, | |
0.009773599624633788, | |
0.00971615982055664, | |
0.009757472038269042, | |
0.009708160400390626, | |
0.009835871696472168, | |
0.009959712028503417, | |
0.009845952033996581, | |
0.009892767906188964, | |
0.009836064338684083, | |
0.00972390365600586, | |
0.009398655891418457, | |
0.009396479606628419, | |
0.009751296043395996, | |
0.009874143600463868, | |
0.009914143562316895, | |
0.009388383865356445, | |
0.009395520210266113, | |
0.01037507152557373, | |
0.009772671699523925, | |
0.009819040298461914, | |
0.009377887725830078, | |
0.009327327728271485, | |
0.009432448387145995, | |
0.0095381441116333, | |
0.009567551612854004, | |
0.009314463615417481, | |
0.00931670379638672, | |
0.009149344444274902, | |
0.009034527778625488, | |
0.009085856437683105, | |
0.009795167922973632, | |
0.009952735900878907, | |
0.009438112258911132, | |
0.009394495964050294, | |
0.00936847972869873, | |
0.00921247959136963, | |
0.009248736381530762, | |
0.009188287734985352, | |
0.009333791732788086, | |
0.00917033576965332, | |
0.009155455589294434, | |
0.009195967674255371, | |
0.009147711753845215, | |
0.009193535804748534, | |
0.009214655876159668, | |
0.009264351844787598, | |
0.009178112030029297, | |
0.008834976196289063, | |
0.008788864135742187, | |
0.008799327850341796, | |
0.008812447547912598, | |
0.008935392379760742 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 105.6624565645817 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0416953342681023e-07, | |
"ram": 5.6952233766214315e-08, | |
"gpu": 1.766844572423017e-07, | |
"total": 3.378062244353262e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 2960277.009908834 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.9872066535949707, | |
"mean": 0.018626540633867372, | |
"stdev": 0.0006826477720509291, | |
"p50": 0.018543615341186523, | |
"p90": 0.019416883087158204, | |
"p95": 0.019591577529907228, | |
"p99": 0.019998678741455077, | |
"values": [ | |
0.02005299186706543, | |
0.019355648040771483, | |
0.019177471160888672, | |
0.019159040451049804, | |
0.019059743881225586, | |
0.019195871353149416, | |
0.019629056930541993, | |
0.019305471420288087, | |
0.01948057556152344, | |
0.019418111801147463, | |
0.019273727416992188, | |
0.018618368148803712, | |
0.01840742492675781, | |
0.019162111282348633, | |
0.01941196823120117, | |
0.019566591262817384, | |
0.018571264266967775, | |
0.018579456329345705, | |
0.019948543548583983, | |
0.01926655960083008, | |
0.01929523277282715, | |
0.018465791702270508, | |
0.018356224060058594, | |
0.018527231216430663, | |
0.018817024230957033, | |
0.01882624053955078, | |
0.01846886444091797, | |
0.018543615341186523, | |
0.01808896064758301, | |
0.018147327423095702, | |
0.0176629753112793, | |
0.01924812889099121, | |
0.019350528717041016, | |
0.018993152618408202, | |
0.018543615341186523, | |
0.018586624145507814, | |
0.01820979118347168, | |
0.018315263748168945, | |
0.01815449523925781, | |
0.018267168045043945, | |
0.01807766342163086, | |
0.018134016036987305, | |
0.018083839416503905, | |
0.018074623107910158, | |
0.018141183853149414, | |
0.01817804718017578, | |
0.018041856765747072, | |
0.018058240890502928, | |
0.017398784637451172, | |
0.017349632263183593, | |
0.017334272384643554, | |
0.017341440200805663, | |
0.017484800338745117 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 53.68683426818225 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |