
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e09c029
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu121", | |
"_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.25696, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.220-209.869.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.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 764.444672, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.40263427734375, | |
"mean": 7.40263427734375, | |
"stdev": 0.0, | |
"p50": 7.40263427734375, | |
"p90": 7.40263427734375, | |
"p95": 7.40263427734375, | |
"p99": 7.40263427734375, | |
"values": [ | |
7.40263427734375 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.863166958337014e-07, | |
"ram": 5.249977836904292e-07, | |
"gpu": 1.6097235100000305e-06, | |
"total": 3.1210379895241613e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1095.016448, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.48662899065017695, | |
"mean": 0.006853929445777141, | |
"stdev": 0.00034119439765958545, | |
"p50": 0.0068139519691467285, | |
"p90": 0.007212704181671143, | |
"p95": 0.007331840038299561, | |
"p99": 0.007937827157974243, | |
"values": [ | |
0.0074718079566955566, | |
0.007110047817230225, | |
0.006862368106842041, | |
0.0069203200340270995, | |
0.0067710399627685545, | |
0.006728256225585937, | |
0.006870207786560059, | |
0.006908383846282959, | |
0.006810527801513672, | |
0.0068791680335998535, | |
0.006916927814483643, | |
0.006967423915863037, | |
0.006811615943908692, | |
0.007203328132629395, | |
0.007169695854187011, | |
0.00670198392868042, | |
0.006801055908203125, | |
0.0068139519691467285, | |
0.0069028158187866215, | |
0.00698524808883667, | |
0.007307616233825684, | |
0.007017375946044922, | |
0.006980160236358643, | |
0.006811647891998291, | |
0.00712550401687622, | |
0.006964384078979492, | |
0.00701801586151123, | |
0.007028160095214844, | |
0.0069918398857116695, | |
0.00701039981842041, | |
0.0070087361335754396, | |
0.007299839973449707, | |
0.007212704181671143, | |
0.007188223838806153, | |
0.007154463768005371, | |
0.007056128025054931, | |
0.006700064182281494, | |
0.006745440006256103, | |
0.007299136161804199, | |
0.006773344039916992, | |
0.007356063842773437, | |
0.007823423862457275, | |
0.008204768180847168, | |
0.007081120014190674, | |
0.007003583908081055, | |
0.006688543796539307, | |
0.006648128032684326, | |
0.00650377607345581, | |
0.006512032032012939, | |
0.006533055782318115, | |
0.006459839820861816, | |
0.006521440029144287, | |
0.006499551773071289, | |
0.0070764479637146, | |
0.006636415958404541, | |
0.006485504150390625, | |
0.006508992195129394, | |
0.006489408016204834, | |
0.006502240180969238, | |
0.006476319789886474, | |
0.00648422384262085, | |
0.006462463855743408, | |
0.006476128101348877, | |
0.006481887817382813, | |
0.006508607864379883, | |
0.006530432224273681, | |
0.006556608200073242, | |
0.0065567679405212406, | |
0.006531424045562744, | |
0.006482304096221924, | |
0.006248127937316894 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 291.80341230857647 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.801187722953533e-08, | |
"ram": 4.265317778171609e-08, | |
"gpu": 1.4550450236842008e-07, | |
"total": 2.661695573796715e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7514007.310562363 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.659072, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.5115817255973817, | |
"mean": 0.007205376416864531, | |
"stdev": 0.0003229876204850253, | |
"p50": 0.007232704162597656, | |
"p90": 0.007566720008850098, | |
"p95": 0.007640736103057861, | |
"p99": 0.007946256113052367, | |
"values": [ | |
0.00768726396560669, | |
0.007340799808502197, | |
0.007194143772125244, | |
0.007232704162597656, | |
0.007061279773712158, | |
0.007145472049713135, | |
0.007286367893218994, | |
0.007284031867980957, | |
0.007301087856292725, | |
0.007633088111877441, | |
0.007256576061248779, | |
0.007231584072113037, | |
0.007433119773864746, | |
0.007524831771850586, | |
0.007113056182861328, | |
0.007083936214447022, | |
0.007483583927154541, | |
0.007175519943237305, | |
0.007286880016326904, | |
0.007421472072601318, | |
0.007491168022155762, | |
0.007566720008850098, | |
0.007338880062103271, | |
0.00746127986907959, | |
0.00735920000076294, | |
0.007448671817779541, | |
0.0076483840942382815, | |
0.007359871864318848, | |
0.0074410557746887205, | |
0.007433536052703857, | |
0.00749567985534668, | |
0.007709184169769287, | |
0.007585663795471192, | |
0.0074741759300231934, | |
0.007493760108947754, | |
0.007371488094329834, | |
0.007070975780487061, | |
0.007393343925476074, | |
0.0072370882034301755, | |
0.007125887870788574, | |
0.007604159832000732, | |
0.00849942398071289, | |
0.007485504150390625, | |
0.007434144020080567, | |
0.00701580810546875, | |
0.006949600219726563, | |
0.0068681597709655765, | |
0.0070687680244445805, | |
0.0068149762153625485, | |
0.006828671932220459, | |
0.006811071872711181, | |
0.006937695980072022, | |
0.006935808181762695, | |
0.00724886417388916, | |
0.00681935977935791, | |
0.006838111877441406, | |
0.00684611177444458, | |
0.0068392958641052244, | |
0.006854496002197266, | |
0.006780576229095459, | |
0.006897119998931884, | |
0.006824927806854248, | |
0.006796671867370606, | |
0.006786143779754639, | |
0.006960671901702881, | |
0.006856959819793701, | |
0.0071634559631347655, | |
0.006846047878265381, | |
0.006853951930999756, | |
0.006857471942901611, | |
0.006574880123138427 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.78525453013833 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.317039373565441e-08, | |
"ram": 3.988876871904504e-08, | |
"gpu": 1.3747040755563328e-07, | |
"total": 2.505295700103326e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3991544.7903365535 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 71, | |
"total": 0.47732956743240346, | |
"mean": 0.006722951653977514, | |
"stdev": 0.00027353451955110323, | |
"p50": 0.0067276802062988285, | |
"p90": 0.0070266880989074704, | |
"p95": 0.007096319913864136, | |
"p99": 0.007388569545745847, | |
"values": [ | |
0.007136256217956543, | |
0.0068280320167541505, | |
0.006667263984680176, | |
0.006719488143920899, | |
0.0065669121742248536, | |
0.006624256134033203, | |
0.006730751991271973, | |
0.0067717118263244626, | |
0.006790143966674805, | |
0.007081984043121338, | |
0.0067276802062988285, | |
0.006716479778289795, | |
0.0069027838706970214, | |
0.006989823818206787, | |
0.006601759910583496, | |
0.006590464115142822, | |
0.006971392154693603, | |
0.006661119937896728, | |
0.006750207901000976, | |
0.006879231929779053, | |
0.006960127830505371, | |
0.0070266880989074704, | |
0.0068280320167541505, | |
0.006913023948669434, | |
0.006854656219482422, | |
0.006924287796020508, | |
0.007108607769012451, | |
0.00684441614151001, | |
0.006904831886291504, | |
0.006915071964263916, | |
0.006946815967559815, | |
0.007164927959442138, | |
0.007045119762420654, | |
0.006945824146270752, | |
0.006993855953216553, | |
0.006865920066833496, | |
0.006585343837738037, | |
0.0068392958641052244, | |
0.006780928134918213, | |
0.006614016056060791, | |
0.00708403205871582, | |
0.007910399913787843, | |
0.006908927917480469, | |
0.006957119941711426, | |
0.006576128005981445, | |
0.006527999877929688, | |
0.006421504020690918, | |
0.006654975891113281, | |
0.0064133119583129885, | |
0.006428671836853027, | |
0.006395904064178467, | |
0.00652185583114624, | |
0.006524960041046143, | |
0.006770688056945801, | |
0.0064174079895019534, | |
0.00643174409866333, | |
0.006435840129852295, | |
0.006436863899230957, | |
0.006448128223419189, | |
0.0063805441856384275, | |
0.006496255874633789, | |
0.0064204797744750975, | |
0.006395904064178467, | |
0.0063835840225219724, | |
0.006550528049468994, | |
0.006453248023986816, | |
0.006732800006866455, | |
0.00643891191482544, | |
0.0064143362045288085, | |
0.006442016124725342, | |
0.006184959888458252 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.74419027070763 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |