
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6e05e1b
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1068.138496, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.4902857608795166, | |
"mean": 0.006625483255128603, | |
"stdev": 0.0003728440166094234, | |
"p50": 0.006674031972885132, | |
"p90": 0.007103126525878907, | |
"p95": 0.00715381121635437, | |
"p99": 0.007603546986579894, | |
"values": [ | |
0.007729504108428955, | |
0.0071051521301269535, | |
0.007117728233337403, | |
0.007130496025085449, | |
0.006926432132720948, | |
0.006879039764404297, | |
0.007556960105895996, | |
0.007184095859527588, | |
0.007098400115966797, | |
0.007078303813934326, | |
0.007192927837371826, | |
0.007137504100799561, | |
0.007031583786010742, | |
0.006870656013488769, | |
0.006690624237060547, | |
0.0067727680206298825, | |
0.006815936088562012, | |
0.006931551933288574, | |
0.006933856010437012, | |
0.006796671867370606, | |
0.006906335830688477, | |
0.006832352161407471, | |
0.006709856033325195, | |
0.0068954238891601564, | |
0.006758463859558105, | |
0.00675705623626709, | |
0.006744287967681885, | |
0.0069707841873168945, | |
0.006945600032806396, | |
0.006854368209838867, | |
0.0067552318572998045, | |
0.006668223857879639, | |
0.006547679901123047, | |
0.006560319900512695, | |
0.006341055870056152, | |
0.006364223957061768, | |
0.006898303985595703, | |
0.006944608211517334, | |
0.007011551856994629, | |
0.006711264133453369, | |
0.006708159923553467, | |
0.006679840087890625, | |
0.006503712177276611, | |
0.0065289921760559085, | |
0.006226016044616699, | |
0.006220704078674317, | |
0.006266528129577636, | |
0.006241792201995849, | |
0.006475264072418213, | |
0.006241951942443848, | |
0.006198495864868164, | |
0.006278592109680176, | |
0.00621340799331665, | |
0.006182240009307861, | |
0.006229087829589843, | |
0.006481503963470459, | |
0.0065437121391296385, | |
0.006210432052612304, | |
0.006181375980377197, | |
0.006185376167297364, | |
0.006147039890289307, | |
0.006304160118103027, | |
0.006116896152496338, | |
0.006174560070037842, | |
0.00648419189453125, | |
0.006410336017608643, | |
0.006194655895233154, | |
0.006249375820159912, | |
0.006195903778076172, | |
0.006216896057128906, | |
0.00621014404296875, | |
0.006193664073944092, | |
0.006232992172241211, | |
0.006200575828552246 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 301.8647731773913 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.952372784967776e-08, | |
"ram": 4.336347154455274e-08, | |
"gpu": 1.4989641621333007e-07, | |
"total": 2.7278361560756056e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7331818.64880512 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1068.138496, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5170758085250854, | |
"mean": 0.006987510926014669, | |
"stdev": 0.00039577493010550097, | |
"p50": 0.007022624015808106, | |
"p90": 0.007508160066604615, | |
"p95": 0.007606665611267089, | |
"p99": 0.007895973410606383, | |
"values": [ | |
0.0077870402336120605, | |
0.0074930558204650876, | |
0.0074795842170715336, | |
0.007663072109222412, | |
0.007234687805175781, | |
0.007088863849639892, | |
0.007494272232055664, | |
0.007545631885528564, | |
0.008190496444702149, | |
0.007473631858825684, | |
0.007639904022216797, | |
0.007588768005371093, | |
0.007337600231170654, | |
0.007172704219818115, | |
0.007042943954467773, | |
0.007064159870147705, | |
0.007193632125854492, | |
0.007335008144378662, | |
0.007249824047088623, | |
0.007191999912261963, | |
0.007218560218811035, | |
0.007111743927001953, | |
0.007154016017913818, | |
0.00715388822555542, | |
0.0072772159576416015, | |
0.007119775772094727, | |
0.0072226881980896, | |
0.007430240154266358, | |
0.007219488143920898, | |
0.007106239795684814, | |
0.007104576110839844, | |
0.006846271991729737, | |
0.007124512195587158, | |
0.006609151840209961, | |
0.006639359951019287, | |
0.007121856212615967, | |
0.00721673583984375, | |
0.007516992092132568, | |
0.007514111995697022, | |
0.0073047041893005375, | |
0.007002304077148438, | |
0.00693932819366455, | |
0.00675212812423706, | |
0.006835807800292968, | |
0.006593376159667969, | |
0.00654041576385498, | |
0.006550623893737793, | |
0.006776927947998047, | |
0.006910079956054687, | |
0.006523647785186768, | |
0.006633567810058594, | |
0.006541632175445557, | |
0.006550496101379395, | |
0.006534207820892334, | |
0.006517856121063232, | |
0.006843488216400146, | |
0.006801119804382324, | |
0.006539167881011963, | |
0.006510272026062012, | |
0.006452799797058106, | |
0.006542367935180664, | |
0.00649571180343628, | |
0.006474783897399902, | |
0.006670720100402832, | |
0.006825727939605713, | |
0.00684006404876709, | |
0.006581984043121338, | |
0.006520319938659668, | |
0.006539423942565918, | |
0.0065342397689819335, | |
0.006547008037567139, | |
0.006754623889923096, | |
0.006565248012542725, | |
0.006555327892303467 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.1124774741999 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.04856310520047e-08, | |
"ram": 3.863713934404252e-08, | |
"gpu": 1.413977690018679e-07, | |
"total": 2.5052053939791505e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3991688.6751215514 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.9942138891220095, | |
"mean": 0.013619368344137114, | |
"stdev": 0.0007289529832102081, | |
"p50": 0.013633536338806153, | |
"p90": 0.014606541061401367, | |
"p95": 0.014796185493469238, | |
"p99": 0.015127347412109375, | |
"values": [ | |
0.01461350440979004, | |
0.01468825626373291, | |
0.014830592155456544, | |
0.01420902442932129, | |
0.014016511917114258, | |
0.015052800178527831, | |
0.014766079902648926, | |
0.015319040298461914, | |
0.014568448066711426, | |
0.014879743576049804, | |
0.014773247718811035, | |
0.014386176109313965, | |
0.014115839958190919, | |
0.013773823738098144, | |
0.013854720115661622, | |
0.014031871795654297, | |
0.014296064376831055, | |
0.01420902442932129, | |
0.01400115203857422, | |
0.01416806411743164, | |
0.014005248069763183, | |
0.013880319595336914, | |
0.014100480079650878, | |
0.014079999923706055, | |
0.013892607688903809, | |
0.01397657585144043, | |
0.01439641571044922, | |
0.014263296127319336, | |
0.014031871795654297, | |
0.013889535903930664, | |
0.0135731201171875, | |
0.013633536338806153, | |
0.013331456184387207, | |
0.012969984054565429, | |
0.01347379207611084, | |
0.014154751777648926, | |
0.014454784393310547, | |
0.014578687667846679, | |
0.014100480079650878, | |
0.013748224258422852, | |
0.01367347240447998, | |
0.013293567657470704, | |
0.013389823913574218, | |
0.012849151611328125, | |
0.012795904159545898, | |
0.012843008041381837, | |
0.013028351783752442, | |
0.013405183792114257, | |
0.012815360069274903, | |
0.012857343673706055, | |
0.012824576377868652, | |
0.012812288284301757, | |
0.01273036766052246, | |
0.01277337646484375, | |
0.013313023567199708, | |
0.013409279823303222, | |
0.012790783882141114, | |
0.012712960243225097, | |
0.012669952392578124, | |
0.012667903900146485, | |
0.01287065601348877, | |
0.012609536170959473, | |
0.01285529613494873, | |
0.01333350372314453, | |
0.01328435230255127, | |
0.012803071975708008, | |
0.012813311576843261, | |
0.012761088371276855, | |
0.01275494384765625, | |
0.012805120468139648, | |
0.01294438362121582, | |
0.012840959548950195, | |
0.012792832374572754 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 73.42484429026266 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |