paper-with-me

Papers

GFormer: Accelerating Large Language Models with Optimized Transformers on Gaudi Processors

2024-12-19 · Chengming Zhang, Xinheng Ding, Baixi Sun, Xiaodong Yu, Weijian Zheng, Zhen Xie, Dingwen Tao

Heterogeneous hardware like Gaudi processor has been developed to enhance computations, especially matrix operations for Transformer-based large language models (LLMs) for generative AI tasks. However, our analysis indicates that Transformers are not fully optimized on such emerging hardware, primarily due to inadequate optimizations in non-matrix computational kernels like Softmax and in heterogeneous resource utilization, particularly when processing long sequences. To address these issues, we propose an integrated approach (called GFormer) that merges sparse and linear attention mechanisms. GFormer aims to maximize the computational capabilities of the Gaudi processor's Matrix Multiplication Engine (MME) and Tensor Processing Cores (TPC) without compromising model quality. GFormer includes a windowed self-attention kernel and an efficient outer product kernel for causal linear attention, aiming to optimize LLM inference on Gaudi processors. Evaluation shows that GFormer significantly improves efficiency and model performance across various tasks on the Gaudi processor and outperforms state-of-the-art GPUs.

📄 PDF Abstract BibTeX arXiv:2412.19829

Code (0)

등록된 구현이 없습니다.

Tasks

MME

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequences

2022-01-27 · Yikuan Li, Ramsey M. Wehbe, Faraz S. Ahmad, Hanyin Wang 외

Transformers-based models, such as BERT, have dramatically improved the performance for various natural language processing tasks. The clinical knowledge enriched model, namely ClinicalBERT, also achieved state-of-the-ar…

Clinical KnowledgeDocument ClassificationFew-Shot Learningnamed-entity-recognition+5

SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations

2023-06-19 · NeurIPS 2023 11 · Qitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang 외

Learning representations on large-sized graphs is a long-standing challenge due to the inter-dependence nature involved in massive data points. Transformers, as an emerging class of foundation encoders for graph-structur…

Node Property PredictionPhilosophyProperty Prediction

A Comparative Study of Pretrained Language Models for Long Clinical Text

2023-01-27 · Yikuan Li, Ramsey M. Wehbe, Faraz S. Ahmad, Hanyin Wang 외

Objective: Clinical knowledge enriched transformer models (e.g., ClinicalBERT) have state-of-the-art results on clinical NLP (natural language processing) tasks. One of the core limitations of these transformer models is…

Clinical KnowledgeDocument Classificationnamed-entity-recognitionNamed Entity Recognition+3

SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers

2021-05-31 · NeurIPS 2021 12 · Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar 외

We present SegFormer, a simple, efficient yet powerful semantic segmentation framework which unifies Transformers with lightweight multilayer perception (MLP) decoders. SegFormer has two appealing features: 1) SegFormer …

2D Semantic SegmentationC++ codeCrack SegmentationDecoder+2

SGFormer: Single-Layer Graph Transformers with Approximation-Free Linear Complexity

2024-09-13 · Qitian Wu, Kai Yang, Hengrui Zhang, David Wipf 외

Learning representations on large graphs is a long-standing challenge due to the inter-dependence nature. Transformers recently have shown promising performance on small graphs thanks to its global attention for capturin…

Deep AttentionRepresentation Learning