
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2f59b6d
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": {}, | |
"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.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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1038.569472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.49237606382370014, | |
"mean": 0.006394494335372728, | |
"stdev": 0.0006390265657928551, | |
"p50": 0.006159711837768555, | |
"p90": 0.006647193717956543, | |
"p95": 0.00716785297393799, | |
"p99": 0.009183903999328604, | |
"values": [ | |
0.010716671943664552, | |
0.008699872016906739, | |
0.0070871682167053226, | |
0.007000991821289063, | |
0.0076447358131408695, | |
0.00627023983001709, | |
0.006189087867736817, | |
0.006175007820129395, | |
0.006159711837768555, | |
0.006130464076995849, | |
0.006169023990631103, | |
0.006331776142120361, | |
0.006432096004486084, | |
0.006143455982208252, | |
0.0065567679405212406, | |
0.006459712028503418, | |
0.006422336101531982, | |
0.006393439769744873, | |
0.006700032234191895, | |
0.0064858880043029785, | |
0.00644374418258667, | |
0.006458144187927246, | |
0.0061478400230407714, | |
0.006101791858673096, | |
0.006109600067138672, | |
0.00617795181274414, | |
0.006473599910736084, | |
0.006130464076995849, | |
0.006114175796508789, | |
0.006101535797119141, | |
0.006124512195587158, | |
0.006371359825134277, | |
0.006571807861328125, | |
0.006820256233215332, | |
0.007490592002868652, | |
0.006537280082702637, | |
0.00643552017211914, | |
0.0066119680404663084, | |
0.006468959808349609, | |
0.0060356478691101076, | |
0.006013216018676758, | |
0.006112895965576172, | |
0.006136127948760986, | |
0.006119135856628418, | |
0.006118368148803711, | |
0.006122879981994629, | |
0.006232448101043701, | |
0.006084735870361328, | |
0.006111040115356446, | |
0.006150815963745117, | |
0.006128416061401367, | |
0.0061279358863830565, | |
0.006482592105865478, | |
0.006417727947235107, | |
0.006510303974151611, | |
0.006285791873931885, | |
0.006280447959899902, | |
0.006429728031158447, | |
0.006429376125335694, | |
0.006109312057495118, | |
0.006135072231292725, | |
0.006080160140991211, | |
0.006101823806762695, | |
0.0061049280166625974, | |
0.006150784015655518, | |
0.006135263919830322, | |
0.006108543872833252, | |
0.006093088150024414, | |
0.006085696220397949, | |
0.006113056182861328, | |
0.0061320638656616215, | |
0.006268576145172119, | |
0.006108799934387207, | |
0.006108448028564453, | |
0.006118336200714111, | |
0.006091807842254639, | |
0.006141088008880615 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 312.7690627445715 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.80757178950031e-08, | |
"ram": 4.268807817683152e-08, | |
"gpu": 1.501901786315798e-07, | |
"total": 2.709539747034144e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7381327.408794041 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1038.569472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.5153516173362731, | |
"mean": 0.006692878147224326, | |
"stdev": 0.000452046519818447, | |
"p50": 0.0065558719635009765, | |
"p90": 0.007058835124969482, | |
"p95": 0.0073153406143188476, | |
"p99": 0.00805302270889281, | |
"values": [ | |
0.009865568161010743, | |
0.007480639934539795, | |
0.007417952060699463, | |
0.00730790376663208, | |
0.006880127906799317, | |
0.006872032165527344, | |
0.0064152321815490725, | |
0.00643833589553833, | |
0.006512479782104492, | |
0.0064943041801452635, | |
0.006488831996917724, | |
0.006881696224212646, | |
0.006836575984954834, | |
0.00662992000579834, | |
0.006820256233215332, | |
0.006723296165466308, | |
0.00678550386428833, | |
0.006741600036621094, | |
0.007041823863983154, | |
0.006802815914154053, | |
0.006754784107208252, | |
0.0070843520164489745, | |
0.006475327968597412, | |
0.006458144187927246, | |
0.0065558719635009765, | |
0.006713344097137451, | |
0.006791232109069824, | |
0.006439040184020996, | |
0.00645356798171997, | |
0.006783552169799804, | |
0.006443776130676269, | |
0.007345088005065918, | |
0.007230912208557129, | |
0.007149055957794189, | |
0.006927775859832764, | |
0.006775680065155029, | |
0.006780640125274658, | |
0.007004096031188965, | |
0.006775296211242675, | |
0.0063818879127502445, | |
0.006396192073822022, | |
0.006439743995666504, | |
0.0064160962104797365, | |
0.006393184185028076, | |
0.006389215946197509, | |
0.006583136081695556, | |
0.006459231853485107, | |
0.006436543941497803, | |
0.006421184062957764, | |
0.006421152114868164, | |
0.006522624015808105, | |
0.006428736209869385, | |
0.006820831775665283, | |
0.0069209918975830075, | |
0.00663651180267334, | |
0.0066743998527526854, | |
0.006731359958648681, | |
0.006712063789367676, | |
0.0064254717826843265, | |
0.00639737606048584, | |
0.006444320201873779, | |
0.006581376075744629, | |
0.006560480117797852, | |
0.006495007991790772, | |
0.006422304153442383, | |
0.006448031902313233, | |
0.00644220781326294, | |
0.006454495906829834, | |
0.006429664134979248, | |
0.006409152030944824, | |
0.006556416034698486, | |
0.006423871994018554, | |
0.006428959846496582, | |
0.006436607837677002, | |
0.006460351943969727, | |
0.0064397120475769044, | |
0.006532288074493408 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 149.41255137219562 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.207198707581676e-08, | |
"ram": 3.940509380086823e-08, | |
"gpu": 1.394689841785396e-07, | |
"total": 2.5094606505522467e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3984920.025663419 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.48427503967285157, | |
"mean": 0.0062892862295175515, | |
"stdev": 0.00040772727187516093, | |
"p50": 0.006170623779296875, | |
"p90": 0.006633267211914063, | |
"p95": 0.00679116792678833, | |
"p99": 0.007472414684295643, | |
"values": [ | |
0.009162752151489258, | |
0.006938623905181885, | |
0.00684441614151001, | |
0.00677785587310791, | |
0.006475776195526123, | |
0.0064880638122558594, | |
0.006037504196166992, | |
0.006052864074707031, | |
0.006130688190460205, | |
0.006102015972137451, | |
0.006103040218353272, | |
0.0064849920272827145, | |
0.00643993616104126, | |
0.006239232063293457, | |
0.006419456005096436, | |
0.006326272010803223, | |
0.006375423908233643, | |
0.0063498239517211915, | |
0.00657203197479248, | |
0.006407167911529541, | |
0.006360064029693604, | |
0.0066713600158691405, | |
0.0060835199356079105, | |
0.006079487800598145, | |
0.006173696041107178, | |
0.0063211522102355954, | |
0.006395904064178467, | |
0.006044672012329101, | |
0.006076416015625, | |
0.00638259220123291, | |
0.0060661759376525876, | |
0.006900735855102539, | |
0.006763519763946534, | |
0.0066826238632202144, | |
0.006515711784362793, | |
0.00637440013885498, | |
0.006387712001800537, | |
0.0066078720092773435, | |
0.006366208076477051, | |
0.005994495868682862, | |
0.00601804780960083, | |
0.006056960105895996, | |
0.0060405759811401364, | |
0.006017024040222168, | |
0.006012928009033203, | |
0.006206399917602539, | |
0.006057983875274659, | |
0.006047743797302246, | |
0.00604259204864502, | |
0.006040639877319336, | |
0.006144000053405762, | |
0.006023168087005615, | |
0.0064245758056640625, | |
0.006526976108551025, | |
0.0062269439697265625, | |
0.006268928050994873, | |
0.006334464073181153, | |
0.0063211522102355954, | |
0.00602623987197876, | |
0.00601907205581665, | |
0.006049791812896729, | |
0.006195199966430664, | |
0.006170623779296875, | |
0.006116352081298828, | |
0.006039552211761475, | |
0.006065152168273926, | |
0.006049791812896729, | |
0.006077439785003662, | |
0.006052800178527832, | |
0.006031360149383545, | |
0.006178815841674804, | |
0.006025216102600098, | |
0.006052864074707031, | |
0.006046720027923584, | |
0.006077439785003662, | |
0.006062079906463623, | |
0.006151167869567871 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 159.0005548335029 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |