Programs/DeepLearning.AI

Program profile · official sources

Attention in Transformers: Concepts and Code in PyTorch

DeepLearning.AI and StatQuest explain attention mechanisms and implement them in PyTorch. Learners connect token and positional embeddings to query, key and value matrices, work through self-attention and masked self-attention, and examine encoder-decoder and multi-head attention. Coding examples implement these operations as classes. Basic Python is the stated background. This is a focused model-foundations course, rather than a general AI-assisted software development programme.

At a glance

Facts checked Oct 16, 2026

Price
Free
(As shown in the United States on Oct 16, 2026, the provider support page allows free content access, excluding certificates and Accomplishments. Zero applies only to content access, not a credential-inclusive total. The course header marks its 1 graded assignment as Pro access. No complete third-party API, software or compute budget is established. The course page describes free access as limited to the platform beta; no end date is stated. No numeric Pro subscription price is established by this course page or the visible membership capture.)
Time
1h16m listed course duration
Level
Beginner
Credential
DeepLearning.AI Accomplishment

The provider recommends sharing an Accomplishment screenshot, including on LinkedIn.

Prerequisites
Basic Python knowledge is the stated learner background; the page does not list a separate formal mathematics prerequisite. The course header marks its 1 graded assignment as Pro access. Free content access does not establish access to every listed assessment or project.
Format
Online self-paced learning with video lessons and listed activities
Details from the provider's page

Commercial status: no commercial relationship is documented for this page. The verification link goes directly to the official provider source.

This program is free. It is not plotted on the logarithmic price scale. See the sourced pricing details below.

See the full registry price landscape. Prices retain their stated payment scope; they are not comparable completion costs.

What’s covered

  • Introduction
  • The Main Ideas Behind Transformers and Attention
  • The Matrix Math for Calculating Self-Attention
  • Coding Self-Attention in PyTorch
  • Self-Attention vs Masked Self-Attention
  • The Matrix Math for Calculating Masked Self-Attention
  • Coding Masked Self-Attention in PyTorch
  • Encoder-Decoder Attention
  • Multi-Head Attention
  • Coding Encoder-Decoder Attention and Multi-Head Attention in PyTorch
  • Conclusion
  • Quiz

Prerequisites: Basic Python knowledge is the stated learner background; the page does not list a separate formal mathematics prerequisite. The course header marks its 1 graded assignment as Pro access. Free content access does not establish access to every listed assessment or project.

Explore DeepLearning.AI

What you actually do

  • Introduction : 6m; Video; provider outline item · Source
  • The Main Ideas Behind Transformers and Attention : 4m; Video; provider outline item · Source
  • The Matrix Math for Calculating Self-Attention : 11m; Video; provider outline item · Source
  • Coding Self-Attention in PyTorch : 8m; Video with Code Example; provider outline item · Source
  • Self-Attention vs Masked Self-Attention : 14m; Video; provider outline item · Source
  • The Matrix Math for Calculating Masked Self-Attention : 3m; Video; provider outline item · Source
  • Coding Masked Self-Attention in PyTorch : 5m; Video with Code Example; provider outline item · Source
  • Encoder-Decoder Attention : 4m; Video; provider outline item · Source
  • Multi-Head Attention : 2m; Video; provider outline item · Source
  • Coding Encoder-Decoder Attention and Multi-Head Attention in PyTorch : 4m; Video with Code Example; provider outline item · Source
  • Conclusion : 1m; Video; provider outline item · Source
  • Quiz : 10m; Graded; provider outline item · Source

What the credential is

Credential type
DeepLearning.AI Accomplishment · www.deeplearning.ai / attention-in-transformers-concepts-and-code-in-pytorch
Credential
DeepLearning.AI Accomplishment · info.deeplearning.ai / draft-understanding-certificates-and-accomplishments-in-deeplearning.ai-courses
Issuer
DeepLearning.AI · info.deeplearning.ai / draft-understanding-certificates-and-accomplishments-in-deeplearning.ai-courses
Sharing
The provider recommends sharing an Accomplishment screenshot, including on LinkedIn. · info.deeplearning.ai / draft-understanding-certificates-and-accomplishments-in-deeplearning.ai-courses
Exam requirement
The outline lists 1 graded assignment. A separate comprehensive final examination and passing threshold are not stated. · www.deeplearning.ai / attention-in-transformers-concepts-and-code-in-pytorch
Credential scope
As checked on Oct 16, 2026, Pro subscribers completing this short course receive an Accomplishment visible in their account. It is explicitly not an official certificate. Free users do not receive certificates or accomplishments. Passing thresholds, separate final-exam requirements, expiry, renewal and academic credit are not established. The course header marks its 1 graded assignment as Pro access. Direct Pro membership upgrades take effect immediately. After a downgrade, access to content and eligibility to earn certificates continue until the next billing cycle, and progress on started courses is saved for 180 days. This does not turn short-course Accomplishments into official certificates. The seven-day trial can be cancelled to avoid charges. After the trial, new payments, renewals and upgrades are non-refundable; early cancellation or downgrade receives no partial refund, with access until the next renewal. Incorrect charges or charges after a trial cancellation may qualify for a full refund after support review. Eligible refunds typically take 5–10 business days, depending on the bank. These are direct-platform terms, not Coursera terms. · info.deeplearning.ai / draft-understanding-certificates-and-accomplishments-in-deeplearning.ai-courses

Cost details

Membership and refund terms: As checked on Oct 16, 2026, direct Pro membership upgrades take effect immediately. After a downgrade, access to content and eligibility to earn certificates continue until the next billing cycle, and progress on started courses is saved for 180 days. This does not turn short-course Accomplishments into official certificates. The seven-day trial can be cancelled to avoid charges. After the trial, new payments, renewals and upgrades are non-refundable; early cancellation or downgrade receives no partial refund, with access until the next renewal. Incorrect charges or charges after a trial cancellation may qualify for a full refund after support review. Eligible refunds typically take 5–10 business days, depending on the bank. These are direct-platform terms, not Coursera terms. · Source · Source · Source · Source

Source differences retained

As checked on Oct 16, 2026, the official page gives differing information on the points below. Each reading is kept as found; none is reconciled.

  • Language: As checked on Oct 16, 2026, the matching Course metadata states inLanguage="en" and availableLanguage=["en","jp","kr"]. English is retained; the additional literal codes do not establish teaching audio, subtitles or another language-option scope. · Source
  • Duration: The visible course duration is 1h16m; same-course embedded courseWorkload PT1H differs. No numeric completion estimate is inferred. · Source

Alternatives in the registry

Programs from other providers, a comparison and a guide.

How we checked

Program Change Monitor : every two weeks

Three programs whose price or content changed, plus one new decision guide. Sourced and dated, no marketing.

Next steps

Compare alternatives

Intro to LLMs vs Attention in Transformers: Concepts and Code in PyTorch →All comparisons for this program →← All programs