
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d734b3f
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.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": 722.755584, | |
"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.19425048828125, | |
"mean": 7.19425048828125, | |
"stdev": 0.0, | |
"p50": 7.19425048828125, | |
"p90": 7.19425048828125, | |
"p95": 7.19425048828125, | |
"p99": 7.19425048828125, | |
"values": [ | |
7.19425048828125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0021128479167313e-06, | |
"ram": 5.330632503721186e-07, | |
"gpu": 1.7102791459997543e-06, | |
"total": 3.2454552442886044e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1054.953472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.48895721721649177, | |
"mean": 0.0063500937300843075, | |
"stdev": 0.00025968837307898773, | |
"p50": 0.006233983993530273, | |
"p90": 0.006620838451385498, | |
"p95": 0.006843251323699952, | |
"p99": 0.007317871513366698, | |
"values": [ | |
0.0072700481414794925, | |
0.0071398081779479984, | |
0.00661568021774292, | |
0.006248703956604004, | |
0.006238080024719238, | |
0.006238304138183594, | |
0.006257791996002197, | |
0.006232351779937744, | |
0.00622540807723999, | |
0.006239039897918701, | |
0.006245888233184814, | |
0.006244895935058593, | |
0.006211904048919678, | |
0.006195424079895019, | |
0.006212992191314697, | |
0.006212672233581543, | |
0.006204383850097656, | |
0.006788288116455078, | |
0.006520991802215576, | |
0.006644959926605225, | |
0.006456672191619873, | |
0.006426432132720947, | |
0.006429376125335694, | |
0.006382080078125, | |
0.00643552017211914, | |
0.006392864227294922, | |
0.006372960090637207, | |
0.006192031860351562, | |
0.006127200126647949, | |
0.006132351875305176, | |
0.006227519989013672, | |
0.006187583923339844, | |
0.006203648090362549, | |
0.0062065281867980954, | |
0.006233983993530273, | |
0.0062063360214233395, | |
0.006291423797607422, | |
0.006519648075103759, | |
0.0070631041526794435, | |
0.006423359870910645, | |
0.006502687931060791, | |
0.006571936130523682, | |
0.006194591999053955, | |
0.006173952102661133, | |
0.0062007360458374025, | |
0.006167520046234131, | |
0.0061877760887146, | |
0.006179647922515869, | |
0.006465439796447754, | |
0.0065643200874328615, | |
0.007469312191009521, | |
0.0064765758514404295, | |
0.006234911918640137, | |
0.0064412479400634765, | |
0.006167232036590576, | |
0.00618006420135498, | |
0.006191296100616455, | |
0.006190624237060547, | |
0.0064824318885803225, | |
0.006167808055877686, | |
0.006194655895233154, | |
0.006214848041534424, | |
0.006186592102050781, | |
0.0061708478927612305, | |
0.006182655811309814, | |
0.006169151782989502, | |
0.006666207790374756, | |
0.006421984195709229, | |
0.006381440162658692, | |
0.006173759937286377, | |
0.006178175926208496, | |
0.006188191890716553, | |
0.006123871803283692, | |
0.006108575820922851, | |
0.006229695796966553, | |
0.006429632186889648, | |
0.006628575801849365 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 314.95598096840166 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.694772876082179e-08, | |
"ram": 4.2071389253371796e-08, | |
"gpu": 1.5638721024675367e-07, | |
"total": 2.754063282609472e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7261997.255578681 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1070.596096, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.511813662528992, | |
"mean": 0.006646930682194698, | |
"stdev": 0.0002435117859082786, | |
"p50": 0.006524256229400635, | |
"p90": 0.006837075138092041, | |
"p95": 0.0070085119247436534, | |
"p99": 0.00759364465713501, | |
"values": [ | |
0.0075797438621521, | |
0.007637663841247559, | |
0.006789631843566894, | |
0.006511199951171875, | |
0.006500480175018311, | |
0.006498591899871826, | |
0.006524256229400635, | |
0.0065136637687683106, | |
0.006683616161346435, | |
0.0064943041801452635, | |
0.006521952152252197, | |
0.006502016067504883, | |
0.00651142406463623, | |
0.0065214080810546875, | |
0.006477280139923096, | |
0.006489151954650879, | |
0.006906879901885986, | |
0.006931007862091065, | |
0.006730463981628418, | |
0.006820703983306885, | |
0.006729343891143799, | |
0.007318528175354004, | |
0.006757791996002197, | |
0.006761439800262451, | |
0.006716256141662598, | |
0.006714399814605713, | |
0.0067207999229431156, | |
0.006517183780670166, | |
0.006436543941497803, | |
0.006446303844451905, | |
0.006494431972503662, | |
0.006491104125976563, | |
0.006500288009643555, | |
0.006495552062988281, | |
0.006577248096466064, | |
0.006474112033843994, | |
0.006793856143951416, | |
0.007517600059509277, | |
0.0068616318702697755, | |
0.006744287967681885, | |
0.006673920154571533, | |
0.006685952186584473, | |
0.006470367908477783, | |
0.006481344223022461, | |
0.0064839677810668945, | |
0.006456319808959961, | |
0.00648528003692627, | |
0.006684832096099854, | |
0.0067199039459228515, | |
0.006675839900970459, | |
0.006884191989898682, | |
0.006672671794891357, | |
0.006493023872375488, | |
0.006686783790588379, | |
0.0064784960746765135, | |
0.006443327903747559, | |
0.006466464042663574, | |
0.006533504009246826, | |
0.006696608066558838, | |
0.006472415924072265, | |
0.006557919979095459, | |
0.006477151870727539, | |
0.006466464042663574, | |
0.006467775821685791, | |
0.006486176013946533, | |
0.006502399921417237, | |
0.006671135902404785, | |
0.0067123517990112305, | |
0.006727327823638916, | |
0.006482783794403076, | |
0.0064587841033935545, | |
0.006472415924072265, | |
0.006503680229187012, | |
0.006783967971801758, | |
0.0067569599151611325, | |
0.006674911975860596, | |
0.006752096176147461 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 150.44537814704844 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.28760603390374e-08, | |
"ram": 3.984531717936247e-08, | |
"gpu": 1.4582118904438232e-07, | |
"total": 2.5854256656278227e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3867835.0466408343 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.48089596652984623, | |
"mean": 0.006245402162725276, | |
"stdev": 0.00022277726686887846, | |
"p50": 0.006135807991027832, | |
"p90": 0.006425190448760987, | |
"p95": 0.006588620948791505, | |
"p99": 0.007078502368927001, | |
"values": [ | |
0.007037951946258545, | |
0.007206912040710449, | |
0.006393856048583985, | |
0.00611737585067749, | |
0.006115327835083008, | |
0.006109183788299561, | |
0.006118400096893311, | |
0.0061296639442443845, | |
0.006298624038696289, | |
0.006108160018920898, | |
0.006135807991027832, | |
0.006093823909759521, | |
0.006127615928649902, | |
0.006123583793640136, | |
0.0060928001403808595, | |
0.006103040218353272, | |
0.006433792114257812, | |
0.0065075201988220215, | |
0.006335487842559814, | |
0.006419456005096436, | |
0.006339583873748779, | |
0.006913023948669434, | |
0.006355999946594238, | |
0.0063569917678833006, | |
0.00632422399520874, | |
0.0063211522102355954, | |
0.006316991806030273, | |
0.006131711959838867, | |
0.006056960105895996, | |
0.006066143989562988, | |
0.006088704109191895, | |
0.006107135772705078, | |
0.006107135772705078, | |
0.0060999679565429685, | |
0.006194176197052002, | |
0.00607539176940918, | |
0.006347775936126709, | |
0.006944767951965332, | |
0.006460415840148926, | |
0.006350783824920654, | |
0.006281216144561768, | |
0.006292479991912842, | |
0.006074368000030517, | |
0.006098944187164307, | |
0.006103072166442871, | |
0.006076416015625, | |
0.006077439785003662, | |
0.006209536075592041, | |
0.006328320026397705, | |
0.006288383960723877, | |
0.006479872226715088, | |
0.00628223991394043, | |
0.006093823909759521, | |
0.0062975997924804685, | |
0.006085631847381592, | |
0.006065152168273926, | |
0.006085631847381592, | |
0.006142975807189942, | |
0.006307839870452881, | |
0.006080512046813965, | |
0.00617574405670166, | |
0.006090752124786377, | |
0.006064127922058105, | |
0.006086656093597412, | |
0.006106112003326416, | |
0.006109183788299561, | |
0.0062791681289672855, | |
0.006310912132263183, | |
0.006322175979614258, | |
0.006102015972137451, | |
0.006078464031219482, | |
0.006094848155975342, | |
0.00601804780960083, | |
0.006377471923828125, | |
0.0063272957801818845, | |
0.0062791681289672855, | |
0.006354944229125976 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 160.11779128786077 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |