
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
87dad5e
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.225-213.878.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.5.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.1", | |
"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.13.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 803.414016, | |
"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.434642578125, | |
"mean": 8.434642578125, | |
"stdev": 0.0, | |
"p50": 8.434642578125, | |
"p90": 8.434642578125, | |
"p95": 8.434642578125, | |
"p99": 8.434642578125, | |
"values": [ | |
8.434642578125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 2.4959393270828895e-06, | |
"ram": 1.3488383889929183e-06, | |
"gpu": 3.4552805420000852e-06, | |
"total": 7.300058258075894e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1212.960768, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.410496 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.49888943862915053, | |
"mean": 0.007026611811678174, | |
"stdev": 0.0003888908234994614, | |
"p50": 0.007098048210144043, | |
"p90": 0.007400415897369385, | |
"p95": 0.007741472005844116, | |
"p99": 0.007936684846878051, | |
"values": [ | |
0.00779145622253418, | |
0.007855679988861084, | |
0.007365151882171631, | |
0.00721999979019165, | |
0.007460031986236572, | |
0.00715990400314331, | |
0.007109792232513428, | |
0.0070174398422241215, | |
0.007184991836547852, | |
0.0071922879219055175, | |
0.006986239910125733, | |
0.007234784126281738, | |
0.007205599784851074, | |
0.007194752216339111, | |
0.007116447925567627, | |
0.007122975826263428, | |
0.007187263965606689, | |
0.006961023807525635, | |
0.007044864177703857, | |
0.007050496101379394, | |
0.007201344013214111, | |
0.007361536026000977, | |
0.007258463859558106, | |
0.007198527812957763, | |
0.006965312004089355, | |
0.007337759971618652, | |
0.007159776210784912, | |
0.007169343948364258, | |
0.006966176033020019, | |
0.007098048210144043, | |
0.007400415897369385, | |
0.00732313585281372, | |
0.007691487789154052, | |
0.007291071891784668, | |
0.007285727977752686, | |
0.00749289608001709, | |
0.007315872192382812, | |
0.007251999855041504, | |
0.007140543937683106, | |
0.00702246379852295, | |
0.007288000106811523, | |
0.006930719852447509, | |
0.006758975982666016, | |
0.0069474239349365235, | |
0.0065784001350402835, | |
0.006928031921386719, | |
0.007038464069366455, | |
0.007074624061584473, | |
0.007799104213714599, | |
0.008125696182250976, | |
0.007333471775054932, | |
0.006837152004241944, | |
0.006721471786499024, | |
0.006666111946105957, | |
0.006576831817626953, | |
0.006501791954040527, | |
0.006464000225067139, | |
0.00645366382598877, | |
0.006442592144012451, | |
0.006522848129272461, | |
0.006589920043945313, | |
0.006540287971496582, | |
0.00660214376449585, | |
0.006411935806274414, | |
0.006359871864318848, | |
0.006435935974121094, | |
0.00653385591506958, | |
0.006574816226959228, | |
0.006534815788269043, | |
0.006466432094573975, | |
0.006456960201263428 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 284.6322030592348 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.1278869482495e-08, | |
"ram": 4.441464141795717e-08, | |
"gpu": 1.5372538934246343e-07, | |
"total": 2.794189002429156e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7157711.945259538 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1231.306752, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.458112 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.511313759803772, | |
"mean": 0.007201602250757351, | |
"stdev": 0.0004253228029205543, | |
"p50": 0.007252575874328614, | |
"p90": 0.007532351970672607, | |
"p95": 0.008018240213394166, | |
"p99": 0.008440783691406249, | |
"values": [ | |
0.007522240161895752, | |
0.007532351970672607, | |
0.00744265604019165, | |
0.007390143871307373, | |
0.0074843201637268065, | |
0.0073313918113708494, | |
0.0072193598747253415, | |
0.007462080001831055, | |
0.007508959770202637, | |
0.007252575874328614, | |
0.007300864219665528, | |
0.007330336093902588, | |
0.0073855361938476565, | |
0.0073266558647155765, | |
0.007313888072967529, | |
0.007334335803985596, | |
0.007141568183898926, | |
0.00718828821182251, | |
0.007235072135925293, | |
0.007520703792572021, | |
0.007507711887359619, | |
0.00755679988861084, | |
0.00785590410232544, | |
0.007297440052032471, | |
0.007339807987213134, | |
0.007372608184814453, | |
0.007324863910675048, | |
0.007221471786499023, | |
0.007236512184143067, | |
0.007308063983917236, | |
0.007311232089996338, | |
0.00818057632446289, | |
0.008587391853332519, | |
0.007396351814270019, | |
0.007601856231689453, | |
0.007460480213165283, | |
0.007424255847930908, | |
0.007233920097351074, | |
0.007355103969573975, | |
0.007131296157836914, | |
0.007160799980163574, | |
0.007009376049041748, | |
0.007281472206115722, | |
0.006826879978179931, | |
0.006714367866516113, | |
0.007007232189178467, | |
0.0071467838287353515, | |
0.0075177597999572755, | |
0.008377951622009277, | |
0.008208224296569824, | |
0.006921088218688965, | |
0.006954527854919433, | |
0.0068626561164855954, | |
0.006872159957885742, | |
0.006818272113800049, | |
0.006615007877349853, | |
0.0066360001564025875, | |
0.0066640000343322755, | |
0.00666921615600586, | |
0.006687327861785889, | |
0.006887519836425781, | |
0.006645631790161133, | |
0.006622079849243164, | |
0.006629824161529541, | |
0.0065747199058532714, | |
0.006697919845581055, | |
0.00662179183959961, | |
0.0068057279586791995, | |
0.006652703762054443, | |
0.006635551929473877, | |
0.006662208080291748 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.85798815046135 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.402475133280806e-08, | |
"ram": 4.005802140993603e-08, | |
"gpu": 1.7444586886532833e-07, | |
"total": 2.8852864160807256e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3465860.4235151317 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.47732732629775987, | |
"mean": 0.006722920088700844, | |
"stdev": 0.00037953531987140537, | |
"p50": 0.006739967823028564, | |
"p90": 0.007004159927368164, | |
"p95": 0.007492095947265625, | |
"p99": 0.007888895988464355, | |
"values": [ | |
0.0069847040176391605, | |
0.007004159927368164, | |
0.006919167995452881, | |
0.006847487926483154, | |
0.006971392154693603, | |
0.006833119869232178, | |
0.0067010560035705566, | |
0.006949888229370117, | |
0.006985727787017822, | |
0.0067276802062988285, | |
0.006780928134918213, | |
0.006815743923187256, | |
0.006851583957672119, | |
0.006824927806854248, | |
0.006801407814025879, | |
0.006822912216186523, | |
0.006658048152923584, | |
0.006652927875518798, | |
0.006739967823028564, | |
0.006961152076721191, | |
0.006971392154693603, | |
0.007037951946258545, | |
0.007337984085083008, | |
0.006785024166107178, | |
0.0068249602317810056, | |
0.006864895820617676, | |
0.006815711975097657, | |
0.006737919807434082, | |
0.006708223819732666, | |
0.006759424209594727, | |
0.006811647891998291, | |
0.007646207809448242, | |
0.008053759574890136, | |
0.006871039867401123, | |
0.007074848175048828, | |
0.006939680099487305, | |
0.006897664070129395, | |
0.00672870397567749, | |
0.0068392958641052244, | |
0.006621183872222901, | |
0.0066826238632202144, | |
0.0065382399559021, | |
0.00678604793548584, | |
0.006387712001800537, | |
0.006308864116668702, | |
0.006557695865631104, | |
0.00667852783203125, | |
0.006966271877288818, | |
0.00781824016571045, | |
0.007725056171417236, | |
0.006479872226715088, | |
0.006523903846740723, | |
0.0064440321922302245, | |
0.00642252779006958, | |
0.006429696083068847, | |
0.006228991985321045, | |
0.006232063770294189, | |
0.006277120113372803, | |
0.006271999835968017, | |
0.006300672054290772, | |
0.006475776195526123, | |
0.006258687973022461, | |
0.006232063770294189, | |
0.00622489595413208, | |
0.006191103935241699, | |
0.006307839870452881, | |
0.0062269439697265625, | |
0.006419456005096436, | |
0.0062679038047790524, | |
0.0062341117858886715, | |
0.006266880035400391 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.74488865049753 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |