IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4e2dd17
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": false, | |
"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 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "65fa416fd503cfe9a2be7637ee30c70a4a1f96f1", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"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": 903.028736, | |
"max_global_vram": 1011.744768, | |
"max_process_vram": 42332.860416, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.558166015625, | |
"mean": 6.558166015625, | |
"stdev": 0.0, | |
"p50": 6.558166015625, | |
"p90": 6.558166015625, | |
"p95": 6.558166015625, | |
"p99": 6.558166015625, | |
"values": [ | |
6.558166015625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1057.193984, | |
"max_global_vram": 1106.132992, | |
"max_process_vram": 267579.981824, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.5197805795669554, | |
"mean": 0.007875463326772053, | |
"stdev": 0.0015001466478337397, | |
"p50": 0.007603891134262086, | |
"p90": 0.007961089849472046, | |
"p95": 0.008072049379348755, | |
"p99": 0.01234582467079156, | |
"values": [ | |
0.008260449409484864, | |
0.008284607887268066, | |
0.008071329116821289, | |
0.007959808826446533, | |
0.007840129852294922, | |
0.007827651023864747, | |
0.00802029037475586, | |
0.007962369918823242, | |
0.007895649909973145, | |
0.007807650089263916, | |
0.007901569843292237, | |
0.007890850067138673, | |
0.007874690055847167, | |
0.007702530860900879, | |
0.007572451114654541, | |
0.007563170909881592, | |
0.007575971126556396, | |
0.007600450992584228, | |
0.007589731216430664, | |
0.007581571102142334, | |
0.007575811862945557, | |
0.007582691192626953, | |
0.007582371234893799, | |
0.007599491119384766, | |
0.00759165096282959, | |
0.007627010822296143, | |
0.019888084411621095, | |
0.007661730766296387, | |
0.007587010860443115, | |
0.007589890956878662, | |
0.0075782108306884765, | |
0.007582691192626953, | |
0.007589731216430664, | |
0.007588130950927734, | |
0.007606690883636475, | |
0.007617250919342041, | |
0.00763645076751709, | |
0.0076015710830688475, | |
0.007582691192626953, | |
0.007625891208648682, | |
0.0076156511306762695, | |
0.007610051155090332, | |
0.007592930793762207, | |
0.0076223711967468265, | |
0.007614370822906494, | |
0.00807228946685791, | |
0.007879010200500488, | |
0.00795980978012085, | |
0.007694849967956543, | |
0.00770428991317749, | |
0.007607330799102783, | |
0.007552131175994873, | |
0.00757693099975586, | |
0.00760413122177124, | |
0.007571331024169922, | |
0.007571331024169922, | |
0.007593091011047363, | |
0.007576770782470703, | |
0.007575170993804932, | |
0.007626050949096679, | |
0.007569890975952148, | |
0.00760365104675293, | |
0.0075727710723876955, | |
0.007596130847930908, | |
0.0075738921165466305, | |
0.007566370964050293 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 253.95331258811763 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1057.3824, | |
"max_global_vram": 1107.525632, | |
"max_process_vram": 269444.415488, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.48416743183135985, | |
"mean": 0.007335870179263028, | |
"stdev": 0.00044618982009911356, | |
"p50": 0.007243731975555419, | |
"p90": 0.007436691045761109, | |
"p95": 0.007516251683235168, | |
"p99": 0.00883554198741911, | |
"values": [ | |
0.007773729801177978, | |
0.007674050807952881, | |
0.007521091938018799, | |
0.007468132019042969, | |
0.0073847718238830564, | |
0.0074358110427856445, | |
0.0075017309188842776, | |
0.0074356508255004885, | |
0.007364451885223389, | |
0.007390692234039307, | |
0.0074375710487365725, | |
0.01080747890472412, | |
0.007185091972351074, | |
0.007199973106384277, | |
0.00731853199005127, | |
0.007290051937103271, | |
0.007217573165893555, | |
0.00720061206817627, | |
0.007159012794494629, | |
0.007164612770080566, | |
0.00723341178894043, | |
0.007151173114776611, | |
0.007241251945495605, | |
0.007143813133239746, | |
0.007273252010345459, | |
0.007191332817077636, | |
0.00730045223236084, | |
0.007224452018737793, | |
0.007269251823425293, | |
0.007205893039703369, | |
0.007246212005615234, | |
0.007211173057556152, | |
0.007264771938323975, | |
0.007310532093048096, | |
0.00720477294921875, | |
0.00726397180557251, | |
0.007284292221069336, | |
0.007229412078857422, | |
0.007222853183746338, | |
0.007238691806793213, | |
0.007196453094482422, | |
0.007203011989593506, | |
0.0072710118293762204, | |
0.00722109317779541, | |
0.007209252834320068, | |
0.0074055719375610354, | |
0.007434531211853028, | |
0.007369252204895019, | |
0.007252933025360108, | |
0.007295651912689209, | |
0.007203332901000977, | |
0.007295812129974365, | |
0.00723917293548584, | |
0.007248291969299317, | |
0.007203493118286133, | |
0.007205892086029053, | |
0.007201093196868897, | |
0.007210852146148682, | |
0.007235652923583984, | |
0.007270051956176758, | |
0.007252771854400635, | |
0.007225732803344726, | |
0.007175971984863281, | |
0.007259812831878662, | |
0.007227811813354492, | |
0.007211331844329834 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.31647992174004 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.4500634026527405, | |
"mean": 0.006819142464435461, | |
"stdev": 0.0004402159971180375, | |
"p50": 0.006721814393997192, | |
"p90": 0.006949813365936279, | |
"p95": 0.006976173400878906, | |
"p99": 0.008271391963958723, | |
"values": [ | |
0.007206051826477051, | |
0.007137413024902344, | |
0.006973413944244384, | |
0.006947333812713623, | |
0.0068614139556884765, | |
0.0068726129531860355, | |
0.006952292919158935, | |
0.006907173156738281, | |
0.006847494125366211, | |
0.006858213901519776, | |
0.006937733173370361, | |
0.01024988079071045, | |
0.006670854091644287, | |
0.006722373962402344, | |
0.006801414012908936, | |
0.006773094177246094, | |
0.006730373859405518, | |
0.0066980538368225095, | |
0.006663334846496582, | |
0.006669253826141358, | |
0.006703973770141602, | |
0.006677414894104004, | |
0.006699173927307129, | |
0.006661415100097656, | |
0.0067618942260742184, | |
0.0066772551536560054, | |
0.006762214183807373, | |
0.006698214054107666, | |
0.006720775127410888, | |
0.00671965503692627, | |
0.006739654064178467, | |
0.006702535152435303, | |
0.006696774005889893, | |
0.0067684540748596195, | |
0.006670374870300293, | |
0.006728774070739746, | |
0.006743494033813476, | |
0.006708134174346924, | |
0.006719174861907959, | |
0.006723974227905273, | |
0.006697575092315674, | |
0.006699493885040283, | |
0.00678205394744873, | |
0.0067028551101684574, | |
0.006687815189361572, | |
0.006973413944244384, | |
0.00697709321975708, | |
0.006918532848358154, | |
0.006793414115905762, | |
0.0067782139778137206, | |
0.006671335220336914, | |
0.006773734092712402, | |
0.006711655139923096, | |
0.006687334060668945, | |
0.0066838150024414065, | |
0.006671654224395752, | |
0.006671814918518066, | |
0.006686374187469483, | |
0.006731335163116455, | |
0.006723974227905273, | |
0.006745573997497559, | |
0.006703175067901611, | |
0.00669469404220581, | |
0.006721254825592041, | |
0.006693253993988037, | |
0.0067188539505004885 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 146.6460050094858 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |