IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
eea4737 verified
raw
history blame
16.9 kB
{
"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.25696,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.220-209.869.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.1",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 790.900736,
"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.35277978515625,
"mean": 7.35277978515625,
"stdev": 0.0,
"p50": 7.35277978515625,
"p90": 7.35277978515625,
"p95": 7.35277978515625,
"p99": 7.35277978515625,
"values": [
7.35277978515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.93529004861355e-07,
"ram": 5.285035833366603e-07,
"gpu": 1.688056906000001e-06,
"total": 3.210089494198016e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1195.76576,
"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.49234038257598867,
"mean": 0.006934371585577306,
"stdev": 0.00035012439951936724,
"p50": 0.007017727851867676,
"p90": 0.007299232006072998,
"p95": 0.007333775997161865,
"p99": 0.007785257482528685,
"values": [
0.007652575969696045,
0.0072614078521728515,
0.007209280014038086,
0.007235231876373291,
0.007062431812286377,
0.007108543872833252,
0.007299871921539307,
0.007321343898773193,
0.006824448108673096,
0.006903999805450439,
0.007228032112121582,
0.007266592025756836,
0.007098656177520752,
0.0072984957695007326,
0.0067495999336242675,
0.0068128957748413085,
0.007165311813354492,
0.007151135921478272,
0.007286784172058106,
0.007332320213317871,
0.0071621122360229494,
0.007078879833221435,
0.007283423900604248,
0.007242271900177002,
0.0070412478446960445,
0.0071617598533630375,
0.007299232006072998,
0.00722979211807251,
0.007012383937835693,
0.007080895900726318,
0.007183872222900391,
0.007380640029907227,
0.007335231781005859,
0.007191103935241699,
0.007017727851867676,
0.007023776054382324,
0.0070572800636291505,
0.00693500804901123,
0.00682425594329834,
0.006568863868713379,
0.007041024208068848,
0.0070529599189758305,
0.007210783958435059,
0.008094847679138184,
0.006617824077606201,
0.0065755839347839354,
0.006533472061157226,
0.00655347204208374,
0.006575039863586426,
0.006551199913024902,
0.00700489616394043,
0.00677891206741333,
0.006511583805084229,
0.006574816226959228,
0.0066976318359375,
0.006609471797943115,
0.006559455871582031,
0.006531487941741943,
0.0067415361404418945,
0.006559616088867188,
0.006278656005859375,
0.006263040065765381,
0.00625216007232666,
0.00669974422454834,
0.006590400218963623,
0.006541888236999512,
0.0065615038871765135,
0.006549248218536377,
0.006510111808776855,
0.006664031982421875,
0.0066752638816833494
]
},
"throughput": {
"unit": "tokens/s",
"value": 288.41834841383024
},
"energy": {
"unit": "kWh",
"cpu": 7.835533509228714e-08,
"ram": 4.284203469495187e-08,
"gpu": 1.5566898418420922e-07,
"total": 2.768663539714482e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7223701.8738876805
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1214.173184,
"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.5155839996337893,
"mean": 0.007261746473715339,
"stdev": 0.000344674504769406,
"p50": 0.007379776000976563,
"p90": 0.0076603198051452635,
"p95": 0.007696063995361328,
"p99": 0.007770764636993408,
"values": [
0.007766751766204834,
0.00758784008026123,
0.0075285758972167965,
0.00763315200805664,
0.007402175903320312,
0.007516767978668213,
0.007671135902404785,
0.007548895835876465,
0.007338016033172607,
0.007572480201721191,
0.0076112961769104,
0.007616735935211181,
0.007569439888000488,
0.007576223850250244,
0.007047455787658691,
0.007484799861907959,
0.007579391956329346,
0.007496992111206055,
0.007704512119293213,
0.0076876158714294434,
0.007546527862548828,
0.007730656147003174,
0.007556992053985596,
0.007654240131378174,
0.0074000639915466305,
0.007523839950561524,
0.007488512039184571,
0.007434624195098877,
0.007379776000976563,
0.007468160152435303,
0.0076603198051452635,
0.007620607852935791,
0.007537888050079346,
0.007589791774749756,
0.007679327964782715,
0.007361184120178223,
0.007072288036346436,
0.007467711925506592,
0.00687820816040039,
0.0069235520362854,
0.007291711807250976,
0.007425920009613037,
0.007780128002166748,
0.007282944202423096,
0.006895967960357666,
0.006752064228057861,
0.00691107177734375,
0.0072683200836181645,
0.006912576198577881,
0.006838687896728516,
0.006891168117523193,
0.006888768196105957,
0.006861695766448975,
0.006870560169219971,
0.006903520107269287,
0.006865888118743896,
0.006895967960357666,
0.006801343917846679,
0.00704095983505249,
0.00688428783416748,
0.006638432025909424,
0.006571104049682617,
0.006847839832305908,
0.006923456192016602,
0.006780640125274658,
0.006867519855499268,
0.006915999889373779,
0.0068626561164855954,
0.007154751777648926,
0.006980927944183349,
0.006862592220306396
]
},
"throughput": {
"unit": "tokens/s",
"value": 137.7079196608703
},
"energy": {
"unit": "kWh",
"cpu": 7.625295199285602e-08,
"ram": 4.169569308892437e-08,
"gpu": 1.4755636662098736e-07,
"total": 2.655050117027679e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3766407.2462763796
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.4817181448936463,
"mean": 0.006784762604135863,
"stdev": 0.00028563933171124486,
"p50": 0.006871039867401123,
"p90": 0.007136256217956543,
"p95": 0.007147984027862549,
"p99": 0.007206204986572266,
"values": [
0.0072212800979614255,
0.007063551902770996,
0.007007232189178467,
0.0071157760620117185,
0.006899712085723877,
0.006994944095611572,
0.007136256217956543,
0.007038976192474365,
0.006808576107025147,
0.007009280204772949,
0.007079936027526855,
0.0070522880554199216,
0.007031775951385498,
0.007046144008636474,
0.006551551818847656,
0.006958079814910889,
0.00704307222366333,
0.006969344139099121,
0.0071526398658752445,
0.007142399787902832,
0.007014400005340577,
0.00719974422454834,
0.007021567821502686,
0.007138304233551026,
0.006884352207183838,
0.006968319892883301,
0.006985727787017822,
0.006930431842803955,
0.006854656219482422,
0.0069550080299377445,
0.007120895862579346,
0.007078911781311035,
0.007012351989746094,
0.0070380158424377445,
0.007143328189849854,
0.006867968082427979,
0.0066416640281677245,
0.0069550080299377445,
0.0064542717933654785,
0.006498303890228272,
0.0067942080497741695,
0.006904831886291504,
0.0071905279159545895,
0.006825984001159668,
0.006491136074066162,
0.006368256092071533,
0.006512639999389648,
0.006871039867401123,
0.0065177597999572755,
0.0064440321922302245,
0.006493184089660644,
0.006496255874633789,
0.006465536117553711,
0.006464511871337891,
0.006490111827850342,
0.006469632148742676,
0.006501376152038574,
0.006387712001800537,
0.006592512130737305,
0.0064839677810668945,
0.0062566399574279785,
0.006177792072296143,
0.0064440321922302245,
0.006514624118804931,
0.006386688232421875,
0.006471680164337158,
0.0065146880149841305,
0.006432767868041992,
0.006642687797546387,
0.006557695865631104,
0.006467584133148193
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.38909205023901
},
"energy": null,
"efficiency": null
}
}
}