{ "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", "library": "transformers", "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, "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": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1076.477952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 53, "total": 0.4903327999114989, "mean": 0.009251562262481115, "stdev": 0.0003042563622567787, "p50": 0.009339296340942382, "p90": 0.009546399879455566, "p95": 0.009655475425720214, "p99": 0.009929994087219238, "values": [ 0.010036640167236328, 0.009831551551818848, 0.009724384307861328, 0.00935206413269043, 0.00947804832458496, 0.00935200023651123, 0.00938268756866455, 0.009460607528686523, 0.009361311912536622, 0.009532383918762207, 0.009545632362365723, 0.009473312377929687, 0.009474464416503906, 0.009292223930358886, 0.009256608009338379, 0.009435359954833984, 0.009546591758728027, 0.00946998405456543, 0.009519264221191407, 0.009422528266906737, 0.009354592323303223, 0.009485343933105468, 0.009339296340942382, 0.009414912223815918, 0.009322303771972656, 0.009609536170959472, 0.009570431709289551, 0.009540831565856934, 0.009333600044250488, 0.009203424453735351, 0.009126432418823242, 0.009172639846801757, 0.009353919982910157, 0.009511136054992675, 0.009151391983032227, 0.009090271949768067, 0.008984959602355957, 0.008882207870483399, 0.00890675163269043, 0.008881343841552734, 0.008867775917053223, 0.008845791816711426, 0.008847647666931153, 0.008846240043640137, 0.008856831550598144, 0.008833120346069336, 0.008843520164489745, 0.008929727554321289, 0.008865280151367188, 0.008841888427734375, 0.008865887641906739, 0.008846624374389649, 0.008859487533569336 ] }, "throughput": { "unit": "tokens/s", "value": 216.1797049251694 }, "energy": { "unit": "kWh", "cpu": 1.0635727306916601e-07, "ram": 5.814898716412894e-08, "gpu": 1.896206874107199e-07, "total": 3.5412694764401487e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5647692.199946598 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1076.477952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 53, "total": 0.5083160972595214, "mean": 0.009590869759613613, "stdev": 0.0003194080035425947, "p50": 0.009750911712646484, "p90": 0.009908908843994141, "p95": 0.009944716644287109, "p99": 0.01019400333404541, "values": [ 0.010160672187805175, 0.010230112075805663, 0.009940223693847656, 0.00979132843017578, 0.009750911712646484, 0.009673760414123536, 0.009870847702026368, 0.009863743782043457, 0.009828160285949707, 0.009848159790039062, 0.009732447624206542, 0.009916576385498047, 0.009825471878051759, 0.009797951698303223, 0.00980799961090088, 0.009908191680908203, 0.009844320297241211, 0.009896320343017578, 0.009756511688232421, 0.009753279685974121, 0.009729439735412598, 0.009776224136352539, 0.009737119674682618, 0.009790176391601563, 0.009848064422607421, 0.009909088134765626, 0.00995145606994629, 0.0097990083694458, 0.009305952072143554, 0.009753600120544433, 0.009262304306030273, 0.009645248413085937, 0.009827296257019042, 0.009759807586669922, 0.009372799873352052, 0.009420960426330567, 0.009218815803527833, 0.009204959869384766, 0.009199232101440429, 0.00917619228363037, 0.009328288078308105, 0.009166080474853516, 0.009218688011169434, 0.009152352333068848, 0.009174495697021485, 0.00914675235748291, 0.009321951866149902, 0.009171808242797851, 0.009169407844543457, 0.009187071800231934, 0.009119487762451172, 0.009148287773132324, 0.009126688003540039 ] }, "throughput": { "unit": "tokens/s", "value": 104.26583042665433 }, "energy": { "unit": "kWh", "cpu": 1.0304191040585246e-07, "ram": 5.633972272158999e-08, "gpu": 1.801018305892687e-07, "total": 3.3948346371671114e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2945651.576226612 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 52, "total": 0.9802628479003906, "mean": 0.018851208613469048, "stdev": 0.000591354577202634, "p50": 0.019106815338134766, "p90": 0.01943429775238037, "p95": 0.01957370824813843, "p99": 0.01990633445739746, "values": [ 0.020099008560180664, 0.019721216201782226, 0.019180543899536134, 0.019289087295532227, 0.019050495147705078, 0.019252223968505858, 0.019398656845092774, 0.019187711715698243, 0.01943552017211914, 0.019315711975097655, 0.019423295974731445, 0.01933305549621582, 0.01909350395202637, 0.019115007400512696, 0.019380224227905272, 0.01943756866455078, 0.019362815856933592, 0.019339263916015623, 0.019190784454345702, 0.019123199462890626, 0.019325952529907226, 0.019098623275756836, 0.01922355270385742, 0.019168256759643554, 0.019559423446655275, 0.019591167449951173, 0.01938739204406738, 0.018717695236206054, 0.018932735443115235, 0.018545663833618165, 0.018761728286743166, 0.01919692802429199, 0.019321855545043946, 0.01862451171875, 0.01854572868347168, 0.018261951446533205, 0.018126848220825196, 0.018120735168457032, 0.01809814453125, 0.018182144165039063, 0.018078720092773438, 0.018070528030395508, 0.018043903350830077, 0.018041856765747072, 0.018027519226074217, 0.018190336227416993, 0.018121728897094725, 0.01806540870666504, 0.01805619239807129, 0.018010112762451173, 0.018017280578613282, 0.018019327163696287 ] }, "throughput": { "unit": "tokens/s", "value": 53.046996641133525 }, "energy": null, "efficiency": null } } }