IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2c690cc verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1076.482048,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.4940663986206055,
"mean": 0.008667831554747464,
"stdev": 0.000635899344677432,
"p50": 0.00850102424621582,
"p90": 0.008779872131347656,
"p95": 0.009230399894714351,
"p99": 0.011308706512451165,
"values": [
0.012863840103149414,
0.010011584281921386,
0.01008681583404541,
0.008626336097717286,
0.008564576148986817,
0.008523232460021972,
0.008489888191223144,
0.008522111892700196,
0.008508416175842285,
0.008445599555969237,
0.00850812816619873,
0.008490719795227052,
0.00852079963684082,
0.008484576225280762,
0.008465503692626953,
0.00849129581451416,
0.008487296104431153,
0.008493215560913085,
0.008496928215026855,
0.00850979232788086,
0.008509183883666992,
0.00848470401763916,
0.008497983932495116,
0.008503647804260253,
0.008467167854309081,
0.008490943908691406,
0.008532352447509765,
0.008476608276367188,
0.00850483226776123,
0.00852620792388916,
0.008506560325622558,
0.008491392135620118,
0.009035103797912598,
0.008770784378051759,
0.00883084774017334,
0.008492639541625976,
0.008419263839721679,
0.008415967941284179,
0.008767775535583496,
0.008793503761291503,
0.008733407974243164,
0.008703840255737305,
0.008678751945495606,
0.00850102424621582,
0.008527263641357422,
0.008518176078796387,
0.008478655815124511,
0.008453215599060059,
0.008496543884277345,
0.008475584030151367,
0.008473855972290039,
0.008500512123107911,
0.008480575561523438,
0.008466079711914062,
0.008456576347351074,
0.008527423858642578,
0.008486783981323243
]
},
"throughput": {
"unit": "tokens/s",
"value": 230.73821720780657
},
"energy": {
"unit": "kWh",
"cpu": 1.04461653887877e-07,
"ram": 5.71146882162123e-08,
"gpu": 1.8437149252631805e-07,
"total": 3.459478346304073e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5781218.437562114
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1076.482048,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5066198072433472,
"mean": 0.008888066793742934,
"stdev": 0.0004154080972229197,
"p50": 0.008773535728454589,
"p90": 0.00904646396636963,
"p95": 0.009139648056030273,
"p99": 0.010796082038879391,
"values": [
0.011538399696350097,
0.0102128324508667,
0.009078144073486328,
0.008779135704040528,
0.008865440368652344,
0.008782591819763184,
0.00875046443939209,
0.008798527717590331,
0.008696191787719727,
0.008705951690673829,
0.008800127983093261,
0.008737152099609374,
0.008836000442504884,
0.008782048225402832,
0.008836319923400879,
0.008734432220458985,
0.008796159744262694,
0.008747167587280273,
0.008743488311767578,
0.008773535728454589,
0.008748703956604004,
0.008757760047912597,
0.00879100799560547,
0.008724736213684083,
0.008806943893432617,
0.008774144172668457,
0.008890080451965331,
0.008759424209594727,
0.008757311820983887,
0.008770400047302247,
0.008770303726196289,
0.0091212158203125,
0.009132160186767577,
0.009009440422058106,
0.008978528022766113,
0.00876899242401123,
0.008671135902404785,
0.008676351547241211,
0.009025343894958496,
0.00898742389678955,
0.009169599533081055,
0.00901203155517578,
0.008899295806884765,
0.008726783752441406,
0.008754207611083984,
0.008758048057556152,
0.008747648239135743,
0.008778976440429688,
0.008739839553833008,
0.008751968383789062,
0.008740991592407226,
0.00873408031463623,
0.00880508804321289,
0.008766207695007324,
0.008845120429992677,
0.008742015838623047,
0.008732383728027343
]
},
"throughput": {
"unit": "tokens/s",
"value": 112.51040560406061
},
"energy": {
"unit": "kWh",
"cpu": 1.0149413751700054e-07,
"ram": 5.5490564845175725e-08,
"gpu": 1.808969989219559e-07,
"total": 3.3788170128413226e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2959615.7359201815
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 56,
"total": 0.9779814376831053,
"mean": 0.01746395424434117,
"stdev": 0.0005090473065378696,
"p50": 0.017298431396484376,
"p90": 0.017820159912109376,
"p95": 0.017999104022979738,
"p99": 0.01977292795181275,
"values": [
0.02028544044494629,
0.019353599548339845,
0.01745715141296387,
0.01745715141296387,
0.017325056076049804,
0.017271808624267578,
0.017339391708374022,
0.017237056732177736,
0.017189823150634765,
0.017298431396484376,
0.017284095764160155,
0.017378303527832033,
0.01728102493286133,
0.017341440200805663,
0.01725132751464844,
0.017298431396484376,
0.017288192749023438,
0.01725951957702637,
0.017315839767456053,
0.017284095764160155,
0.017266687393188478,
0.017307647705078123,
0.017259552001953126,
0.017300447463989257,
0.017285120010375975,
0.01745305633544922,
0.017260543823242186,
0.017286144256591796,
0.017326080322265625,
0.017300479888916014,
0.01758515167236328,
0.01821183967590332,
0.01784012794494629,
0.01783193588256836,
0.017307647705078123,
0.017100799560546876,
0.017135616302490234,
0.01780838394165039,
0.01780633544921875,
0.017928192138671875,
0.017736703872680663,
0.017605632781982423,
0.017270784378051757,
0.017301504135131835,
0.017297407150268555,
0.01724825668334961,
0.017260543823242186,
0.01725644874572754,
0.017268735885620116,
0.017217536926269532,
0.017284095764160155,
0.017310720443725586,
0.01722163200378418,
0.017362943649291994,
0.017293312072753905,
0.017246208190917968
]
},
"throughput": {
"unit": "tokens/s",
"value": 57.26080050421738
},
"energy": null,
"efficiency": null
}
}
}