
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8c52bdd
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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, | |
"memory": true, | |
"latency": 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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.224-212.876.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 801.460224, | |
"max_global_vram": 1362.624512, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.00198046875, | |
"mean": 8.00198046875, | |
"stdev": 0.0, | |
"p50": 8.00198046875, | |
"p90": 8.00198046875, | |
"p95": 8.00198046875, | |
"p99": 8.00198046875, | |
"values": [ | |
8.00198046875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.427592857638356e-06, | |
"ram": 1.304929063275944e-06, | |
"gpu": 3.547225060000162e-06, | |
"total": 7.2797469809144615e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1207.066624, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.4915831036567686, | |
"mean": 0.006923705685306604, | |
"stdev": 0.00027085060032693047, | |
"p50": 0.006977727890014648, | |
"p90": 0.0072576642036437985, | |
"p95": 0.007285583972930908, | |
"p99": 0.007457593584060668, | |
"values": [ | |
0.007634463787078857, | |
0.007181407928466797, | |
0.006987584114074707, | |
0.006945536136627197, | |
0.006937376022338867, | |
0.007012351989746094, | |
0.006805376052856445, | |
0.006897088050842285, | |
0.00698908805847168, | |
0.007142047882080078, | |
0.007268064022064209, | |
0.0071881599426269534, | |
0.0072576642036437985, | |
0.007048511981964111, | |
0.00698140811920166, | |
0.006873023986816406, | |
0.006993887901306152, | |
0.006710464000701904, | |
0.00710316801071167, | |
0.007166079998016358, | |
0.007289824008941651, | |
0.006970655918121338, | |
0.007061439990997315, | |
0.007003456115722656, | |
0.007088704109191895, | |
0.007058815956115723, | |
0.007293824195861816, | |
0.007172287940979004, | |
0.007381792068481445, | |
0.007222559928894043, | |
0.007101856231689453, | |
0.007224671840667725, | |
0.007125120162963867, | |
0.007127903938293457, | |
0.0068652801513671875, | |
0.006977727890014648, | |
0.0070824317932128905, | |
0.007057759761810303, | |
0.006824384212493897, | |
0.007258592128753662, | |
0.00712828779220581, | |
0.007120927810668945, | |
0.006673408031463623, | |
0.006875008106231689, | |
0.006785727977752685, | |
0.006778560161590576, | |
0.006939263820648194, | |
0.007056575775146484, | |
0.007281343936920166, | |
0.006812607765197754, | |
0.0068039679527282714, | |
0.006844895839691162, | |
0.006773727893829346, | |
0.0066306557655334475, | |
0.006623424053192138, | |
0.006535903930664062, | |
0.006380703926086426, | |
0.0063796801567077635, | |
0.006410816192626953, | |
0.007075327873229981, | |
0.006714879989624023, | |
0.0066548800468444825, | |
0.0065625600814819334, | |
0.006575136184692383, | |
0.006559391975402832, | |
0.006604159832000732, | |
0.006653664112091065, | |
0.006576576232910156, | |
0.006551040172576904, | |
0.0063001918792724605, | |
0.006607967853546143 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 288.8626540328503 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.870293503954679e-08, | |
"ram": 4.301155016590563e-08, | |
"gpu": 1.5660424596026358e-07, | |
"total": 2.78318731165716e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7186005.741055078 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1225.142272, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.5184637136459349, | |
"mean": 0.007302305825999084, | |
"stdev": 0.0003132730962700005, | |
"p50": 0.007315040111541748, | |
"p90": 0.00770739221572876, | |
"p95": 0.007769615888595581, | |
"p99": 0.007964659261703491, | |
"values": [ | |
0.007718688011169434, | |
0.007271200180053711, | |
0.007332672119140625, | |
0.007279615879058838, | |
0.007302144050598145, | |
0.00720252799987793, | |
0.007172287940979004, | |
0.007362304210662841, | |
0.007538623809814453, | |
0.008171008110046387, | |
0.007549503803253174, | |
0.0076492161750793455, | |
0.0076581439971923826, | |
0.007378208160400391, | |
0.0072624959945678715, | |
0.007313375949859619, | |
0.007330111980438233, | |
0.007471744060516357, | |
0.007741407871246338, | |
0.007800352096557617, | |
0.007535711765289306, | |
0.0074650559425354, | |
0.0073669438362121585, | |
0.007390399932861328, | |
0.007523071765899658, | |
0.007797823905944824, | |
0.007654784202575683, | |
0.007569439888000488, | |
0.007581344127655029, | |
0.007551712036132812, | |
0.007727168083190918, | |
0.0074498882293701175, | |
0.007583487987518311, | |
0.0074468798637390135, | |
0.007320064067840576, | |
0.007370944023132324, | |
0.007315040111541748, | |
0.0073740482330322266, | |
0.007590464115142822, | |
0.007538303852081298, | |
0.007876224040985107, | |
0.007444064140319825, | |
0.00690396785736084, | |
0.007236480236053467, | |
0.007152959823608398, | |
0.00720688009262085, | |
0.00727782392501831, | |
0.00770739221572876, | |
0.007304768085479737, | |
0.007087776184082031, | |
0.0070874238014221195, | |
0.007208576202392578, | |
0.006961152076721191, | |
0.00697327995300293, | |
0.006948063850402832, | |
0.006975135803222656, | |
0.006734432220458985, | |
0.0066650562286376955, | |
0.0069911999702453615, | |
0.0071560959815979005, | |
0.00695465612411499, | |
0.006974815845489502, | |
0.007019040107727051, | |
0.006991040229797363, | |
0.006934144020080566, | |
0.006862175941467285, | |
0.006936448097229004, | |
0.006917600154876709, | |
0.006875616073608398, | |
0.006685056209564209, | |
0.006756159782409668 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.94304563903722 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.578173852646344e-08, | |
"ram": 4.141376744420915e-08, | |
"gpu": 1.5009513359817935e-07, | |
"total": 2.6729063956885197e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3741245.8648497034 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.48421507072448733, | |
"mean": 0.006819930573584329, | |
"stdev": 0.0002676450678357371, | |
"p50": 0.006818816184997558, | |
"p90": 0.00714137601852417, | |
"p95": 0.007245327949523926, | |
"p99": 0.007437209653854369, | |
"values": [ | |
0.007166975975036621, | |
0.0067645440101623535, | |
0.00682700777053833, | |
0.006709248065948486, | |
0.006775743961334228, | |
0.006703104019165039, | |
0.006667263984680176, | |
0.006859776020050049, | |
0.007010303974151612, | |
0.007640063762664795, | |
0.0070256638526916505, | |
0.0071157760620117185, | |
0.00712281608581543, | |
0.0068577280044555666, | |
0.006714431762695312, | |
0.006809599876403808, | |
0.006830080032348633, | |
0.006959104061126709, | |
0.0072325439453125, | |
0.007270400047302246, | |
0.007016448020935059, | |
0.006946815967559815, | |
0.0068351998329162595, | |
0.006870016098022461, | |
0.007012351989746094, | |
0.007258111953735351, | |
0.00714137601852417, | |
0.007027711868286133, | |
0.007074816226959229, | |
0.0069868798255920414, | |
0.007166975975036621, | |
0.006933504104614257, | |
0.007050240039825439, | |
0.006936575889587402, | |
0.006813695907592773, | |
0.0068280320167541505, | |
0.0067870721817016606, | |
0.006864895820617676, | |
0.007067647933959961, | |
0.007038976192474365, | |
0.007350272178649903, | |
0.0069324798583984375, | |
0.006435840129852295, | |
0.006785024166107178, | |
0.0067276802062988285, | |
0.0067420158386230465, | |
0.006818816184997558, | |
0.007130112171173096, | |
0.006876160144805908, | |
0.006652991771697998, | |
0.006665311813354492, | |
0.006778880119323731, | |
0.006560768127441406, | |
0.006567935943603515, | |
0.006545407772064209, | |
0.006567935943603515, | |
0.006346752166748047, | |
0.0062679038047790524, | |
0.006486976146697998, | |
0.006754303932189941, | |
0.006555647850036621, | |
0.006567935943603515, | |
0.006612959861755371, | |
0.006551648139953613, | |
0.006545407772064209, | |
0.006463488101959228, | |
0.006549503803253174, | |
0.006510591983795166, | |
0.006475872039794922, | |
0.006295551776885986, | |
0.00637337589263916 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 146.62905864075873 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |