IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
565af87
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+rocm6.1", | |
"_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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"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": 1389.924352, | |
"max_global_vram": 11.132928, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.84431005859375, | |
"mean": 7.84431005859375, | |
"stdev": 0.0, | |
"p50": 7.84431005859375, | |
"p90": 7.84431005859375, | |
"p95": 7.84431005859375, | |
"p99": 7.84431005859375, | |
"values": [ | |
7.84431005859375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1553.342464, | |
"max_global_vram": 11.137024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.49456598949432373, | |
"mean": 0.007727593585848808, | |
"stdev": 0.0012639211741882893, | |
"p50": 0.007584379196166993, | |
"p90": 0.008141833591461181, | |
"p95": 0.008220105314254761, | |
"p99": 0.011916963548660257, | |
"values": [ | |
0.008205417633056641, | |
0.008099496841430664, | |
0.008007018089294434, | |
0.007741259098052978, | |
0.008644455909729004, | |
0.00781645917892456, | |
0.007554378986358643, | |
0.007505098819732666, | |
0.00771901798248291, | |
0.007609738826751709, | |
0.007690698146820068, | |
0.007644458770751953, | |
0.008165257453918457, | |
0.008833895683288575, | |
0.008222697257995605, | |
0.00808061695098877, | |
0.008005738258361816, | |
0.008159977912902832, | |
0.007908298015594482, | |
0.007898858070373535, | |
0.007956297874450683, | |
0.007957737922668457, | |
0.007960937976837158, | |
0.007883338928222657, | |
0.00792157793045044, | |
0.007962537765502929, | |
0.007949257850646973, | |
0.0075092601776123044, | |
0.007250218868255615, | |
0.007145100116729737, | |
0.007414379119873047, | |
0.007207499980926514, | |
0.007407179832458496, | |
0.007234220027923584, | |
0.007184140205383301, | |
0.006989420890808106, | |
0.0072087798118591305, | |
0.007559819221496582, | |
0.00761677885055542, | |
0.007486700057983398, | |
0.007316460132598877, | |
0.007362059116363525, | |
0.007121580123901367, | |
0.007114220142364502, | |
0.0069835009574890135, | |
0.006981260776519775, | |
0.007137899875640869, | |
0.0069966201782226565, | |
0.0076438188552856445, | |
0.007608939170837403, | |
0.007120460987091065, | |
0.007672298908233643, | |
0.007450378894805908, | |
0.007226699829101562, | |
0.007268459796905518, | |
0.00717326021194458, | |
0.007087660789489746, | |
0.006994380950927735, | |
0.0070244607925415035, | |
0.007029260158538818, | |
0.0070070199966430664, | |
0.007835497856140137, | |
0.007925258159637452, | |
0.01716651153564453 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 258.81278276105377 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1553.534976, | |
"max_global_vram": 11.14112, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.5187940740585328, | |
"mean": 0.008106157407164574, | |
"stdev": 0.0016020040298535105, | |
"p50": 0.007733898401260376, | |
"p90": 0.008424377155303956, | |
"p95": 0.008819446897506713, | |
"p99": 0.016253584461212153, | |
"values": [ | |
0.008108456611633301, | |
0.00837485694885254, | |
0.008094696998596192, | |
0.01532491683959961, | |
0.007784297943115234, | |
0.007712297916412354, | |
0.007671178817749024, | |
0.007615338802337646, | |
0.007713579177856446, | |
0.00786205816268921, | |
0.00773517894744873, | |
0.008148137092590333, | |
0.00849373722076416, | |
0.008876614570617676, | |
0.008432777404785156, | |
0.008267657279968262, | |
0.009541093826293945, | |
0.008213896751403809, | |
0.008225896835327148, | |
0.0082132568359375, | |
0.008275656700134278, | |
0.008233416557312011, | |
0.008404776573181153, | |
0.008224777221679688, | |
0.008242217063903809, | |
0.008220617294311523, | |
0.007938858032226562, | |
0.007523979187011719, | |
0.007392459869384765, | |
0.007675339221954345, | |
0.008060458183288575, | |
0.007691977977752685, | |
0.007620617866516113, | |
0.007465738773345948, | |
0.007524459838867187, | |
0.0075798192024230954, | |
0.017834829330444335, | |
0.007738218784332275, | |
0.007975337028503417, | |
0.007966056823730468, | |
0.007641899108886719, | |
0.007677419185638428, | |
0.007562539100646973, | |
0.007268459796905518, | |
0.007245259761810303, | |
0.007245100021362304, | |
0.007280620098114013, | |
0.007263500213623047, | |
0.007732617855072022, | |
0.0074854187965393065, | |
0.007626058101654053, | |
0.007843338012695312, | |
0.007618059158325195, | |
0.007392459869384765, | |
0.007398859977722168, | |
0.007291499137878418, | |
0.007309099197387695, | |
0.0073473391532897945, | |
0.007239980220794678, | |
0.007254220008850097, | |
0.007276939868927002, | |
0.00849549674987793, | |
0.008250057220458984, | |
0.008048296928405762 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 123.36301280260813 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4883218398094177, | |
"mean": 0.007630028747022151, | |
"stdev": 0.0016147701552449625, | |
"p50": 0.007273900032043457, | |
"p90": 0.007907801961898804, | |
"p95": 0.008264312982559202, | |
"p99": 0.01588945986747741, | |
"values": [ | |
0.0076007781028747555, | |
0.007842059135437012, | |
0.007623979091644287, | |
0.01495883846282959, | |
0.007365580081939697, | |
0.007324938774108887, | |
0.007237259864807129, | |
0.007147339820861817, | |
0.0072577400207519535, | |
0.007457098960876465, | |
0.007290060043334961, | |
0.007715338230133056, | |
0.007976297855377196, | |
0.008312936782836913, | |
0.007890217781066895, | |
0.007757898807525635, | |
0.008908294677734374, | |
0.007718857765197754, | |
0.00773325777053833, | |
0.007716938972473144, | |
0.007776937961578369, | |
0.007734377861022949, | |
0.007915338039398194, | |
0.007731338024139404, | |
0.0077407779693603514, | |
0.007730857849121094, | |
0.007437418937683105, | |
0.0070326199531555176, | |
0.006896941184997558, | |
0.007225419998168945, | |
0.007599499225616455, | |
0.0071799798011779785, | |
0.007185259819030762, | |
0.0070331010818481445, | |
0.0070617408752441406, | |
0.007125420093536377, | |
0.017474031448364256, | |
0.007239500045776367, | |
0.007483338832855225, | |
0.007476618766784668, | |
0.00719789981842041, | |
0.007197579860687256, | |
0.0070740609169006345, | |
0.006802700996398926, | |
0.00679262113571167, | |
0.006793261051177979, | |
0.006830380916595459, | |
0.006805901050567627, | |
0.007225580215454101, | |
0.007041901111602783, | |
0.007171020030975341, | |
0.007367340087890625, | |
0.007093581199645996, | |
0.0068870210647583, | |
0.006915340900421143, | |
0.006820140838623047, | |
0.006859021186828613, | |
0.006890861034393311, | |
0.0067583808898925785, | |
0.006807341098785401, | |
0.006820141792297363, | |
0.007988778114318848, | |
0.0077455778121948244, | |
0.007519177913665772 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 131.06110516166538 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |