IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
112f96f verified
raw
history blame
13.7 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",
"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.1",
"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": 1082.118144,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.49333436584472645,
"mean": 0.008969715742631394,
"stdev": 0.00037400089414352597,
"p50": 0.009012928009033203,
"p90": 0.009344454002380372,
"p95": 0.009613228893280028,
"p99": 0.00990101287841797,
"values": [
0.009983455657958985,
0.009830783843994141,
0.009713536262512206,
0.00951859188079834,
0.009336447715759278,
0.00898323154449463,
0.008966272354125976,
0.009111040115356446,
0.009036383628845214,
0.009088576316833496,
0.009076512336730957,
0.009041791915893554,
0.00908841609954834,
0.008915200233459472,
0.009012928009033203,
0.00901296043395996,
0.00918835163116455,
0.009130559921264648,
0.008940608024597167,
0.009100704193115235,
0.009032671928405761,
0.009049023628234863,
0.009166432380676269,
0.008967935562133789,
0.0090251522064209,
0.008995871543884277,
0.009278240203857422,
0.009570240020751953,
0.009349791526794434,
0.009263263702392579,
0.008883999824523927,
0.009125023841857911,
0.008976575851440429,
0.009329279899597169,
0.009330368041992188,
0.009011008262634278,
0.009038911819458009,
0.009012288093566894,
0.008876128196716309,
0.00886303997039795,
0.008509856224060058,
0.008539936065673829,
0.008500960350036621,
0.00840460777282715,
0.008389599800109863,
0.008409791946411133,
0.00847926425933838,
0.008511103630065919,
0.008496288299560548,
0.008496895790100097,
0.008471455574035645,
0.008459391593933106,
0.008468128204345704,
0.008482815742492676,
0.008492671966552734
]
},
"throughput": {
"unit": "tokens/s",
"value": 222.9725063074598
},
"energy": {
"unit": "kWh",
"cpu": 1.0489163409292172e-07,
"ram": 5.734902495259225e-08,
"gpu": 1.9478137509734504e-07,
"total": 3.57022034142859e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5601895.145776126
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1082.118144,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5110882558822633,
"mean": 0.009292513743313875,
"stdev": 0.0003813521704025652,
"p50": 0.009357184410095214,
"p90": 0.009759686279296876,
"p95": 0.009877104473114013,
"p99": 0.010096952228546143,
"values": [
0.010058591842651367,
0.010141983985900879,
0.010029984474182128,
0.009765983581542969,
0.009771136283874512,
0.009287872314453126,
0.00942131233215332,
0.009395232200622558,
0.009313311576843262,
0.009457951545715331,
0.009386783599853515,
0.009375776290893555,
0.009507391929626465,
0.009300895690917969,
0.009355456352233886,
0.009364447593688964,
0.009533568382263184,
0.009383584022521973,
0.009439200401306152,
0.009389984130859374,
0.009325216293334961,
0.009308352470397949,
0.009254015922546387,
0.009357184410095214,
0.009319744110107421,
0.009409215927124024,
0.00981158447265625,
0.009750240325927735,
0.009732319831848144,
0.009643136024475097,
0.009736543655395507,
0.009372799873352052,
0.00956339168548584,
0.009509504318237305,
0.009625727653503419,
0.009340895652770995,
0.009357728004455567,
0.009170463562011719,
0.00915328025817871,
0.009099743843078613,
0.008905440330505372,
0.008793055534362793,
0.008750271797180176,
0.00866966438293457,
0.00868943977355957,
0.008668607711791992,
0.008785375595092773,
0.00877507209777832,
0.008788479804992675,
0.008783328056335448,
0.008757439613342285,
0.008761280059814453,
0.008765024185180664,
0.008783904075622559,
0.008890336036682128
]
},
"throughput": {
"unit": "tokens/s",
"value": 107.61350777872322
},
"energy": {
"unit": "kWh",
"cpu": 1.0091910506985953e-07,
"ram": 5.502229856032802e-08,
"gpu": 2.2757049535093003e-07,
"total": 3.835118989811177e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2607481.026421126
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9862563838958739,
"mean": 0.018264007109182853,
"stdev": 0.0007188208797822017,
"p50": 0.01840076732635498,
"p90": 0.019126374435424805,
"p95": 0.019352443885803223,
"p99": 0.019894435539245605,
"values": [
0.02001817512512207,
0.019784704208374023,
0.019341344833374022,
0.019149791717529296,
0.018329599380493163,
0.01840127944946289,
0.018566144943237304,
0.018355199813842774,
0.018603008270263673,
0.018502656936645507,
0.01843097686767578,
0.01862451171875,
0.01827123260498047,
0.01839923286437988,
0.01840640068054199,
0.018745344161987306,
0.01855897521972656,
0.01840640068054199,
0.01850169563293457,
0.01838585662841797,
0.01841049575805664,
0.018482240676879882,
0.018350015640258788,
0.018365440368652345,
0.018397184371948243,
0.019133440017700197,
0.019373056411743163,
0.019109888076782225,
0.018968576431274413,
0.0186562557220459,
0.0186060791015625,
0.018480127334594726,
0.018897920608520507,
0.01902796745300293,
0.01840025520324707,
0.01843612861633301,
0.01824764823913574,
0.018061311721801757,
0.0179814395904541,
0.017460224151611328,
0.017342464447021484,
0.017289215087890625,
0.017115135192871094,
0.017099775314331055,
0.017102848052978514,
0.017294336318969726,
0.017310720443725586,
0.017305599212646485,
0.017300479888916014,
0.01725542449951172,
0.01725132751464844,
0.017257471084594727,
0.017300479888916014,
0.01740287971496582
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.752497303684024
},
"energy": null,
"efficiency": null
}
}
}