
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b4e91bd
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.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 719.925248, | |
"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.16371435546875, | |
"mean": 7.16371435546875, | |
"stdev": 0.0, | |
"p50": 7.16371435546875, | |
"p90": 7.16371435546875, | |
"p95": 7.16371435546875, | |
"p99": 7.16371435546875, | |
"values": [ | |
7.16371435546875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0619726445939806e-06, | |
"ram": 5.476006592510885e-07, | |
"gpu": 1.7858347620002164e-06, | |
"total": 3.3954080658452856e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1032.810496, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.4923472647666932, | |
"mean": 0.006232243857806242, | |
"stdev": 0.0002054588542850979, | |
"p50": 0.006148863792419434, | |
"p90": 0.0064456767082214355, | |
"p95": 0.0065192545890808105, | |
"p99": 0.007206677923202514, | |
"values": [ | |
0.0071877121925354006, | |
0.007273920059204101, | |
0.006209055900573731, | |
0.006155104160308838, | |
0.006144480228424072, | |
0.00641648006439209, | |
0.006329984188079834, | |
0.0061178879737854, | |
0.006346240043640137, | |
0.006333631992340088, | |
0.006143104076385498, | |
0.006158048152923584, | |
0.006123072147369385, | |
0.006157375812530517, | |
0.006177087783813476, | |
0.006131648063659668, | |
0.0061567678451538085, | |
0.006066527843475342, | |
0.0061010241508483885, | |
0.0060927681922912594, | |
0.006159264087677002, | |
0.006471648216247559, | |
0.006319615840911865, | |
0.006238399982452392, | |
0.006379744052886963, | |
0.006366687774658203, | |
0.006121344089508056, | |
0.00608073616027832, | |
0.006098944187164307, | |
0.006130943775177002, | |
0.006132256031036377, | |
0.00614409589767456, | |
0.006292287826538086, | |
0.006204288005828857, | |
0.0061060161590576175, | |
0.006139264106750488, | |
0.006195871829986572, | |
0.00617033576965332, | |
0.0061160001754760746, | |
0.006083744049072266, | |
0.006096127986907959, | |
0.006090464115142823, | |
0.006128096103668213, | |
0.00613424015045166, | |
0.006114880084991455, | |
0.006111936092376709, | |
0.006093311786651612, | |
0.00611414384841919, | |
0.006122176170349121, | |
0.006402304172515869, | |
0.0065166401863098146, | |
0.006477280139923096, | |
0.0064167361259460445, | |
0.006460832118988037, | |
0.0063638720512390135, | |
0.006581215858459472, | |
0.0061262078285217285, | |
0.006441887855529785, | |
0.0060974078178405765, | |
0.0060850238800048825, | |
0.006059904098510743, | |
0.006210495948791504, | |
0.006117248058319092, | |
0.006542784214019775, | |
0.006222335815429687, | |
0.006144415855407715, | |
0.0061082239151000976, | |
0.006126368045806884, | |
0.006197152137756348, | |
0.0063235840797424316, | |
0.006137343883514404, | |
0.006316703796386719, | |
0.006172319889068603, | |
0.006148863792419434, | |
0.0062056961059570315, | |
0.0061272640228271485, | |
0.006161215782165527, | |
0.006147615909576416, | |
0.006129536151885986 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 320.9117046174125 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.93339819819839e-08, | |
"ram": 4.336397548826009e-08, | |
"gpu": 1.7581680731999725e-07, | |
"total": 2.9851476479024126e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6699836.1082921615 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.45312, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.5176668162345884, | |
"mean": 0.0065527445092985895, | |
"stdev": 0.00015994041010233167, | |
"p50": 0.006481823921203614, | |
"p90": 0.006767289638519287, | |
"p95": 0.006817919969558716, | |
"p99": 0.007003811864852905, | |
"values": [ | |
0.0072770237922668455, | |
0.006576159954071045, | |
0.006464479923248291, | |
0.006466591835021972, | |
0.006811295986175537, | |
0.006697535991668701, | |
0.006523647785186768, | |
0.0064479680061340335, | |
0.0067677760124206544, | |
0.006453152179718018, | |
0.006450016021728516, | |
0.006467391967773437, | |
0.006481823921203614, | |
0.006407616138458252, | |
0.006436736106872559, | |
0.006435328006744385, | |
0.00646281623840332, | |
0.0064448962211608885, | |
0.006452191829681397, | |
0.006448224067687989, | |
0.006490208148956299, | |
0.006789663791656494, | |
0.006653215885162354, | |
0.0066975998878479005, | |
0.006638815879821777, | |
0.0066547198295593265, | |
0.006425759792327881, | |
0.006425504207611084, | |
0.006483007907867431, | |
0.006417856216430664, | |
0.006425280094146729, | |
0.006587647914886475, | |
0.0064917440414428715, | |
0.006490528106689453, | |
0.006557343959808349, | |
0.006423552036285401, | |
0.0064932479858398435, | |
0.006417312145233154, | |
0.006461984157562256, | |
0.006461023807525635, | |
0.006429408073425293, | |
0.006443103790283203, | |
0.006387199878692627, | |
0.006405375957489014, | |
0.006411200046539307, | |
0.006452864170074463, | |
0.006465536117553711, | |
0.006550943851470948, | |
0.006926752090454101, | |
0.006878176212310791, | |
0.006877535820007324, | |
0.006734015941619873, | |
0.0067051520347595215, | |
0.006767168045043946, | |
0.006756256103515625, | |
0.006425600051879882, | |
0.006474688053131104, | |
0.006661056041717529, | |
0.00644595193862915, | |
0.006415071964263916, | |
0.006603487968444824, | |
0.006336544036865234, | |
0.006711520195007324, | |
0.006784832000732422, | |
0.006478367805480957, | |
0.006434016227722168, | |
0.006539616107940674, | |
0.006423776149749756, | |
0.006711935997009278, | |
0.006709504127502442, | |
0.006433087825775147, | |
0.006659840106964111, | |
0.006470848083496094, | |
0.006566624164581299, | |
0.006536223888397217, | |
0.0064947838783264164, | |
0.006733183860778809, | |
0.006514431953430176, | |
0.006452447891235351 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 152.60781167050885 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.708251365908871e-08, | |
"ram": 4.2153072645989416e-08, | |
"gpu": 1.4391663560105855e-07, | |
"total": 2.6315222190613666e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3800081.917441261 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.4866684489250184, | |
"mean": 0.006160360112974916, | |
"stdev": 0.00014575020488829377, | |
"p50": 0.006093823909759521, | |
"p90": 0.006370713710784912, | |
"p95": 0.006423654174804687, | |
"p99": 0.006578155651092529, | |
"values": [ | |
0.00674508810043335, | |
0.006180863857269287, | |
0.006081535816192627, | |
0.006087679862976075, | |
0.0064204797744750975, | |
0.006311935901641846, | |
0.006145023822784424, | |
0.006069248199462891, | |
0.006372352123260498, | |
0.006061056137084961, | |
0.006069248199462891, | |
0.006088704109191895, | |
0.006064127922058105, | |
0.0060292801856994625, | |
0.006047743797302246, | |
0.006055935859680176, | |
0.006055935859680176, | |
0.0060702719688415525, | |
0.006073344230651856, | |
0.006057983875274659, | |
0.006093823909759521, | |
0.006370304107666015, | |
0.006265888214111328, | |
0.006301695823669433, | |
0.006247424125671387, | |
0.006232063770294189, | |
0.006048768043518066, | |
0.006046720027923584, | |
0.006103040218353272, | |
0.006041600227355957, | |
0.006038527965545654, | |
0.006165472030639649, | |
0.006108160018920898, | |
0.006113279819488526, | |
0.006176767826080322, | |
0.006047743797302246, | |
0.006110208034515381, | |
0.0060293121337890625, | |
0.006071296215057373, | |
0.006076416015625, | |
0.006052896022796631, | |
0.006067200183868408, | |
0.006009856224060059, | |
0.00602726411819458, | |
0.006034431934356689, | |
0.006042623996734619, | |
0.00608358383178711, | |
0.006171648025512695, | |
0.00653107213973999, | |
0.006452223777770996, | |
0.006478847980499268, | |
0.006346752166748047, | |
0.006285312175750732, | |
0.006378496170043945, | |
0.00636518383026123, | |
0.006047743797302246, | |
0.006069248199462891, | |
0.006281216144561768, | |
0.006067200183868408, | |
0.006041600227355957, | |
0.00621670389175415, | |
0.005958655834197998, | |
0.0061972479820251464, | |
0.006373407840728759, | |
0.006097919940948486, | |
0.006044640064239502, | |
0.00615123176574707, | |
0.006013984203338623, | |
0.006311935901641846, | |
0.006319104194641113, | |
0.006055935859680176, | |
0.006253568172454834, | |
0.0060928001403808595, | |
0.006186048030853272, | |
0.006157311916351318, | |
0.006115327835083008, | |
0.006340608119964599, | |
0.006103040218353272, | |
0.00606822395324707 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 162.32817264916147 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |