
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2eb22ab
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, | |
"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": 718.249984, | |
"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.17717822265625, | |
"mean": 7.17717822265625, | |
"stdev": 0.0, | |
"p50": 7.17717822265625, | |
"p90": 7.17717822265625, | |
"p95": 7.17717822265625, | |
"p99": 7.17717822265625, | |
"values": [ | |
7.17717822265625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.83097321457333e-07, | |
"ram": 5.230272327786642e-07, | |
"gpu": 1.6980569139998358e-06, | |
"total": 3.2041814682358333e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1043.894272, | |
"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.491704864025116, | |
"mean": 0.0063857774548716365, | |
"stdev": 0.00032663266261212753, | |
"p50": 0.006434815883636475, | |
"p90": 0.006764659309387207, | |
"p95": 0.006821337604522705, | |
"p99": 0.007038699684143067, | |
"values": [ | |
0.007049983978271485, | |
0.006804895877838135, | |
0.00682038402557373, | |
0.006729856014251709, | |
0.006825151920318603, | |
0.006410655975341797, | |
0.006580192089080811, | |
0.006675648212432861, | |
0.006720704078674316, | |
0.006503263950347901, | |
0.006701632022857666, | |
0.006707071781158447, | |
0.006684000015258789, | |
0.006641183853149414, | |
0.006665503978729248, | |
0.006428768157958984, | |
0.006497791767120361, | |
0.006437920093536377, | |
0.006544447898864746, | |
0.006731711864471436, | |
0.0070351362228393555, | |
0.0066819839477539065, | |
0.006559199810028076, | |
0.006704351902008057, | |
0.006584447860717773, | |
0.006442751884460449, | |
0.006579328060150147, | |
0.00679859209060669, | |
0.006571936130523682, | |
0.00659222412109375, | |
0.0065352959632873535, | |
0.006590144157409668, | |
0.0067461438179016115, | |
0.006762944221496582, | |
0.00659830379486084, | |
0.006563615798950195, | |
0.0067125120162963865, | |
0.006434815883636475, | |
0.006431551933288574, | |
0.0062949762344360356, | |
0.006009952068328857, | |
0.006329823970794677, | |
0.006747104167938232, | |
0.006767231941223145, | |
0.006922336101531983, | |
0.006414239883422852, | |
0.0063012480735778805, | |
0.006302752017974853, | |
0.006310304164886474, | |
0.005962944030761719, | |
0.005974880218505859, | |
0.006016511917114258, | |
0.005982079982757568, | |
0.00599190378189087, | |
0.006001567840576172, | |
0.006025119781494141, | |
0.006005760192871094, | |
0.006029888153076172, | |
0.006005152225494385, | |
0.006004672050476074, | |
0.005977183818817139, | |
0.0059937601089477535, | |
0.006004479885101319, | |
0.006106560230255127, | |
0.0059911999702453615, | |
0.006014016151428223, | |
0.006032479763031006, | |
0.00603542423248291, | |
0.006038112163543701, | |
0.006000832080841064, | |
0.006019199848175049, | |
0.0060182719230651854, | |
0.00597599983215332, | |
0.005993728160858154, | |
0.005981184005737304, | |
0.005994944095611572, | |
0.00604099178314209 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 313.19600692852566 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.532647746692394e-08, | |
"ram": 4.118400210362379e-08, | |
"gpu": 1.4854969689873425e-07, | |
"total": 2.65060176469282e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7545456.381418282 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1059.26656, | |
"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.5173376979827881, | |
"mean": 0.006718671402373871, | |
"stdev": 0.0003332437391401273, | |
"p50": 0.006850751876831054, | |
"p90": 0.007101868915557861, | |
"p95": 0.007162847995758057, | |
"p99": 0.007281735725402832, | |
"values": [ | |
0.0072715520858764645, | |
0.007214560031890869, | |
0.0071040959358215335, | |
0.007112448215484619, | |
0.006850751876831054, | |
0.006888160228729248, | |
0.006999743938446045, | |
0.007084928035736084, | |
0.00708022403717041, | |
0.007023903846740722, | |
0.007009088039398193, | |
0.007026080131530762, | |
0.006995872020721435, | |
0.007070176124572754, | |
0.0070063362121582035, | |
0.006777919769287109, | |
0.006918208122253418, | |
0.006917376041412354, | |
0.006954368114471436, | |
0.007149919986724853, | |
0.007313983917236328, | |
0.007045951843261719, | |
0.007018976211547852, | |
0.007022528171539306, | |
0.007003232002258301, | |
0.006851232051849366, | |
0.006962975978851318, | |
0.006867392063140869, | |
0.006907360076904297, | |
0.006925888061523437, | |
0.006914944171905518, | |
0.007111328125, | |
0.007049600124359131, | |
0.0070310401916503906, | |
0.00710038423538208, | |
0.006936863899230957, | |
0.006826432228088379, | |
0.006537568092346191, | |
0.006943136215209961, | |
0.006418303966522217, | |
0.0064133119583129885, | |
0.006752287864685059, | |
0.007086239814758301, | |
0.007246560096740723, | |
0.006854688167572022, | |
0.006596992015838623, | |
0.006557472229003906, | |
0.006639552116394043, | |
0.006558879852294922, | |
0.006281184196472168, | |
0.006377312183380127, | |
0.006357632160186768, | |
0.006339712142944336, | |
0.00633900785446167, | |
0.00634339189529419, | |
0.006305247783660889, | |
0.006304863929748535, | |
0.00629750394821167, | |
0.006313087940216064, | |
0.006368896007537842, | |
0.006408703804016113, | |
0.006330143928527832, | |
0.0063487358093261715, | |
0.00634607982635498, | |
0.006324160099029541, | |
0.00635811185836792, | |
0.00630508804321289, | |
0.006316544055938721, | |
0.006317984104156494, | |
0.006310207843780518, | |
0.0063361282348632815, | |
0.006329343795776367, | |
0.00634768009185791, | |
0.006432223796844483, | |
0.006323520183563232, | |
0.006315968036651611, | |
0.00630841588973999 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.83895045777587 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.244062587282209e-08, | |
"ram": 3.960901106876132e-08, | |
"gpu": 1.4440321236052285e-07, | |
"total": 2.5645284930210627e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3899352.2697109175 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 77, | |
"total": 0.48317344188690187, | |
"mean": 0.006274979764764959, | |
"stdev": 0.0002743803471952085, | |
"p50": 0.006367231845855713, | |
"p90": 0.00660234260559082, | |
"p95": 0.006654361629486084, | |
"p99": 0.006765281295776367, | |
"values": [ | |
0.006758399963378906, | |
0.0067051520347595215, | |
0.006604800224304199, | |
0.006604800224304199, | |
0.00638156795501709, | |
0.006402048110961914, | |
0.006467584133148193, | |
0.006586368083953857, | |
0.006591487884521485, | |
0.006510591983795166, | |
0.006509568214416504, | |
0.006527967929840088, | |
0.006486015796661377, | |
0.0065075201988220215, | |
0.006515711784362793, | |
0.006315040111541748, | |
0.006434815883636475, | |
0.006429696083068847, | |
0.006434815883636475, | |
0.0066416640281677245, | |
0.0067870721817016606, | |
0.006567935943603515, | |
0.006501376152038574, | |
0.006523903846740723, | |
0.006512639999389648, | |
0.006360064029693604, | |
0.006468607902526856, | |
0.006398975849151611, | |
0.006425600051879882, | |
0.00643993616104126, | |
0.006405183792114258, | |
0.0066007041931152345, | |
0.00653926420211792, | |
0.0065372161865234375, | |
0.006604800224304199, | |
0.0063836159706115725, | |
0.006367231845855713, | |
0.0061337599754333495, | |
0.006433792114257812, | |
0.006041600227355957, | |
0.006015999794006348, | |
0.006291456222534179, | |
0.00658841609954834, | |
0.006740992069244385, | |
0.006402048110961914, | |
0.00621670389175415, | |
0.006179840087890625, | |
0.006260735988616943, | |
0.006153215885162353, | |
0.005910560131072998, | |
0.0060026879310607914, | |
0.005985280036926269, | |
0.005970943927764893, | |
0.005966847896575928, | |
0.005970911979675293, | |
0.0059351038932800295, | |
0.005929984092712402, | |
0.00592793607711792, | |
0.005929984092712402, | |
0.005976064205169678, | |
0.006039552211761475, | |
0.005958655834197998, | |
0.00597811222076416, | |
0.005959680080413818, | |
0.005951488018035888, | |
0.005984255790710449, | |
0.005934080123901367, | |
0.005937151908874512, | |
0.0059351038932800295, | |
0.005931007862091065, | |
0.0059391999244689945, | |
0.005959680080413818, | |
0.005976064205169678, | |
0.006062079906463623, | |
0.005941247940063477, | |
0.005945343971252442, | |
0.0059361281394958495 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 159.36306370502805 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |