
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a169f16
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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 792.408064, | |
"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.3714462890625, | |
"mean": 7.3714462890625, | |
"stdev": 0.0, | |
"p50": 7.3714462890625, | |
"p90": 7.3714462890625, | |
"p95": 7.3714462890625, | |
"p99": 7.3714462890625, | |
"values": [ | |
7.3714462890625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.820816770836337e-07, | |
"ram": 5.225588503785098e-07, | |
"gpu": 1.7038902519999743e-06, | |
"total": 3.2085307794621177e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1206.29248, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.4886214108467103, | |
"mean": 0.006429229090088292, | |
"stdev": 0.00028457030279527946, | |
"p50": 0.006305296182632446, | |
"p90": 0.00673033618927002, | |
"p95": 0.006938608169555664, | |
"p99": 0.00761463212966919, | |
"values": [ | |
0.007608960151672364, | |
0.007144320011138916, | |
0.006526912212371826, | |
0.006334112167358398, | |
0.00629747200012207, | |
0.006243680000305176, | |
0.006263904094696045, | |
0.006526432037353516, | |
0.006249760150909424, | |
0.006345183849334717, | |
0.006254496097564698, | |
0.006255040168762207, | |
0.006243072032928467, | |
0.006289984226226807, | |
0.006293375968933105, | |
0.006335231781005859, | |
0.006294144153594971, | |
0.006223328113555908, | |
0.00628329610824585, | |
0.006227583885192871, | |
0.006206816196441651, | |
0.0063834238052368165, | |
0.006237343788146972, | |
0.006233215808868408, | |
0.006233727931976319, | |
0.0062230401039123535, | |
0.006206592082977295, | |
0.006370719909667969, | |
0.006279327869415283, | |
0.00631820821762085, | |
0.006244768142700195, | |
0.006233312129974365, | |
0.0063489599227905275, | |
0.006379648208618164, | |
0.006305312156677246, | |
0.006236288070678711, | |
0.006592544078826904, | |
0.006525951862335205, | |
0.006580192089080811, | |
0.006603456020355224, | |
0.006305280208587646, | |
0.006477375984191894, | |
0.0066830401420593264, | |
0.007631648063659668, | |
0.006750336170196533, | |
0.0067103362083435055, | |
0.00655072021484375, | |
0.006496479988098144, | |
0.006630688190460205, | |
0.006609151840209961, | |
0.0065280961990356445, | |
0.006646687984466553, | |
0.006860320091247559, | |
0.006947103977203369, | |
0.006935776233673096, | |
0.00686953592300415, | |
0.00660364818572998, | |
0.006592415809631348, | |
0.006317599773406983, | |
0.006279744148254394, | |
0.006293536186218262, | |
0.006295392036437988, | |
0.0062557439804077145, | |
0.006294271945953369, | |
0.006227327823638916, | |
0.006240672111511231, | |
0.006217472076416016, | |
0.006310048103332519, | |
0.006274591922760009, | |
0.006283487796783447, | |
0.006316031932830811, | |
0.006186272144317627, | |
0.0062715840339660645, | |
0.0062008957862854, | |
0.006310719966888428, | |
0.006234240055084228 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 311.0792867971258 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.816421557474421e-08, | |
"ram": 4.27389593350565e-08, | |
"gpu": 1.5957797853947473e-07, | |
"total": 2.8048115344927547e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7130603.8762483075 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1224.429568, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.5123506231307985, | |
"mean": 0.006741455567510507, | |
"stdev": 0.0002965154381385701, | |
"p50": 0.0066185278892517095, | |
"p90": 0.007060559988021851, | |
"p95": 0.007316375851631165, | |
"p99": 0.007766144037246704, | |
"values": [ | |
0.007711616039276123, | |
0.007724287986755371, | |
0.006584832191467285, | |
0.006638912200927735, | |
0.0066548800468444825, | |
0.006505568027496338, | |
0.006530335903167725, | |
0.006618239879608154, | |
0.00675984001159668, | |
0.006516831874847412, | |
0.006533376216888428, | |
0.006536543846130371, | |
0.006563583850860596, | |
0.0064941120147705075, | |
0.006608895778656006, | |
0.006651040077209473, | |
0.006629055976867676, | |
0.00655353593826294, | |
0.00660975980758667, | |
0.006525407791137696, | |
0.006558400154113769, | |
0.0067001919746398925, | |
0.006501887798309326, | |
0.006484096050262451, | |
0.00651142406463623, | |
0.0065281281471252445, | |
0.006497920036315918, | |
0.006544032096862793, | |
0.0066481919288635255, | |
0.006594783782958984, | |
0.006574880123138427, | |
0.006559616088867188, | |
0.006626239776611328, | |
0.006680031776428222, | |
0.006824384212493897, | |
0.006856671810150147, | |
0.006904863834381104, | |
0.007115615844726563, | |
0.006931392192840577, | |
0.006887008190155029, | |
0.006587647914886475, | |
0.006891808032989502, | |
0.006731359958648681, | |
0.007891712188720703, | |
0.0068997440338134765, | |
0.0068438401222229005, | |
0.006980832099914551, | |
0.0070059518814086915, | |
0.006990752220153809, | |
0.006933599948883057, | |
0.00687062406539917, | |
0.00711516809463501, | |
0.00729807996749878, | |
0.007342847824096679, | |
0.007307551860809326, | |
0.007001567840576172, | |
0.006877056121826172, | |
0.00699180793762207, | |
0.006617663860321045, | |
0.006540639877319336, | |
0.006643743991851807, | |
0.00679804801940918, | |
0.00666537618637085, | |
0.006539904117584229, | |
0.006515647888183594, | |
0.0065166401863098146, | |
0.0065697598457336425, | |
0.006618815898895264, | |
0.006590015888214111, | |
0.00649561595916748, | |
0.006507872104644775, | |
0.006516479969024659, | |
0.0065179519653320315, | |
0.006613759994506836, | |
0.006537568092346191, | |
0.00650275182723999 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.33591796100515 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.437290524078985e-08, | |
"ram": 4.037419313816571e-08, | |
"gpu": 1.4987739722975578e-07, | |
"total": 2.646244956087113e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3778939.654470448 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 76, | |
"total": 0.48191430330276497, | |
"mean": 0.0063409776750363795, | |
"stdev": 0.00027060531767293715, | |
"p50": 0.006237119913101196, | |
"p90": 0.006652415990829467, | |
"p95": 0.006822911977767944, | |
"p99": 0.007317247986793518, | |
"values": [ | |
0.007165952205657959, | |
0.007293951988220215, | |
0.006202367782592774, | |
0.006253568172454834, | |
0.006265823841094971, | |
0.006124608039855957, | |
0.006120448112487793, | |
0.006223711967468262, | |
0.006371327877044678, | |
0.00613369607925415, | |
0.006132736206054688, | |
0.006155263900756836, | |
0.006178751945495605, | |
0.006104063987731933, | |
0.006217728137969971, | |
0.006251520156860352, | |
0.0062341117858886715, | |
0.006170623779296875, | |
0.0062341117858886715, | |
0.00611027193069458, | |
0.0061634559631347655, | |
0.006319104194641113, | |
0.00612559986114502, | |
0.006105088233947754, | |
0.006112256050109863, | |
0.006151167869567871, | |
0.006120607852935791, | |
0.0061634559631347655, | |
0.0062679038047790524, | |
0.00621670389175415, | |
0.006184832096099853, | |
0.00617574405670166, | |
0.006242303848266601, | |
0.006278143882751465, | |
0.00643782377243042, | |
0.006458432197570801, | |
0.006471680164337158, | |
0.006712192058563232, | |
0.006524928092956543, | |
0.006494016170501709, | |
0.00620851182937622, | |
0.006449120044708252, | |
0.006325247764587402, | |
0.007387135982513428, | |
0.0065064959526062015, | |
0.006450175762176514, | |
0.006574111938476563, | |
0.006599679946899414, | |
0.006543360233306885, | |
0.0065279359817504885, | |
0.006474751949310303, | |
0.0067051520347595215, | |
0.006814720153808594, | |
0.006817791938781738, | |
0.006838272094726563, | |
0.006589439868927002, | |
0.00648089599609375, | |
0.00658739185333252, | |
0.0062401599884033205, | |
0.006160384178161621, | |
0.006262784004211426, | |
0.006404096126556396, | |
0.0062679038047790524, | |
0.006151167869567871, | |
0.006136832237243653, | |
0.006116479873657227, | |
0.00618393611907959, | |
0.00624012804031372, | |
0.006205440044403076, | |
0.006112256050109863, | |
0.006114336013793945, | |
0.006131711959838867, | |
0.0061296639442443845, | |
0.006229087829589843, | |
0.006154240131378174, | |
0.006123424053192139 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 157.70438743805587 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |