
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d74c2c3
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_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.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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"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": 720.502784, | |
"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.2204501953125, | |
"mean": 7.2204501953125, | |
"stdev": 0.0, | |
"p50": 7.2204501953125, | |
"p90": 7.2204501953125, | |
"p95": 7.2204501953125, | |
"p99": 7.2204501953125, | |
"values": [ | |
7.2204501953125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.890503353542753e-07, | |
"ram": 5.264010844765229e-07, | |
"gpu": 1.8575014859999357e-06, | |
"total": 3.372952905830734e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1044.606976, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.4942224326133728, | |
"mean": 0.006589632434844971, | |
"stdev": 0.000309594448163616, | |
"p50": 0.006681439876556397, | |
"p90": 0.006953695869445801, | |
"p95": 0.0070685215950012205, | |
"p99": 0.007147614011764527, | |
"values": [ | |
0.007135807991027832, | |
0.006891232013702392, | |
0.0068167362213134765, | |
0.006970047950744629, | |
0.00706438398361206, | |
0.006840095996856689, | |
0.006699264049530029, | |
0.0069023361206054686, | |
0.0068940801620483395, | |
0.006677504062652588, | |
0.0069172801971435546, | |
0.0068978238105773925, | |
0.0069723200798034665, | |
0.006754432201385498, | |
0.007181215763092041, | |
0.006804287910461426, | |
0.006839231967926025, | |
0.0065864319801330565, | |
0.0067207679748535155, | |
0.00691593599319458, | |
0.006912703990936279, | |
0.006771615982055664, | |
0.006687424182891846, | |
0.007098207950592041, | |
0.007078176021575928, | |
0.006556287765502929, | |
0.006723904132843018, | |
0.006915135860443115, | |
0.006717919826507568, | |
0.006716928005218506, | |
0.006684800148010254, | |
0.006860159873962403, | |
0.006937376022338867, | |
0.00696457576751709, | |
0.006774144172668457, | |
0.006710559844970703, | |
0.006895584106445312, | |
0.006604320049285889, | |
0.006463200092315674, | |
0.006694431781768799, | |
0.006435328006744385, | |
0.006291327953338623, | |
0.006681439876556397, | |
0.0068050241470336914, | |
0.0067422080039978025, | |
0.006535871982574463, | |
0.00635590410232544, | |
0.006323359966278076, | |
0.006381184101104736, | |
0.006352320194244385, | |
0.006132575988769531, | |
0.006111040115356446, | |
0.0061038718223571774, | |
0.0063292160034179685, | |
0.006322463989257812, | |
0.006315872192382812, | |
0.006318687915802002, | |
0.006359424114227295, | |
0.006336639881134034, | |
0.006352896213531494, | |
0.006312128067016602, | |
0.006268223762512207, | |
0.006101344108581543, | |
0.0062689599990844724, | |
0.006112639904022217, | |
0.006306303977966309, | |
0.006327744007110596, | |
0.0061205439567565915, | |
0.00609715223312378, | |
0.006601920127868652, | |
0.006380832195281983, | |
0.006124383926391601, | |
0.006122111797332764, | |
0.006115647792816162, | |
0.006127168178558349 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 303.5070650411858 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.69145442723884e-08, | |
"ram": 4.205444964912197e-08, | |
"gpu": 1.6683996031169033e-07, | |
"total": 2.858089542332007e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6997681.389534548 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1059.979264, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.5142115845680238, | |
"mean": 0.006856154460906983, | |
"stdev": 0.00032976884691676277, | |
"p50": 0.006952479839324951, | |
"p90": 0.007235347270965576, | |
"p95": 0.007399580860137939, | |
"p99": 0.007449852056503296, | |
"values": [ | |
0.007152383804321289, | |
0.007123583793640136, | |
0.0070886721611022946, | |
0.0074191360473632815, | |
0.00713862419128418, | |
0.00701145601272583, | |
0.007084127902984619, | |
0.007239264011383056, | |
0.007024543762207031, | |
0.0070479998588562015, | |
0.007080927848815918, | |
0.0071577920913696285, | |
0.006982624053955078, | |
0.007428991794586182, | |
0.00745904016494751, | |
0.0072137279510498045, | |
0.006994080066680908, | |
0.006972000122070312, | |
0.0070266880989074704, | |
0.007391200065612793, | |
0.007167967796325683, | |
0.0070078721046447755, | |
0.007201344013214111, | |
0.007387584209442139, | |
0.007111360073089599, | |
0.006952479839324951, | |
0.007015615940093994, | |
0.007028223991394043, | |
0.0069831361770629884, | |
0.0069920320510864255, | |
0.006985280036926269, | |
0.00726854419708252, | |
0.007229472160339355, | |
0.007154880046844482, | |
0.0070997757911682126, | |
0.006940159797668457, | |
0.0068420801162719725, | |
0.006781536102294922, | |
0.00694601583480835, | |
0.006724512100219727, | |
0.006661439895629883, | |
0.007020127773284912, | |
0.006868800163269043, | |
0.007225535869598389, | |
0.006638112068176269, | |
0.006572864055633545, | |
0.006574111938476563, | |
0.006610112190246582, | |
0.006561984062194824, | |
0.006498367786407471, | |
0.006487296104431152, | |
0.006356160163879395, | |
0.006403615951538086, | |
0.0065493760108947755, | |
0.006558303833007813, | |
0.00656924819946289, | |
0.006579520225524903, | |
0.00661571216583252, | |
0.006640672206878662, | |
0.006614240169525146, | |
0.006457119941711426, | |
0.006375711917877197, | |
0.006379456043243408, | |
0.006370751857757568, | |
0.00632700777053833, | |
0.006670048236846924, | |
0.006573952198028564, | |
0.006356863975524902, | |
0.007446623802185058, | |
0.006645631790161133, | |
0.006779647827148437, | |
0.006356031894683838, | |
0.006350912094116211, | |
0.006343935966491699, | |
0.0063155522346496585 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 145.85435694336917 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.606654596760109e-08, | |
"ram": 4.1217699047503936e-08, | |
"gpu": 1.6280417804728187e-07, | |
"total": 2.8008842306238674e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3570301.0823023575 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 75, | |
"total": 0.47977888059616086, | |
"mean": 0.006397051741282145, | |
"stdev": 0.00026582278055326013, | |
"p50": 0.006461440086364746, | |
"p90": 0.006716825485229492, | |
"p95": 0.006870937538146972, | |
"p99": 0.006892240810394287, | |
"values": [ | |
0.006643712043762207, | |
0.006619135856628418, | |
0.00659660816192627, | |
0.006880256175994873, | |
0.006652927875518798, | |
0.006493184089660644, | |
0.006562816143035889, | |
0.006709248065948486, | |
0.006533120155334473, | |
0.0065443840026855465, | |
0.00658022403717041, | |
0.0066406397819519045, | |
0.006498303890228272, | |
0.006586368083953857, | |
0.00690886402130127, | |
0.0067276802062988285, | |
0.0064849920272827145, | |
0.006463488101959228, | |
0.006515711784362793, | |
0.006866943836212158, | |
0.006624256134033203, | |
0.0065279359817504885, | |
0.006685696125030518, | |
0.00688640022277832, | |
0.0065781760215759275, | |
0.006461440086364746, | |
0.006508575916290283, | |
0.006540287971496582, | |
0.0064767999649047855, | |
0.006496255874633789, | |
0.006491136074066162, | |
0.006751232147216797, | |
0.006714367866516113, | |
0.006612991809844971, | |
0.00658022403717041, | |
0.006425663948059082, | |
0.006375423908233643, | |
0.006344704151153564, | |
0.006448192119598389, | |
0.006333439826965332, | |
0.0062259202003479, | |
0.006545407772064209, | |
0.006421504020690918, | |
0.006718463897705078, | |
0.006252543926239014, | |
0.00619212818145752, | |
0.006195199966430664, | |
0.006227968215942382, | |
0.00618393611907959, | |
0.006121471881866455, | |
0.0060928001403808595, | |
0.005985280036926269, | |
0.006023168087005615, | |
0.006169600009918213, | |
0.006174719810485839, | |
0.0061634559631347655, | |
0.006199295997619629, | |
0.0062341117858886715, | |
0.006252543926239014, | |
0.00623308801651001, | |
0.006074368000030517, | |
0.005991424083709717, | |
0.006005760192871094, | |
0.0059985918998718265, | |
0.005954559803009033, | |
0.006268928050994873, | |
0.00618393611907959, | |
0.005972000122070312, | |
0.006883327960968018, | |
0.006220799922943115, | |
0.00638259220123291, | |
0.005984255790710449, | |
0.0059658241271972655, | |
0.005964799880981446, | |
0.005943295955657959 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 156.32201214610976 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |