
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7ba8a1e
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.6.0.dev20240917+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": 814.227456, | |
"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.5292421875, | |
"mean": 8.5292421875, | |
"stdev": 0.0, | |
"p50": 8.5292421875, | |
"p90": 8.5292421875, | |
"p95": 8.5292421875, | |
"p99": 8.5292421875, | |
"values": [ | |
8.5292421875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0155982513955072e-06, | |
"ram": 5.101656763365285e-07, | |
"gpu": 1.7863903179968221e-06, | |
"total": 3.3121542457288576e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1218.23232, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.48749135828018214, | |
"mean": 0.007065092148988142, | |
"stdev": 0.00027237795886031474, | |
"p50": 0.007092480182647705, | |
"p90": 0.007384518241882325, | |
"p95": 0.007469094371795654, | |
"p99": 0.007568043346405029, | |
"values": [ | |
0.007601183891296387, | |
0.0074486398696899415, | |
0.007470719814300537, | |
0.007092480182647705, | |
0.007174335956573487, | |
0.007268928050994873, | |
0.006965919971466065, | |
0.007074944019317627, | |
0.007242527961730957, | |
0.0071758079528808595, | |
0.007004735946655273, | |
0.007154848098754883, | |
0.007185440063476562, | |
0.007208255767822266, | |
0.00715174388885498, | |
0.007391327857971191, | |
0.007209375858306884, | |
0.007488351821899414, | |
0.007173088073730469, | |
0.007346240043640137, | |
0.007315584182739258, | |
0.007053215980529785, | |
0.007231488227844239, | |
0.00746665620803833, | |
0.007255839824676514, | |
0.007068031787872314, | |
0.007193024158477783, | |
0.007123519897460937, | |
0.007382815837860108, | |
0.007232287883758545, | |
0.0073398399353027345, | |
0.007119935989379883, | |
0.007015679836273193, | |
0.006978687763214112, | |
0.007057919979095459, | |
0.007044032096862793, | |
0.007038527965545654, | |
0.007272319793701172, | |
0.007188608169555664, | |
0.0072063679695129395, | |
0.00755244779586792, | |
0.0069630398750305175, | |
0.007026336193084717, | |
0.0069918398857116695, | |
0.0068552961349487304, | |
0.006823359966278076, | |
0.006553408145904541, | |
0.00671343994140625, | |
0.007264927864074707, | |
0.007351871967315674, | |
0.0073480639457702635, | |
0.007057536125183106, | |
0.006979167938232422, | |
0.007136447906494141, | |
0.006886879920959473, | |
0.006894720077514648, | |
0.006810175895690918, | |
0.006833983898162842, | |
0.006823616027832031, | |
0.0067628159523010255, | |
0.00679145622253418, | |
0.006794943809509278, | |
0.006804255962371826, | |
0.006539072036743164, | |
0.006486432075500488, | |
0.006536287784576416, | |
0.006493760108947754, | |
0.006485568046569824, | |
0.006516928195953369 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 283.0819411586073 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.100222440953281e-08, | |
"ram": 4.426608744723135e-08, | |
"gpu": 1.538738948299378e-07, | |
"total": 2.7914220668670195e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7164806.869370063 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1236.578304, | |
"max_global_vram": 1373.110272, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.5114604806900026, | |
"mean": 0.007412470734637716, | |
"stdev": 0.0002981290766092088, | |
"p50": 0.0074906558990478515, | |
"p90": 0.007750924682617188, | |
"p95": 0.007812608051300048, | |
"p99": 0.007888044738769532, | |
"values": [ | |
0.00787401580810547, | |
0.007801087856292724, | |
0.007781951904296875, | |
0.007459936141967774, | |
0.0075194878578186035, | |
0.0077133760452270505, | |
0.007425727844238281, | |
0.007533440113067627, | |
0.007531487941741943, | |
0.0074707517623901366, | |
0.00754966402053833, | |
0.007587423801422119, | |
0.007546720027923584, | |
0.007525536060333252, | |
0.0076063041687011715, | |
0.007704671859741211, | |
0.007917856216430664, | |
0.007609024047851563, | |
0.00770911979675293, | |
0.007749184131622315, | |
0.00746284818649292, | |
0.0074906558990478515, | |
0.007750847816467285, | |
0.007566720008850098, | |
0.007457888126373291, | |
0.007412767887115478, | |
0.0075112318992614745, | |
0.007507936000823974, | |
0.007751232147216797, | |
0.007689472198486328, | |
0.007693727970123291, | |
0.007574463844299316, | |
0.007324384212493896, | |
0.007387968063354492, | |
0.00752569580078125, | |
0.007403808116912842, | |
0.007482272148132324, | |
0.007593215942382813, | |
0.007568863868713379, | |
0.007654528141021729, | |
0.00782476806640625, | |
0.0074787201881408695, | |
0.007166975975036621, | |
0.007088704109191895, | |
0.007343200206756592, | |
0.006879263877868652, | |
0.007006847858428955, | |
0.007582752227783203, | |
0.00766099214553833, | |
0.007820288181304931, | |
0.007513440132141113, | |
0.0072717761993408205, | |
0.007263519763946533, | |
0.007290143966674805, | |
0.007094592094421387, | |
0.00711894416809082, | |
0.007103968143463135, | |
0.007127552032470703, | |
0.007191328048706055, | |
0.007137375831604004, | |
0.007077727794647217, | |
0.007124512195587158, | |
0.007086143970489502, | |
0.006816864013671875, | |
0.0068169918060302735, | |
0.006809216022491455, | |
0.006815743923187256, | |
0.00671673583984375, | |
0.006804096221923828 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 134.9077838954699 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.610165854009459e-08, | |
"ram": 4.158834726651032e-08, | |
"gpu": 1.4732517653861857e-07, | |
"total": 2.650151823452235e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3773368.7223147256 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 69, | |
"total": 0.4771615991592408, | |
"mean": 0.00691538549506146, | |
"stdev": 0.0002445475072012491, | |
"p50": 0.006966271877288818, | |
"p90": 0.007197081661224365, | |
"p95": 0.0072609984397888185, | |
"p99": 0.007309762516021728, | |
"values": [ | |
0.00733900785446167, | |
0.007266335964202881, | |
0.007236608028411865, | |
0.00693452787399292, | |
0.006986720085144043, | |
0.007177216053009033, | |
0.006900735855102539, | |
0.007004159927368164, | |
0.006970367908477783, | |
0.006966271877288818, | |
0.007016448020935059, | |
0.007021567821502686, | |
0.007016448020935059, | |
0.007002111911773682, | |
0.00703385591506958, | |
0.007180319786071777, | |
0.007278592109680176, | |
0.0070984640121459965, | |
0.007171072006225586, | |
0.007186431884765625, | |
0.006948863983154297, | |
0.0069621758460998535, | |
0.007187456130981445, | |
0.007015423774719238, | |
0.006940671920776367, | |
0.006890495777130127, | |
0.006966271877288818, | |
0.006986783981323242, | |
0.007235583782196045, | |
0.007130112171173096, | |
0.007159808158874512, | |
0.0070563840866088865, | |
0.006816768169403077, | |
0.00687718391418457, | |
0.007018496036529541, | |
0.006866943836212158, | |
0.006936575889587402, | |
0.007066624164581299, | |
0.007002111911773682, | |
0.007107583999633789, | |
0.007296000003814697, | |
0.006949888229370117, | |
0.006688767910003662, | |
0.006654975891113281, | |
0.006838367938995361, | |
0.006473760128021241, | |
0.006586368083953857, | |
0.007085055828094483, | |
0.007094272136688232, | |
0.007252992153167725, | |
0.007020544052124023, | |
0.006821887969970703, | |
0.006833151817321777, | |
0.006853631973266602, | |
0.0066856322288513185, | |
0.0067123198509216305, | |
0.006673408031463623, | |
0.006723584175109864, | |
0.006780928134918213, | |
0.0067358717918396, | |
0.006662144184112549, | |
0.006712384223937988, | |
0.006667263984680176, | |
0.006425600051879882, | |
0.006421504020690918, | |
0.006406144142150879, | |
0.00642252779006958, | |
0.006323040008544922, | |
0.006400000095367431 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 144.60509840183718 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |