Generative AI Language Modeling with Transformers (Coursera)

Offered by IBM,
Generative AI Language Modeling with Transformers (Coursera)

This course provides you with an overview of how to use transformer-based models for natural language processing (NLP). In this course, you will learn to apply transformer-based models for text classification, focusing on the encoder component. You’ll learn about positional encoding, word embedding, and attention mechanisms in language transformers and their role in capturing contextual information and dependencies.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

Additionally, you will be introduced to multi-head attention and gain insights on decoder-based language modeling with generative pre-trained transformers (GPT) for language translation, training the models, and implementing them in PyTorch.
Further, you’ll explore encoder-based models with bidirectional encoder representations from transformers (BERT) and train using masked language modeling (MLM) and next sentence prediction (NSP).
Finally, you will apply transformers for translation by gaining insight into the transformer architecture and performing its PyTorch implementation.
The course offers practical exposure with hands-on activities that enables you to apply your knowledge in real-world scenarios.
This course is part of a specialized program tailored for individuals interested in Generative AI engineering.
This course requires a working knowledge of Python, PyTorch, and machine learning.

What you'll learn

  • Explain the concept of attention mechanisms in transformers, including their role in capturing contextual information.
  • Describe language modeling with the decoder-based GPT and encoder-based BERT.
  • Implement positional encoding, masking, attention mechanism, document classification, and create LLMs like GPT and BERT.
  • Use transformer-based models and PyTorch functions for text classification, language translation, and modeling.

Syllabus

Fundamental Concepts of Transformer Architecture
In this module, you will learn the techniques to achieve positional encoding and how to implement positional encoding in PyTorch. You will learn how attention mechanism works and how to apply attention mechanism to word embeddings and sequences. You will also learn how self-attention mechanisms help in simple language modeling to predict the token. In addition, you will learn about scaled dot-product attention mechanism with multiple heads and how the transformer architecture enhances the efficiency of attention mechanisms. You will also learn how to implement a series of encoder layer instances in PyTorch. Finally, you will learn how to use transformer-based models for text classification, including creating the text pipeline and the model and training the model.

Advanced Concepts of Transformer Architecture
In this module, you will learn about decoders and GPT-like models for language translation, train the models, and implement them using PyTorch. You will also gain knowledge about encoder models with Bidirectional Encoder Representations from Transformers (BERT) and pretrain them using masked language modeling (MLM) and next sentence prediction (NSP). You will also perform data preparation for BERT using PyTorch. Finally, you learn about the applications of transformers for translation by understanding the transformer architecture and performing its PyTorch Implementation. The hands-on labs in this module will give you good practice in how you can use the decoder model, encoder model, and transformers for real-world applications.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Artificial Intelligence for Breast Cancer Detection (Coursera) Coursera
Johns Hopkins University

Artificial Intelligence for Breast Cancer Detection (Coursera)

Through interactive lectures and module exercises, this course illustrates the potential of artificial intelligence in breast imaging. Topics include an introduction of breast cancer and breast imaging, introduction to artificial intelligence in image analysis and computer image processing of cancer detection. The course intends to provide students basic understanding of artificial intelligence approaches to breast cancer detection.

Sep 7th 2026
4 Weeks
How to Get Into AI (Coursera) Coursera
University of Leeds

How to Get Into AI (Coursera)

AI forms the basis for all computer learning and is the future of all complex decision-making. As such it is becoming increasingly prevalent in daily life. As a result, the outlook is bright for artificial intelligence jobs. In this course, you will learn how to navigate the dynamic field of artificial intelligence (AI), exploring its applications and the evolving landscape of AI-related careers.

Aug 31st 2026
2 Weeks
Frontiers in Dentistry (Coursera) Coursera
University of Pennsylvania

Frontiers in Dentistry (Coursera)

In this course, Frontiers in Dentistry, you will be able to explore some of the latest advances in the field of dental medicine. The innovations in therapeutic techniques as well as our understanding of the biomedical sciences have been made possible by our research enterprise which integrates the latest emerging technology along with interdisciplinary collaborations.

Aug 31st 2026
5-12 Weeks
Math for AI beginner part 1 Linear Algebra (Coursera) Coursera
Korea Advanced Institute of Science and Technology - KAIST

Math for AI beginner part 1 Linear Algebra (Coursera)

'Learn concept of AI such as machine learning, deep-learning, support vector machine which is related to linear algebra. Learn how to use linear algebra for AI algorithm. After completing this course, you are able to understand AI algorithm and basics of linear algebra for AI applications.

Aug 31st 2026
5-12 Weeks
AI, Business & the Future of Work (Coursera) Coursera
Lund University

AI, Business & the Future of Work (Coursera)

This course from Lunds university will help you understand and use AI so that you can transform your organisation to be more efficient, more sustainable and thus innovative. The lives of people all over the world are increasingly enhanced and shaped by artificial intelligence. To organisations there are tremendous opportunities, but also risks, so where do you start to plan for AI, business and the future of work?

Sep 7th 2026
4 Weeks
AI and the Illusion of Intelligence (Coursera) Coursera
Copenhagen Business School

AI and the Illusion of Intelligence (Coursera)

Will AI soon be surpassing humans? This is rapidly becoming one of the central questions of our time -- but it is the wrong question. In this course, we will provide a non-technical look at where AI has come from, and where it is going. We will see that there is no reason to expect that AI will be surpassing humans. Instead, what we are learning to create with AI is the illusion of intelligence.

Aug 31st 2026
4 Weeks
Machine Teaching for Autonomous AI (Coursera) Coursera
University of Washington

Machine Teaching for Autonomous AI (Coursera)

Just as teachers help students gain new skills, the same is true of artificial intelligence (AI). Machine learning algorithms can adapt and change, much like the learning process itself. Using the machine teaching paradigm, a subject matter expert (SME) can teach AI to improve and optimize a variety of systems and processes. The result is an autonomous AI system.

Sep 7th 2026
4 Weeks
Business Implications of AI: Full course (Coursera) Coursera
EIT Digital

Business Implications of AI: Full course (Coursera)

In this course you will learn what Artificial Intelligence is, from a leaders point of view. How shall we, as leaders, understand it from a corporate strategy point of view? What is it and how can it be used? What are the crucial strategic decisions we have to make, and how to make them? What consequences can we expect if we decide on doing AI-projects and what kind of competences do we need? Where shall we start, and what could be a good second as well as third step? What implications for the organization can we expect? These are the questions answered in this course.

Sep 7th 2026
4 Weeks
AI for Efficient Programming: Harnessing the Power of LLMs (Coursera) Coursera
Fred Hutchinson Cancer Center

AI for Efficient Programming: Harnessing the Power of LLMs (Coursera)

This course on Artificial Intelligence (AI) for software development explores the use of AI large language models such as ChatGPT, Bard, and others and their potential benefits and challenges. Through examples and hands-on activities, you will develop an understanding of the ways in which AI can speed up software development tasks and free up time for more creative and strategic work.

Sep 7th 2026
4 Weeks
Responsible AI - Principles and Ethical Considerations (Coursera) Coursera
Fractal Analytics

Responsible AI - Principles and Ethical Considerations (Coursera)

Welcome to "Responsible AI – Principles and Ethical Considerations"! Dive deep into the very essence of Responsible AI with us. Uncover the significance of key principles shaping technology's future. From ethical considerations to fairness, transparency, and accountability, we discuss these principles with real-world examples, putting them into the context of data science.

Sep 7th 2026
5-12 Weeks
AI Materials (Coursera) Coursera
Korea Advanced Institute of Science and Technology - KAIST

AI Materials (Coursera)

Learn about the materials that have advanced the performance of artificial intelligence, and the machine learning models that could help accelerate the design and development of novel materials. This course defines artificial intelligence (AI) as a machine to which some or all of the functions of the human brain have been delegated. It highlights the need, and explains in an easy-to-understand way how machine learning from artificial intelligence can dramatically accelerate the development of new materials.

Sep 7th 2026
5-12 Weeks