
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6a3c0f2
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", | |
"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": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1071.722496, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.49619836616516105, | |
"mean": 0.008860685110092163, | |
"stdev": 0.0002612604204649016, | |
"p50": 0.008874304294586181, | |
"p90": 0.009124991893768312, | |
"p95": 0.009386216163635254, | |
"p99": 0.009589083433151246, | |
"values": [ | |
0.00954684829711914, | |
0.009258015632629395, | |
0.009640704154968262, | |
0.008691007614135743, | |
0.00844927978515625, | |
0.008757535934448241, | |
0.009057760238647461, | |
0.009019807815551758, | |
0.008911840438842774, | |
0.008674495697021485, | |
0.008887840270996093, | |
0.008975199699401856, | |
0.00897878360748291, | |
0.008902400016784669, | |
0.00887558364868164, | |
0.008886112213134765, | |
0.008875136375427245, | |
0.008865152359008789, | |
0.0084203519821167, | |
0.008455583572387695, | |
0.008461919784545899, | |
0.008461888313293458, | |
0.009359392166137695, | |
0.008961631774902343, | |
0.00886832046508789, | |
0.008858783721923828, | |
0.008877375602722167, | |
0.008934080123901367, | |
0.008873472213745117, | |
0.008711423873901367, | |
0.008963871955871582, | |
0.00886409568786621, | |
0.008876895904541016, | |
0.008956671714782715, | |
0.008842495918273926, | |
0.008415519714355469, | |
0.008854335784912109, | |
0.008825535774230958, | |
0.008919072151184083, | |
0.00890339183807373, | |
0.008843232154846191, | |
0.00888047981262207, | |
0.008867136001586914, | |
0.008702912330627442, | |
0.008942272186279297, | |
0.00844268798828125, | |
0.0084367036819458, | |
0.00946668815612793, | |
0.008917728424072265, | |
0.008820416450500489, | |
0.00881606388092041, | |
0.008822303771972656, | |
0.008784288406372071, | |
0.008440735816955567, | |
0.00890287971496582, | |
0.009192223548889161 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 225.7161805380078 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0895501522235306e-07, | |
"ram": 5.957403312787817e-08, | |
"gpu": 1.8856539040367029e-07, | |
"total": 3.570944387539015e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5600759.3032787 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1071.722496, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5143286714553832, | |
"mean": 0.009184440561703273, | |
"stdev": 0.00027296650707682506, | |
"p50": 0.009202479839324951, | |
"p90": 0.009407440185546876, | |
"p95": 0.009550991773605346, | |
"p99": 0.009983491182327272, | |
"values": [ | |
0.009524959564208985, | |
0.00989020824432373, | |
0.010097503662109375, | |
0.0087041597366333, | |
0.008708224296569825, | |
0.009249759674072265, | |
0.009135583877563476, | |
0.009258943557739258, | |
0.009169440269470214, | |
0.009444640159606934, | |
0.009233440399169922, | |
0.009355232238769532, | |
0.0093274564743042, | |
0.009237792015075684, | |
0.009290111541748048, | |
0.009228927612304687, | |
0.009224224090576171, | |
0.009111328125, | |
0.00869545555114746, | |
0.008621600151062012, | |
0.008689984321594239, | |
0.008568032264709473, | |
0.009370240211486816, | |
0.009204863548278808, | |
0.009133215904235839, | |
0.009198847770690919, | |
0.009280511856079102, | |
0.009218144416809081, | |
0.009035903930664063, | |
0.009046848297119141, | |
0.009171232223510743, | |
0.00919382381439209, | |
0.009200096130371094, | |
0.009247872352600097, | |
0.009154111862182616, | |
0.00875868797302246, | |
0.009154751777648925, | |
0.009317024230957031, | |
0.009156928062438965, | |
0.00915715217590332, | |
0.009514207839965821, | |
0.009286016464233398, | |
0.009196415901184082, | |
0.009263456344604492, | |
0.009208576202392578, | |
0.009179391860961915, | |
0.00865775966644287, | |
0.009281279563903809, | |
0.009151552200317383, | |
0.00918620777130127, | |
0.009131263732910157, | |
0.009117535591125488, | |
0.00921126365661621, | |
0.00925648021697998, | |
0.009629088401794434, | |
0.009290911674499512 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 108.87979439594174 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0369866381171357e-07, | |
"ram": 5.6252981534751743e-08, | |
"gpu": 1.7879601459632933e-07, | |
"total": 3.3874765994279454e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 2952049.912813784 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.9931366424560548, | |
"mean": 0.01805702986283736, | |
"stdev": 0.00048313391802608214, | |
"p50": 0.01810534477233887, | |
"p90": 0.01846763458251953, | |
"p95": 0.01870909423828125, | |
"p99": 0.019481702308654786, | |
"values": [ | |
0.01920614433288574, | |
0.019805183410644533, | |
0.017562623977661132, | |
0.01718272018432617, | |
0.017971200942993162, | |
0.018255872726440428, | |
0.018310144424438478, | |
0.018114559173583983, | |
0.018123775482177733, | |
0.018163711547851562, | |
0.0183439998626709, | |
0.018355136871337892, | |
0.018166784286499024, | |
0.01818623924255371, | |
0.018148351669311523, | |
0.01810534477233887, | |
0.01804697608947754, | |
0.017137664794921875, | |
0.017107967376708985, | |
0.017179647445678712, | |
0.01705779266357422, | |
0.018717695236206054, | |
0.01821183967590332, | |
0.01803468894958496, | |
0.01808076858520508, | |
0.018185216903686522, | |
0.01816166305541992, | |
0.017970176696777345, | |
0.01777663993835449, | |
0.01815449523925781, | |
0.01807257652282715, | |
0.018118656158447266, | |
0.018207744598388673, | |
0.018044927597045898, | |
0.017176576614379883, | |
0.018061311721801757, | |
0.018163711547851562, | |
0.018093055725097656, | |
0.01807360076904297, | |
0.01840127944946289, | |
0.0182108154296875, | |
0.01807974433898926, | |
0.01799273681640625, | |
0.018167776107788088, | |
0.017632255554199217, | |
0.017176576614379883, | |
0.018705408096313478, | |
0.018139135360717772, | |
0.01803468894958496, | |
0.01797222328186035, | |
0.01797427177429199, | |
0.018018304824829103, | |
0.017683456420898438, | |
0.018511871337890624, | |
0.01859891128540039 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.38009338169565 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |