
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0266906
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": 1078.718464, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.49499529838561995, | |
"mean": 0.008999914516102185, | |
"stdev": 0.0006457302535126386, | |
"p50": 0.008968319892883301, | |
"p90": 0.009335501098632812, | |
"p95": 0.009751843166351318, | |
"p99": 0.011452113914489748, | |
"values": [ | |
0.012809215545654297, | |
0.010296064376831055, | |
0.009237536430358887, | |
0.009098976135253907, | |
0.00898691177368164, | |
0.008866016387939452, | |
0.009027392387390136, | |
0.009088640213012695, | |
0.008975232124328613, | |
0.009015775680541993, | |
0.009266495704650879, | |
0.009187423706054687, | |
0.009132224082946777, | |
0.009003328323364259, | |
0.008918304443359375, | |
0.008903583526611329, | |
0.008970175743103027, | |
0.009099103927612305, | |
0.009200927734375, | |
0.008962047576904298, | |
0.009062368392944336, | |
0.008980192184448243, | |
0.008968319892883301, | |
0.009339584350585937, | |
0.008879136085510254, | |
0.00892262363433838, | |
0.008928768157958985, | |
0.009682271957397461, | |
0.009329376220703125, | |
0.009003392219543457, | |
0.008976767539978028, | |
0.008946816444396972, | |
0.008894368171691895, | |
0.00858137607574463, | |
0.009094240188598633, | |
0.009914175987243652, | |
0.009440671920776368, | |
0.008856448173522949, | |
0.008671232223510742, | |
0.008776415824890136, | |
0.008382783889770509, | |
0.008372447967529296, | |
0.008572352409362794, | |
0.008363648414611817, | |
0.008568767547607423, | |
0.008858240127563477, | |
0.009226112365722657, | |
0.008498271942138673, | |
0.008373344421386719, | |
0.008438559532165527, | |
0.008434176445007324, | |
0.008436896324157716, | |
0.00844166374206543, | |
0.0083571195602417, | |
0.008376992225646973 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 222.2243329557967 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0576523869993196e-07, | |
"ram": 5.7827943414525045e-08, | |
"gpu": 1.9023576726785883e-07, | |
"total": 3.538289493823158e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5652448.742510832 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1078.718464, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.5093521614074707, | |
"mean": 0.009260948389226739, | |
"stdev": 0.0006055144868363972, | |
"p50": 0.00927171230316162, | |
"p90": 0.009626559829711914, | |
"p95": 0.009860931205749511, | |
"p99": 0.011373571777343753, | |
"values": [ | |
0.01289027214050293, | |
0.010026399612426757, | |
0.009382880210876465, | |
0.009294976234436035, | |
0.009399968147277832, | |
0.009177599906921387, | |
0.009409088134765625, | |
0.009353759765625, | |
0.009265503883361816, | |
0.010081567764282227, | |
0.009333855628967285, | |
0.009193375587463378, | |
0.009469632148742677, | |
0.009197312355041504, | |
0.009278783798217774, | |
0.009223584175109864, | |
0.009445568084716797, | |
0.009575967788696288, | |
0.009282560348510742, | |
0.009341952323913574, | |
0.009243071556091309, | |
0.009199904441833497, | |
0.00933731174468994, | |
0.009413536071777345, | |
0.00927171230316162, | |
0.00934505558013916, | |
0.009511232376098633, | |
0.009790016174316405, | |
0.009667519569396973, | |
0.009234784126281738, | |
0.009315744400024414, | |
0.009004159927368164, | |
0.009045023918151856, | |
0.008713088035583495, | |
0.009517536163330079, | |
0.009660287857055664, | |
0.00933027172088623, | |
0.008989824295043945, | |
0.009282976150512696, | |
0.008900735855102539, | |
0.008757984161376953, | |
0.008726079940795899, | |
0.00871887969970703, | |
0.008610624313354492, | |
0.009483263969421387, | |
0.009241824150085448, | |
0.008845120429992677, | |
0.008582912445068359, | |
0.008747743606567384, | |
0.008660544395446777, | |
0.00874300765991211, | |
0.008633536338806152, | |
0.008690431594848632, | |
0.008712544441223144, | |
0.008799263954162598 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 107.98030158156371 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0086626612714353e-07, | |
"ram": 5.5152847031151376e-08, | |
"gpu": 1.7681912407696548e-07, | |
"total": 3.3283823723526045e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3004462.492971229 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.9807800674438476, | |
"mean": 0.01816259384155274, | |
"stdev": 0.00071595331910921, | |
"p50": 0.018272288322448732, | |
"p90": 0.018909900665283204, | |
"p95": 0.01924879341125488, | |
"p99": 0.020035347614288327, | |
"values": [ | |
0.02057318305969238, | |
0.018707456588745116, | |
0.018412544250488282, | |
0.018412544250488282, | |
0.018104320526123048, | |
0.018431999206542968, | |
0.018495616912841798, | |
0.018300800323486327, | |
0.019084287643432618, | |
0.018665632247924804, | |
0.018422719955444335, | |
0.01861008071899414, | |
0.01825484848022461, | |
0.018215936660766603, | |
0.018189311981201172, | |
0.01841459274291992, | |
0.01867366409301758, | |
0.018586624145507814, | |
0.018319360733032225, | |
0.018347007751464844, | |
0.018226175308227538, | |
0.018295808792114256, | |
0.018815999984741212, | |
0.018197504043579102, | |
0.01828972816467285, | |
0.01840121650695801, | |
0.019554304122924804, | |
0.01899622344970703, | |
0.018337791442871093, | |
0.018318336486816408, | |
0.018010112762451173, | |
0.018035711288452147, | |
0.017321983337402345, | |
0.018537471771240235, | |
0.019558399200439454, | |
0.018950143814086915, | |
0.017934335708618163, | |
0.017803264617919923, | |
0.01787596893310547, | |
0.017187839508056642, | |
0.017123327255249024, | |
0.017319936752319336, | |
0.01701375961303711, | |
0.01801523208618164, | |
0.018157567977905274, | |
0.018111488342285157, | |
0.017120256423950195, | |
0.01715814399719238, | |
0.017126399993896483, | |
0.01719705581665039, | |
0.017091583251953125, | |
0.017159168243408202, | |
0.017095680236816405, | |
0.017219615936279298 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.05821518246917 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |