# PyTorch: Advanced Architectures and Deployment

**URL:** https://community.deeplearning.ai/c/course-q-a/professional-certificate-pytorch-for-deep-learning/pytorch-advanced-architectures-and-deployment/562.md?page=1

[Latest](https://community.deeplearning.ai/latest.md) · [Categories](https://community.deeplearning.ai/categories.md) · [Tags](https://community.deeplearning.ai/tags.md)

**Page:** 2

---

## [Encoder\_decoder\_architecture.svg missing](https://community.deeplearning.ai/t/encoder-decoder-architecture-svg-missing/886505)

<div class="topic-metadata">

**Author:** [@altierispeixoto](https://community.deeplearning.ai/u/altierispeixoto)\
**Replies:** 1\
**Last updated:** [January 8, 2026, 10:01am UTC](https://community.deeplearning.ai/t/encoder-decoder-architecture-svg-missing/886505 "2026-01-08T10:01:13Z")

</div>

The image encoder\_decoder\_architecture.svg in the notebook C3M3\_Assignment.ipynb is missing. !\[Encoder-Decoder Architecture\](images/encoder\_decoder\_architecture.svg)

---

## [Repository Not Found for url: https://huggingface.co/api/models/stabilityai/stable-diffusion-2-base](https://community.deeplearning.ai/t/repository-not-found-for-url-https-huggingface-co-api-models-stabilityai-stable-diffusion-2-base/885124)

<div class="topic-metadata">

**Author:** [@xzhang14](https://community.deeplearning.ai/u/xzhang14)\
**Replies:** 7\
**Last updated:** [January 6, 2026, 3:07pm UTC](https://community.deeplearning.ai/t/repository-not-found-for-url-https-huggingface-co-api-models-stabilityai-stable-diffusion-2-base/885124 "2026-01-06T15:07:53Z")

</div>

The assignment of module 2: visualizing AI food quality inspection. In section 9.1 -optional exercises: text-to-image generation. It refers to the stable-diffusion-2-base. It says to use model from local (.models) cache …

---

## [Http error for Optional exercise Text to image generator Exercise](https://community.deeplearning.ai/t/http-error-for-optional-exercise-text-to-image-generator-exercise/885982)

<div class="topic-metadata">

**Author:** [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Replies:** 2\
**Last updated:** [January 6, 2026, 3:06pm UTC](https://community.deeplearning.ai/t/http-error-for-optional-exercise-text-to-image-generator-exercise/885982 "2026-01-06T15:06:28Z")

</div>

Hi @Mubsi, Although it didn’t effect my grading but while going through the optional Text to image generator codes, I encountered HTTPError for the stablediffusion-2 model being not cached locally, (Stable diffusion mod…

---

## [Best place optimizer.zero\_grad() call in training loop?](https://community.deeplearning.ai/t/best-place-optimizer-zero-grad-call-in-training-loop/885781)

<div class="topic-metadata">

**Author:** [@yildirimga](https://community.deeplearning.ai/u/yildirimga)\
**Replies:** 10\
**Last updated:** [January 6, 2026, 9:50am UTC](https://community.deeplearning.ai/t/best-place-optimizer-zero-grad-call-in-training-loop/885781 "2026-01-06T09:50:04Z")

</div>

Hi All, I have been studying deeplearning and pytroch as like all of you, I keep seeing two patterns to putting optimizer.zero\_grad() function calls, one, immedatetly call in train loops and other pattern just before st…

---

## [Course progress and certificate](https://community.deeplearning.ai/t/course-progress-and-certificate/886324)

<div class="topic-metadata">

**Author:** [@Daeil\_Chun](https://community.deeplearning.ai/u/Daeil_Chun)\
**Replies:** 2\
**Last updated:** [January 5, 2026, 10:03am UTC](https://community.deeplearning.ai/t/course-progress-and-certificate/886324 "2026-01-05T10:03:09Z")

</div>

Hi there! I already got my certificate, but my learning dashboard says it’s in-progress 99%. What could have I missed? It’s not a urgent issue. I just want to clean up my dashboard, and move on to another course!

---

## [General question about model pruning](https://community.deeplearning.ai/t/general-question-about-model-pruning/886137)

<div class="topic-metadata">

**Author:** [@Marcelo\_Bacher](https://community.deeplearning.ai/u/Marcelo_Bacher)\
**Replies:** 3\
**Last updated:** [January 5, 2026, 9:49am UTC](https://community.deeplearning.ai/t/general-question-about-model-pruning/886137 "2026-01-05T09:49:11Z")

</div>

Hi, after viewing and reviewing the pruning, I am not sure if I got the whole picture. Model pruning identifies weights in the model that could be zeroed, and thus, in some cases a new model architecture may be better fo…

---

## [Is language translation in decoder only architecture possible?](https://community.deeplearning.ai/t/is-language-translation-in-decoder-only-architecture-possible/886171)

<div class="topic-metadata">

**Author:** [@yildirimga](https://community.deeplearning.ai/u/yildirimga)\
**Replies:** 1\
**Last updated:** [January 3, 2026, 5:24am UTC](https://community.deeplearning.ai/t/is-language-translation-in-decoder-only-architecture-possible/886171 "2026-01-03T05:24:20Z")

</div>

I am now studying NLP in Pytorch for Deep Learning (module 3). In the course material, example given for encoder-decoder is for language translation. The course materials as the previous modules are excellent. My questi…

---

## [I need help to Get the index of the channel with the highest mean activation](https://community.deeplearning.ai/t/i-need-help-to-get-the-index-of-the-channel-with-the-highest-mean-activation/885617)

<div class="topic-metadata">

**Author:** [@gurinderpanesar](https://community.deeplearning.ai/u/gurinderpanesar)\
**Replies:** 5\
**Last updated:** [January 1, 2026, 5:54am UTC](https://community.deeplearning.ai/t/i-need-help-to-get-the-index-of-the-channel-with-the-highest-mean-activation/885617 "2026-01-01T05:54:50Z")

</div>

for name in \["conv1", "layer1", "layer2", "layer3", "layer4"\]: fm = feats\[name\] # Get the feature map for the \<\<name\>\> layer #idx = idx # Get the index of the channel with the highest mean activation sel = fm…

---

## [Can latent space images be stored and only original image be visible to the party one wants it to be visible?](https://community.deeplearning.ai/t/can-latent-space-images-be-stored-and-only-original-image-be-visible-to-the-party-one-wants-it-to-be-visible/885836)

<div class="topic-metadata">

**Author:** [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Replies:** 4\
**Last updated:** [December 31, 2025, 1:39am UTC](https://community.deeplearning.ai/t/can-latent-space-images-be-stored-and-only-original-image-be-visible-to-the-party-one-wants-it-to-be-visible/885836 "2025-12-31T01:39:27Z")

</div>

I just had some fun exercise with Diffusion model. Played with prompts like ’ A prime minister confessing his crime’ to changing guiding scales and inference steps. It was funny to see the images. I also added negativ…

---

## [PyTorch for Deep Learning - DeepLearning.AI Visualizing AI Food Quality Inspection Assignment Grader](https://community.deeplearning.ai/t/pytorch-for-deep-learning-deeplearning-ai-visualizing-ai-food-quality-inspection-assignment-grader/885787)

<div class="topic-metadata">

**Author:** [@emronr](https://community.deeplearning.ai/u/emronr)\
**Replies:** 3\
**Last updated:** [December 29, 2025, 2:53am UTC](https://community.deeplearning.ai/t/pytorch-for-deep-learning-deeplearning-ai-visualizing-ai-food-quality-inspection-assignment-grader/885787 "2025-12-29T02:53:18Z")

</div>

I passed all the tests in the assignment except the optional ones. However, my grade is still 34/100. Checked with the solutions no bugs. Yet, the grader does not give me any feedback also. Any idea on why it might be ha…

---

## [C3M3\_Lab\_3\_decoder: decoder implementation](https://community.deeplearning.ai/t/c3m3-lab-3-decoder-decoder-implementation/885585)

<div class="topic-metadata">

**Author:** [@ccaloian](https://community.deeplearning.ai/u/ccaloian)\
**Replies:** 1\
**Last updated:** [December 23, 2025, 11:17pm UTC](https://community.deeplearning.ai/t/c3m3-lab-3-decoder-decoder-implementation/885585 "2025-12-23T23:17:37Z")

</div>

I am trying to understand the Decoder class implementation of this lab (section 3.4). My understanding from the Decoders video is that nn.TransformerDecoderLayer and nn.TransformerDecoder modules are designed for encoder…

---

## [C3M3\_Assignment Exercise 2](https://community.deeplearning.ai/t/c3m3-assignment-exercise-2/885082)

<div class="topic-metadata">

**Author:** [@Atharvapathak99](https://community.deeplearning.ai/u/Atharvapathak99)\
**Replies:** 2\
**Last updated:** [December 16, 2025, 5:22am UTC](https://community.deeplearning.ai/t/c3m3-assignment-exercise-2/885082 "2025-12-16T05:22:53Z")

</div>

I have implemented the Exercise 2 and all the code in the graded cell but I keep getting an error for the Unit test. I tried to understand the error using hints provided but I didn’t get it. The output are as follows …

---

## [C3M3\_Assignment - Decoder definition error](https://community.deeplearning.ai/t/c3m3-assignment-decoder-definition-error/884282)

<div class="topic-metadata">

**Author:** [@ChaseMcCain](https://community.deeplearning.ai/u/ChaseMcCain)\
**Replies:** 5\
**Last updated:** [December 16, 2025, 5:21am UTC](https://community.deeplearning.ai/t/c3m3-assignment-decoder-definition-error/884282 "2025-12-16T05:21:23Z")

</div>

I have problem with decoder and task quite big to identify where is the error. Do you have any idea where do dig? ====================================================================== Decoder - Main Layers ===========…

---

## [C3M4 Assignment Exercise 4 Test Failure](https://community.deeplearning.ai/t/c3m4-assignment-exercise-4-test-failure/884991)

<div class="topic-metadata">

**Author:** [@perpetual-stranger](https://community.deeplearning.ai/u/perpetual-stranger)\
**Replies:** 2\
**Last updated:** [December 13, 2025, 7:50pm UTC](https://community.deeplearning.ai/t/c3m4-assignment-exercise-4-test-failure/884991 "2025-12-13T19:50:06Z")

</div>

I am encountering a strange error in the test for Exercise 4 in the Module 4 assignment of Course 3. In particular, the error is the following. I am able to receive 9/10 points for this portion of the assignment, and all…

---

## [Issues with Module 3 Videos and Transformer Encoder Lab](https://community.deeplearning.ai/t/issues-with-module-3-videos-and-transformer-encoder-lab/884917)

<div class="topic-metadata">

**Author:** [@chentianyu](https://community.deeplearning.ai/u/chentianyu)\
**Replies:** 0\
**Last updated:** [December 12, 2025, 3:52pm UTC](https://community.deeplearning.ai/t/issues-with-module-3-videos-and-transformer-encoder-lab/884917 "2025-12-12T15:52:48Z")

</div>

Hello, I would like to report a few issues I encountered in Module 3: Video Audio/Subtitle Mismatch For both the “Encoders” and “Decoders” videos, the audio and subtitles do not match the video content. Lab Code …

---

## [C3\_M2\_Programming\_Assignment : Stuck in the optional exercises](https://community.deeplearning.ai/t/c3-m2-programming-assignment-stuck-in-the-optional-exercises/884477)

<div class="topic-metadata">

**Author:** [@pableitor](https://community.deeplearning.ai/u/pableitor)\
**Replies:** 0\
**Last updated:** [December 4, 2025, 5:40pm UTC](https://community.deeplearning.ai/t/c3-m2-programming-assignment-stuck-in-the-optional-exercises/884477 "2025-12-04T17:40:14Z")

</div>

Hi Thanks for this amazing course, Unfortunately the optional exercises 9.1 and 9.2 of the C3M2 programming assignment are not working! I tried the code from the “solution to exercise” and it gives an error when trying…

---

## [Course 3 Module 3 Quiz 1 Question 3 frames the problem incorrectly](https://community.deeplearning.ai/t/course-3-module-3-quiz-1-question-3-frames-the-problem-incorrectly/884145)

<div class="topic-metadata">

**Author:** [@arvyzukai](https://community.deeplearning.ai/u/arvyzukai)\
**Replies:** 3\
**Last updated:** [December 2, 2025, 12:06pm UTC](https://community.deeplearning.ai/t/course-3-module-3-quiz-1-question-3-frames-the-problem-incorrectly/884145 "2025-12-02T12:06:27Z")

</div>

The quiz implies that parallelism is the reason transformers need positional encodings. This is misleading and not technically accurate. Transformers need positional information because self-attention is permutation…

---

## [C3M2\_Assignment \_, \_, issue](https://community.deeplearning.ai/t/c3m2-assignment-issue/884304)

<div class="topic-metadata">

**Author:** [@ChaseMcCain](https://community.deeplearning.ai/u/ChaseMcCain)\
**Replies:** 4\
**Last updated:** [December 2, 2025, 12:03pm UTC](https://community.deeplearning.ai/t/c3m2-assignment-issue/884304 "2025-12-02T12:03:51Z")

</div>

I am using exact code from hint, but it gives error def save\_fmap(\_, \_, output): ^ SyntaxError: duplicate argument '\_' in function definition Maybe you shouldn’t confuse users?

---

## [C3M3\_Assignment - Hint to define padding\_mask](https://community.deeplearning.ai/t/c3m3-assignment-hint-to-define-padding-mask/884278)

<div class="topic-metadata">

**Author:** [@ChaseMcCain](https://community.deeplearning.ai/u/ChaseMcCain)\
**Replies:** 5\
**Last updated:** [December 1, 2025, 10:13am UTC](https://community.deeplearning.ai/t/c3m3-assignment-hint-to-define-padding-mask/884278 "2025-12-01T10:13:43Z")

</div>

Programming Assignment: Building a Translation System def forward(self, src): Posting codes from grade function codes which asses your assignment grades is direct violation of Code of Conduct. Avoid posting any part of…

---

## [Course 3 Module 1: DenseNet Video Transcript](https://community.deeplearning.ai/t/course-3-module-1-densenet-video-transcript/883340)

<div class="topic-metadata">

**Author:** [@Aunuun\_Jeffry](https://community.deeplearning.ai/u/Aunuun_Jeffry)\
**Replies:** 3\
**Last updated:** [November 26, 2025, 10:40am UTC](https://community.deeplearning.ai/t/course-3-module-1-densenet-video-transcript/883340 "2025-11-26T10:40:43Z")

</div>

Hi, I notice that the transcript of the video about DenseNet in Course 3 Module 1 only lasts up to minute 2:12, and upon further checking, it seems the transcript doesn’t match with what is explained in the video. I’ve …

---

## [Question on Contrastive loss and Embedding](https://community.deeplearning.ai/t/question-on-contrastive-loss-and-embedding/883866)

<div class="topic-metadata">

**Author:** [@Esdras\_Souto\_Costa](https://community.deeplearning.ai/u/Esdras_Souto_Costa)\
**Replies:** 4\
**Last updated:** [November 26, 2025, 10:07am UTC](https://community.deeplearning.ai/t/question-on-contrastive-loss-and-embedding/883866 "2025-11-26T10:07:05Z")

</div>

He everyone, My question regards the contrastive loss and what the embedding space represents. In the “Applied Similarity Learning: Signatures & Satellites” lab, we learned about the Triplet and contrastive loss. as I …

---

## [Course 3 Module 2 Quiz 1: Cannot pass the quiz](https://community.deeplearning.ai/t/course-3-module-2-quiz-1-cannot-pass-the-quiz/882997)

<div class="topic-metadata">

**Author:** [@bong.seog.choi](https://community.deeplearning.ai/u/bong.seog.choi)\
**Replies:** 4\
**Last updated:** [November 11, 2025, 12:38pm UTC](https://community.deeplearning.ai/t/course-3-module-2-quiz-1-cannot-pass-the-quiz/882997 "2025-11-11T12:38:21Z")

</div>

There seems a bug in the system for Course 3 Module 2 Quiz 1. The score is shown as 5/5, but it keeps asking “Try again,” and the quiz is marked incomplete.

---

## [C3M3Lab1: glitch in unittests.exercise\_3](https://community.deeplearning.ai/t/c3m3lab1-glitch-in-unittests-exercise-3/882999)

<div class="topic-metadata">

**Author:** [@bong.seog.choi](https://community.deeplearning.ai/u/bong.seog.choi)\
**Replies:** 1\
**Last updated:** [November 10, 2025, 7:55pm UTC](https://community.deeplearning.ai/t/c3m3lab1-glitch-in-unittests-exercise-3/882999 "2025-11-10T19:55:37Z")

</div>

Problem: Decoder’s forward method takes three arguments: tgt, memory, memory\_padding\_mask=None. The last argument is a keyword argument named memory\_padding\_mask. The issue is the unit test for exercise 3 uses a differen…

---

## [C3\_M2\_Lab\_3\_stable\_diffusion.ipynb - error downloading from huggingface](https://community.deeplearning.ai/t/c3-m2-lab-3-stable-diffusion-ipynb-error-downloading-from-huggingface/882650)

<div class="topic-metadata">

**Author:** [@jhoof1](https://community.deeplearning.ai/u/jhoof1)\
**Replies:** 3\
**Last updated:** [November 3, 2025, 9:15pm UTC](https://community.deeplearning.ai/t/c3-m2-lab-3-stable-diffusion-ipynb-error-downloading-from-huggingface/882650 "2025-11-03T21:15:29Z")

</div>

Hi, In the stable\_diffusion notebook I keep getting an issue in the 2nd code block, downloading from huggingface.co

---

## [C3\_M1\_Lab\_3\_densenet tries to write to read-only filesystem via /saved\_models](https://community.deeplearning.ai/t/c3-m1-lab-3-densenet-tries-to-write-to-read-only-filesystem-via-saved-models/882641)

<div class="topic-metadata">

**Author:** [@jhoof1](https://community.deeplearning.ai/u/jhoof1)\
**Replies:** 2\
**Last updated:** [November 3, 2025, 3:21pm UTC](https://community.deeplearning.ai/t/c3-m1-lab-3-densenet-tries-to-write-to-read-only-filesystem-via-saved-models/882641 "2025-11-03T15:21:12Z")

</div>

Once the models start training, the best model is written in /saved\_models/name - but these files are linked to a read-only filesystem. Hence an error occurs. Fixed as follows: Added a new rw folder bla and changed the…

[Previous page](https://community.deeplearning.ai/c/course-q-a/professional-certificate-pytorch-for-deep-learning/pytorch-advanced-architectures-and-deployment/562.md)
