
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9c4e491
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": 1072.021504, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.0096 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4946096625328063, | |
"mean": 0.008243494375546773, | |
"stdev": 0.0003178850125089361, | |
"p50": 0.008150255680084229, | |
"p90": 0.008484710788726807, | |
"p95": 0.00860251040458679, | |
"p99": 0.009588763456344605, | |
"values": [ | |
0.009751263618469239, | |
0.009109248161315918, | |
0.009475839614868165, | |
0.008376511573791504, | |
0.00818233585357666, | |
0.008167584419250489, | |
0.007983967781066895, | |
0.008181599617004395, | |
0.008310367584228515, | |
0.007995584011077882, | |
0.008098591804504394, | |
0.008038816452026367, | |
0.008058239936828613, | |
0.008149855613708496, | |
0.008059871673583985, | |
0.008124544143676757, | |
0.008180992126464844, | |
0.008344160079956055, | |
0.008156991958618165, | |
0.008093567848205566, | |
0.008177311897277832, | |
0.008069375991821288, | |
0.008056991577148438, | |
0.008196512222290038, | |
0.008064064025878906, | |
0.0081079683303833, | |
0.008150655746459961, | |
0.008036416053771972, | |
0.008049247741699218, | |
0.00817692756652832, | |
0.008051712036132813, | |
0.008152671813964844, | |
0.008153023719787598, | |
0.008055456161499023, | |
0.008156319618225098, | |
0.00808454418182373, | |
0.00857583999633789, | |
0.008484448432922363, | |
0.00830019187927246, | |
0.008363264083862305, | |
0.008518752098083495, | |
0.008381024360656738, | |
0.008461376190185547, | |
0.008450880050659179, | |
0.008351743698120117, | |
0.008132384300231934, | |
0.00807910442352295, | |
0.008120927810668945, | |
0.008474240303039551, | |
0.008487071990966797, | |
0.008164447784423828, | |
0.008022848129272462, | |
0.008120896339416504, | |
0.008090656280517578, | |
0.008041152000427246, | |
0.008127776145935059, | |
0.008059807777404785, | |
0.00802943992614746, | |
0.008122624397277832, | |
0.008069631576538085 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 242.61555948078686 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0201270141040045e-07, | |
"ram": 5.567450961489857e-08, | |
"gpu": 1.7709653294016955e-07, | |
"total": 3.347837439654686e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5974005.7157801865 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1072.021504, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.46016 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5037881278991702, | |
"mean": 0.0083964687983195, | |
"stdev": 0.0003202832871326456, | |
"p50": 0.008296256065368653, | |
"p90": 0.008643426990509033, | |
"p95": 0.008724857950210569, | |
"p99": 0.009669364957809448, | |
"values": [ | |
0.009416031837463378, | |
0.009559616088867188, | |
0.009827296257019042, | |
0.008230560302734375, | |
0.008293503761291504, | |
0.008185471534729004, | |
0.008155360221862792, | |
0.008302592277526855, | |
0.008488575935363769, | |
0.008187552452087403, | |
0.008189056396484375, | |
0.008167391777038574, | |
0.008314208030700683, | |
0.008310879707336426, | |
0.008217023849487306, | |
0.008315679550170898, | |
0.008535967826843262, | |
0.008340031623840331, | |
0.008209471702575683, | |
0.008198271751403809, | |
0.008296832084655762, | |
0.008209952354431152, | |
0.008292192459106446, | |
0.00830726432800293, | |
0.008370016098022461, | |
0.008321760177612304, | |
0.008269599914550781, | |
0.00809932804107666, | |
0.00823094367980957, | |
0.008211071968078614, | |
0.008205408096313477, | |
0.008310400009155273, | |
0.008189184188842773, | |
0.008258048057556153, | |
0.008305407524108887, | |
0.008601216316223145, | |
0.008672991752624511, | |
0.008642687797546386, | |
0.008391231536865234, | |
0.008513248443603516, | |
0.008572480201721192, | |
0.008595423698425293, | |
0.008619839668273926, | |
0.008528832435607911, | |
0.008599328041076661, | |
0.008262111663818359, | |
0.008159423828125, | |
0.00829030418395996, | |
0.008688480377197265, | |
0.008650079727172851, | |
0.008310336112976074, | |
0.008171584129333496, | |
0.00828867244720459, | |
0.008155839920043945, | |
0.008295680046081543, | |
0.008269824028015137, | |
0.008154815673828125, | |
0.00829423999786377, | |
0.008577247619628907, | |
0.008160256385803222 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 119.09768546988988 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.498215597380706e-08, | |
"ram": 5.2029453831806165e-08, | |
"gpu": 1.6038096837130428e-07, | |
"total": 3.073925781769177e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3253168.9799760124 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 59, | |
"total": 0.9810554885864256, | |
"mean": 0.016628059128583485, | |
"stdev": 0.0005465671978888738, | |
"p50": 0.016450559616088867, | |
"p90": 0.0171114501953125, | |
"p95": 0.017211494827270506, | |
"p99": 0.01902454086303711, | |
"values": [ | |
0.018769920349121092, | |
0.01937615966796875, | |
0.016760799407958986, | |
0.016507904052734376, | |
0.01636966323852539, | |
0.016154624938964843, | |
0.016526336669921874, | |
0.01682636833190918, | |
0.01621401596069336, | |
0.016303104400634767, | |
0.01624166488647461, | |
0.01639219284057617, | |
0.016484352111816408, | |
0.01630521583557129, | |
0.016459711074829103, | |
0.016690176010131837, | |
0.01677926445007324, | |
0.01641164779663086, | |
0.016301055908203126, | |
0.016507904052734376, | |
0.016314367294311523, | |
0.016368640899658202, | |
0.016534528732299804, | |
0.01642803192138672, | |
0.016480255126953124, | |
0.016450559616088867, | |
0.016166912078857423, | |
0.016294912338256837, | |
0.01640959930419922, | |
0.016285696029663087, | |
0.016489471435546875, | |
0.0163768310546875, | |
0.016331775665283203, | |
0.016470016479492186, | |
0.016669696807861328, | |
0.017313791275024415, | |
0.01717452812194824, | |
0.016719871520996094, | |
0.016899072647094726, | |
0.017104896545410156, | |
0.017006591796875, | |
0.017089536666870117, | |
0.01703424072265625, | |
0.016961536407470702, | |
0.016440319061279296, | |
0.016265279769897462, | |
0.016436159133911134, | |
0.017137664794921875, | |
0.01720012855529785, | |
0.016509952545166014, | |
0.016220159530639648, | |
0.01643724822998047, | |
0.0162795524597168, | |
0.01635327911376953, | |
0.01642188835144043, | |
0.01624684715270996, | |
0.01633888053894043, | |
0.016743423461914063, | |
0.016267263412475585 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 60.13930984170059 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |