IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e8f8713
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"model": "openai-community/gpt2", | |
"processor": "openai-community/gpt2", | |
"device": "cpu", | |
"device_ids": null, | |
"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, | |
"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": false, | |
"device_isolation_action": "error", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.342208, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "701e27ceb63d18a62041650e250fe65f56ad5904", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1100.894208, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.780214838999996, | |
"mean": 4.780214838999996, | |
"stdev": 0.0, | |
"p50": 4.780214838999996, | |
"p90": 4.780214838999996, | |
"p95": 4.780214838999996, | |
"p99": 4.780214838999996, | |
"values": [ | |
4.780214838999996 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.719004842970107e-05, | |
"ram": 2.8083748754738735e-06, | |
"gpu": 0, | |
"total": 6.999842330517495e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 954.617856, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6210275410000463, | |
"mean": 0.04777134930769587, | |
"stdev": 0.0009193228560687074, | |
"p50": 0.04778399599999261, | |
"p90": 0.048928459800009705, | |
"p95": 0.04905860220000591, | |
"p99": 0.04913323403999925, | |
"values": [ | |
0.046934160000006386, | |
0.048996409000011454, | |
0.04865666300000271, | |
0.04644031399999449, | |
0.04915189199999759, | |
0.04778399599999261, | |
0.04638372900001286, | |
0.04696660100000827, | |
0.04861415299998839, | |
0.047880627000012055, | |
0.04846331000001669, | |
0.04772424300000466, | |
0.047031443999998146 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.86609817357208 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6613422168625727e-06, | |
"ram": 6.942955414174889e-08, | |
"gpu": 0.0, | |
"total": 1.7307717710043216e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1155553.8595591101 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 955.142144, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3904060739999977, | |
"mean": 0.030031236461538286, | |
"stdev": 0.0013511350541828351, | |
"p50": 0.030393991000011056, | |
"p90": 0.030839727000005722, | |
"p95": 0.03114112640000144, | |
"p99": 0.031457420479995335, | |
"values": [ | |
0.03064129500000945, | |
0.030629632999989553, | |
0.030877548000006527, | |
0.030530687000009493, | |
0.030393991000011056, | |
0.029912327000005234, | |
0.030688443000002508, | |
0.030184567999981482, | |
0.030314922000002298, | |
0.028842239999988806, | |
0.03153649399999381, | |
0.030026883000005, | |
0.0258270429999925 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.29866225390765 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.93105868498485e-07, | |
"ram": 4.150323855341754e-08, | |
"gpu": 0.0, | |
"total": 1.034609107051902e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 966548.6154954502 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3842157409999629, | |
"mean": 0.029555056999997147, | |
"stdev": 0.0013057223390617963, | |
"p50": 0.029879836000020532, | |
"p90": 0.030366949999989856, | |
"p95": 0.030661538399994016, | |
"p99": 0.030966545279997034, | |
"values": [ | |
0.03012916399998744, | |
0.030111852000004546, | |
0.030407365999991498, | |
0.03005145800000264, | |
0.029879836000020532, | |
0.029448957999989034, | |
0.03020528599998329, | |
0.029668710999999348, | |
0.02982945200000131, | |
0.028376034999979538, | |
0.03104279699999779, | |
0.029549588000008953, | |
0.025515237999996998 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.83515721184691 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |