Users have shared varied experiences when utilizing AMD EPYC processors for running large language models (LLMs). Some have encountered performance challenges, while others have reported significant improvements, particularly with newer hardware and optimized software.
In a discussion on GitHub, a user reported that their AMD EPYC 9374F system achieved approximately 60% of its theoretical memory bandwidth when running the llama-2-70b-chat.Q8_0.gguf model. They implemented several optimizations, including adjusting BIOS settings, disabling NUMA balancing, and distributing workloads across NUMA nodes. Despite these efforts, the performance was considered suboptimal, with prompt evaluation times of about 12.70 tokens per second and generation times around 3.93 tokens per second. The user expressed a desire for further performance enhancements[1].
Conversely, advancements in AMD's hardware and software have led to notable performance gains. The release of ZenDNN 5.0, optimized for 5th Gen AMD EPYC processors, has demonstrated an average 400% performance uplift over previous versions. This improvement is attributed to enhanced support for generative LLMs, compatibility with AOCL BLIS 5.0, and advanced auto-tuning algorithms. The ZenDNN 5.0 Plugin for PyTorch introduces the zentorch.llm.optimize method, facilitating targeted optimizations for generative LLMs with minimal code modifications[2].
Additionally, collaborations between Neural Magic and AMD have leveraged the capabilities of 4th Gen AMD EPYC processors to achieve significant performance boosts in machine learning workloads. By utilizing Neural Magic's DeepSparse Engine and SparseML libraries, combined with the enhanced features of AMD's latest processors, users have observed nearly a 4x performance increase over previous generations. This collaboration has enabled efficient processing of machine learning models on commodity hardware, reducing the need for specialized accelerators[3].
In summary, while earlier experiences with AMD EPYC processors for LLMs highlighted performance limitations, recent advancements in both hardware and software have significantly improved their suitability for such workloads. Users are encouraged to leverage the latest processor generations and optimized libraries to achieve optimal performance when running large language models on AMD EPYC systems.