
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
51316c0
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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.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": 789.774336, | |
"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.43562158203125, | |
"mean": 7.43562158203125, | |
"stdev": 0.0, | |
"p50": 7.43562158203125, | |
"p90": 7.43562158203125, | |
"p95": 7.43562158203125, | |
"p99": 7.43562158203125, | |
"values": [ | |
7.43562158203125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0024422229169735e-06, | |
"ram": 5.335662141533507e-07, | |
"gpu": 1.722223599999852e-06, | |
"total": 3.2582320370701763e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1194.65984, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4887714557647706, | |
"mean": 0.006788492441177369, | |
"stdev": 0.00030645554735293085, | |
"p50": 0.0068859999179840085, | |
"p90": 0.00712969913482666, | |
"p95": 0.007196510362625122, | |
"p99": 0.007378080158233644, | |
"values": [ | |
0.007490975856781006, | |
0.0072492799758911135, | |
0.007196703910827637, | |
0.007136415958404541, | |
0.007024159908294678, | |
0.006826560020446778, | |
0.006934912204742432, | |
0.007196352005004882, | |
0.007096320152282715, | |
0.006931680202484131, | |
0.007139999866485596, | |
0.007073247909545898, | |
0.007061471939086914, | |
0.0069810237884521485, | |
0.007044576168060303, | |
0.006802080154418945, | |
0.006888415813446045, | |
0.006923711776733398, | |
0.006917952060699463, | |
0.007102943897247314, | |
0.0070704960823059085, | |
0.006983871936798096, | |
0.006995903968811035, | |
0.006974400043487549, | |
0.006992640018463135, | |
0.006830304145812988, | |
0.006935200214385986, | |
0.007129983901977539, | |
0.0069374718666076664, | |
0.006912352085113526, | |
0.006910751819610596, | |
0.007091328144073487, | |
0.00712713623046875, | |
0.007100704193115234, | |
0.007002272129058838, | |
0.006784832000732422, | |
0.006883584022521973, | |
0.006779967784881592, | |
0.006693600177764892, | |
0.00667523193359375, | |
0.006430848121643067, | |
0.00651148796081543, | |
0.0070722241401672365, | |
0.00711030387878418, | |
0.007331967830657959, | |
0.006922592163085937, | |
0.006677152156829834, | |
0.00658784008026123, | |
0.006608128070831299, | |
0.006597951889038086, | |
0.0063621439933776855, | |
0.006387775897979737, | |
0.006382719993591308, | |
0.006688864231109619, | |
0.0065556797981262205, | |
0.0065699200630187984, | |
0.006370783805847168, | |
0.006361631870269775, | |
0.006380447864532471, | |
0.006386720180511475, | |
0.006352928161621094, | |
0.006386623859405517, | |
0.0063853120803833005, | |
0.006425568103790283, | |
0.006342559814453125, | |
0.006392799854278565, | |
0.006440544128417968, | |
0.006383711814880371, | |
0.006362239837646485, | |
0.00638156795501709, | |
0.006429696083068847, | |
0.006359903812408447 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 294.6162225752037 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.989295937267226e-08, | |
"ram": 4.36257886030588e-08, | |
"gpu": 1.5137968859060415e-07, | |
"total": 2.748984365663352e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7275414.240187516 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.067264, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5115607976913452, | |
"mean": 0.007105011079046462, | |
"stdev": 0.000318418585806807, | |
"p50": 0.007229455947875977, | |
"p90": 0.007444086456298828, | |
"p95": 0.007468423819541931, | |
"p99": 0.007578266258239747, | |
"values": [ | |
0.007613664150238037, | |
0.007563807964324951, | |
0.007444096088409424, | |
0.007466335773468017, | |
0.00719920015335083, | |
0.007287903785705567, | |
0.007357247829437256, | |
0.007412543773651123, | |
0.007465407848358154, | |
0.007398464202880859, | |
0.007352479934692383, | |
0.007410592079162598, | |
0.0073333439826965335, | |
0.007464128017425537, | |
0.007321087837219238, | |
0.0071426877975463866, | |
0.007319327831268311, | |
0.007245247840881348, | |
0.007402495861053467, | |
0.007431968212127686, | |
0.007410463809967041, | |
0.007376448154449463, | |
0.007413248062133789, | |
0.007346879959106445, | |
0.007248735904693603, | |
0.0072754878997802735, | |
0.007366047859191894, | |
0.007213664054870605, | |
0.007288127899169922, | |
0.0074268479347229, | |
0.007381599903106689, | |
0.007443999767303467, | |
0.007427008152008057, | |
0.0072979841232299805, | |
0.007470975875854493, | |
0.007294335842132568, | |
0.007167456150054932, | |
0.006878176212310791, | |
0.007209824085235596, | |
0.0067656002044677735, | |
0.006716288089752197, | |
0.0068187518119812015, | |
0.00738592004776001, | |
0.007534016132354737, | |
0.007383743762969971, | |
0.007030303955078125, | |
0.006892831802368164, | |
0.007028223991394043, | |
0.006895936012268066, | |
0.006940127849578858, | |
0.006692895889282227, | |
0.006697472095489502, | |
0.006692736148834228, | |
0.006924799919128418, | |
0.006861055850982666, | |
0.006802303791046143, | |
0.006698527812957764, | |
0.00669379186630249, | |
0.006662015914916992, | |
0.006665279865264892, | |
0.006781824111938476, | |
0.006675136089324951, | |
0.006677567958831787, | |
0.006686272144317627, | |
0.0066774082183837895, | |
0.006659039974212647, | |
0.006691391944885254, | |
0.006687359809875488, | |
0.00665715217590332, | |
0.006651167869567871, | |
0.006683616161346435, | |
0.006680895805358886 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 140.74573408465486 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.342449095674178e-08, | |
"ram": 4.020313366385315e-08, | |
"gpu": 1.4153008989657217e-07, | |
"total": 2.551577145171673e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3919144.6823087097 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.47818937635421743, | |
"mean": 0.006641519116030799, | |
"stdev": 0.00026078200912734714, | |
"p50": 0.006733824014663697, | |
"p90": 0.006920499229431152, | |
"p95": 0.00695787501335144, | |
"p99": 0.0070389247846603395, | |
"values": [ | |
0.007078911781311035, | |
0.0070225920677185055, | |
0.0069212160110473635, | |
0.006956031799316406, | |
0.006713344097137451, | |
0.006780928134918213, | |
0.006822912216186523, | |
0.006896639823913574, | |
0.00695091199874878, | |
0.006859744071960449, | |
0.00683619213104248, | |
0.0068884482383728025, | |
0.006789120197296142, | |
0.006945792198181152, | |
0.006809599876403808, | |
0.006659071922302246, | |
0.0068055038452148435, | |
0.006747136116027832, | |
0.006881279945373535, | |
0.006910975933074951, | |
0.006897664070129395, | |
0.006863872051239014, | |
0.00689356803894043, | |
0.00683622407913208, | |
0.006767615795135498, | |
0.006762495994567871, | |
0.006834176063537598, | |
0.00672051191329956, | |
0.00677785587310791, | |
0.006894591808319092, | |
0.006873087882995605, | |
0.006914048194885254, | |
0.006897664070129395, | |
0.006789120197296142, | |
0.006960127830505371, | |
0.00678604793548584, | |
0.006691840171813965, | |
0.006462463855743408, | |
0.006689792156219483, | |
0.00637440013885498, | |
0.006322175979614258, | |
0.006376383781433105, | |
0.006904831886291504, | |
0.006999040126800537, | |
0.006871039867401123, | |
0.00662937593460083, | |
0.006495232105255127, | |
0.0066119680404663084, | |
0.006503424167633057, | |
0.0065372161865234375, | |
0.006296576023101807, | |
0.006300672054290772, | |
0.006303743839263916, | |
0.006518784046173095, | |
0.006466559886932373, | |
0.006407167911529541, | |
0.006306816101074219, | |
0.006307839870452881, | |
0.0062679038047790524, | |
0.006270976066589356, | |
0.00639686393737793, | |
0.00628326416015625, | |
0.0062566399574279785, | |
0.006295551776885986, | |
0.006292479991912842, | |
0.006277120113372803, | |
0.0062975997924804685, | |
0.006302720069885254, | |
0.006273024082183838, | |
0.0062576642036437985, | |
0.006298624038696289, | |
0.006296576023101807 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.5679623184815 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |