{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+cu124", "_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.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-212.873.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.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.42912, "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.404673828125, "mean": 7.404673828125, "stdev": 0.0, "p50": 7.404673828125, "p90": 7.404673828125, "p95": 7.404673828125, "p99": 7.404673828125, "values": [ 7.404673828125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.863259513886805e-07, "ram": 5.249273976330676e-07, "gpu": 1.6983346920000902e-06, "total": 3.209588041021838e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1226.21952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 71, "total": 0.48634451055526745, "mean": 0.006849922683877005, "stdev": 0.0005029611276245772, "p50": 0.006945024013519287, "p90": 0.007389088153839111, "p95": 0.0077001919746398926, "p99": 0.008322841262817382, "values": [ 0.007457664012908935, 0.007457183837890625, 0.006976096153259277, 0.006945024013519287, 0.006973055839538575, 0.007036159992218018, 0.008183648109436035, 0.007307007789611817, 0.007303264141082764, 0.007200352191925049, 0.0071146240234375, 0.007021247863769531, 0.007010335922241211, 0.007001599788665771, 0.007252287864685058, 0.006995007991790771, 0.007103104114532471, 0.007112063884735107, 0.006868480205535888, 0.007060736179351807, 0.007073311805725097, 0.00695798397064209, 0.007109983921051026, 0.0069931201934814455, 0.00701308822631836, 0.006774112224578858, 0.006923007965087891, 0.007094240188598633, 0.006890975952148438, 0.00794271993637085, 0.0071478400230407715, 0.007199967861175537, 0.007111711978912354, 0.007389088153839111, 0.007144768238067627, 0.00687775993347168, 0.0071114559173583985, 0.006955999851226807, 0.006824895858764648, 0.006772384166717529, 0.006488224029541015, 0.006560416221618653, 0.008301471710205078, 0.008372703552246093, 0.007438303947448731, 0.006429279804229736, 0.006327167987823486, 0.006436223983764648, 0.006295072078704834, 0.006318912029266357, 0.006308063983917236, 0.006317823886871338, 0.006332448005676269, 0.006313663959503174, 0.006325568199157715, 0.006340991973876953, 0.006359295845031738, 0.006351615905761719, 0.0062975997924804685, 0.00632371187210083, 0.006314784049987793, 0.006289087772369385, 0.006296288013458252, 0.006337600231170654, 0.006334527969360352, 0.006299200057983398, 0.006300704002380371, 0.006331264019012451, 0.006322879791259766, 0.006302879810333252, 0.0062893757820129395 ] }, "throughput": { "unit": "tokens/s", "value": 291.97409843873083 }, "energy": { "unit": "kWh", "cpu": 8.214854082375512e-08, "ram": 4.4915036602285054e-08, "gpu": 1.6014189056551713e-07, "total": 2.872054679915573e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6963655.720018506 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1244.626944, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 71, "total": 0.5117191033363341, "mean": 0.007207311314596258, "stdev": 0.000559620536589886, "p50": 0.007283520221710205, "p90": 0.00769974422454834, "p95": 0.008353280067443847, "p99": 0.008896207904815674, "values": [ 0.007534207820892334, 0.007642655849456787, 0.007313024044036865, 0.007340928077697754, 0.007233983993530273, 0.008887519836425781, 0.007606527805328369, 0.007679135799407959, 0.007692192077636719, 0.0076100797653198245, 0.007375872135162354, 0.0073853440284729005, 0.0073055682182312015, 0.007863615989685059, 0.0075103678703308105, 0.0074039998054504395, 0.007473663806915283, 0.007305503845214844, 0.0073292160034179685, 0.007390175819396973, 0.007389344215393066, 0.007336351871490478, 0.00735964822769165, 0.0072932162284851075, 0.007283520221710205, 0.007242047786712646, 0.007299424171447754, 0.0071543359756469724, 0.007718400001525879, 0.00831491184234619, 0.0075409278869628905, 0.00769974422454834, 0.007600543975830078, 0.007621376037597656, 0.007428991794586182, 0.007137951850891114, 0.0071560959815979005, 0.007214335918426513, 0.007393695831298828, 0.0067556161880493164, 0.0067023677825927734, 0.008391648292541505, 0.008774847984313964, 0.00891648006439209, 0.007018208026885986, 0.006647136211395264, 0.006670815944671631, 0.00675212812423706, 0.006638336181640625, 0.006657536029815674, 0.006669280052185059, 0.006632863998413086, 0.006628159999847412, 0.006673727989196777, 0.0066509761810302735, 0.006624767780303955, 0.006687424182891846, 0.006653984069824218, 0.006692480087280273, 0.006620768070220947, 0.006730207920074463, 0.006652895927429199, 0.006651936054229736, 0.006620927810668946, 0.0066212158203125, 0.0066221442222595215, 0.0066332478523254395, 0.006593696117401123, 0.006794079780578614, 0.00662662410736084, 0.00664412784576416 ] }, "throughput": { "unit": "tokens/s", "value": 138.74799579904345 }, "energy": { "unit": "kWh", "cpu": 7.578186638921004e-08, "ram": 4.1432504822541716e-08, "gpu": 1.491250235144857e-07, "total": 2.6633939472623733e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3754607.916819333 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.4781711030006409, "mean": 0.006734804267614661, "stdev": 0.000498750744718165, "p50": 0.006773759841918945, "p90": 0.0071526398658752445, "p95": 0.007800832033157349, "p99": 0.008340173053741455, "values": [ 0.0069816322326660156, 0.007094272136688232, 0.006803455829620361, 0.006809599876403808, 0.006738944053649902, 0.008353792190551757, 0.007069695949554444, 0.007143424034118652, 0.0071710400581359865, 0.007070720195770264, 0.006854656219482422, 0.006847487926483154, 0.006795263767242431, 0.007336959838867187, 0.0069918718338012695, 0.0069027838706970214, 0.006965248107910156, 0.006755328178405762, 0.006790143966674805, 0.006850560188293457, 0.006874112129211426, 0.006841343879699707, 0.006808576107025147, 0.00677785587310791, 0.006780928134918213, 0.006731840133666992, 0.006773759841918945, 0.006665184020996094, 0.0071526398658752445, 0.007794688224792481, 0.007023615837097168, 0.0071198720932006835, 0.007069695949554444, 0.007103487968444824, 0.006908927917480469, 0.006632448196411133, 0.006665215969085693, 0.006774784088134766, 0.006890495777130127, 0.006355967998504639, 0.006284287929534912, 0.007806975841522217, 0.008148991584777832, 0.008334336280822753, 0.0065710082054138185, 0.0062638077735900875, 0.006278143882751465, 0.00636518383026123, 0.006248447895050049, 0.0062638077735900875, 0.006276095867156982, 0.006245376110076905, 0.006239232063293457, 0.006289408206939697, 0.0062638077735900875, 0.006230016231536865, 0.006278143882751465, 0.006264832019805908, 0.006303743839263916, 0.006227968215942382, 0.00633241605758667, 0.0062638077735900875, 0.006257631778717041, 0.006232063770294189, 0.006232063770294189, 0.006235136032104492, 0.006251520156860352, 0.006214655876159668, 0.006392831802368164, 0.006245376110076905, 0.0062576642036437985 ] }, "throughput": { "unit": "tokens/s", "value": 148.48241467219074 }, "energy": null, "efficiency": null } } }