# C4W1/C4W1\_Assignment "Exercise 5 - translate": I got a bunch of "eu", don't know the cause

**URL:** <https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596>\
**Category:** NLP with Sequence Models\
**Tags:** week-module-1, week-module-4, ai-discussions\
**Created:** [August 7, 2024, 2:58pm UTC](https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596 "2024-08-07T14:58:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldfish](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@goldfish](https://community.deeplearning.ai/u/goldfish)\
**Post date:** [August 7, 2024, 2:58pm UTC](https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596/1 "2024-08-07T14:58:23Z")

</div>

Hi, Mentor! I read all the discussion related to this exercise and took the advice to restart my kernel and rerun the cells. But I still got the same result ---- a bunch of “eu”. I passed the unite tests. I wonder where the mistake is from. Any advices? Many thanks!  
Sincerely,  
Shining

 ![Screen Shot 2024-08-07 at 10.39.35 AM](https://global.discourse-cdn.com/dlai/original/3X/b/f/bffe0686af4af12ef62d87baa41d8721b910ea41.png)

 ![Screen Shot 2024-08-07 at 10.40.20 AM](https://global.discourse-cdn.com/dlai/original/3X/0/a/0a586c7a4e2e87e08cbcfa62362a5eb1db1beef9.png)

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [August 7, 2024, 3:11pm UTC](https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596/2 "2024-08-07T15:11:47Z")

</div>

Hi @goldfish Seem like you have pass the test.

the bunch of eu showing you variation between temperature in the translation model. There is no issue as per what you have shared.

Do you understand the significance of temperature here?  
Temperature parameter determines the creativity and diversity of the text generated by the model.

A higher temperature value (e.g., 1.5) leads to more diverse and creative text, while a lower value (e.g., 0.5) results in more focused and deterministic text. So when temperature value of 0 was used, results varied to be too restrictive leading to bunches of eu’s

Regards  
DP

---

<div class="post-metadata">

**Author:** ![goldfish](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@goldfish](https://community.deeplearning.ai/u/goldfish)\
**Post date:** [August 7, 2024, 3:24pm UTC](https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596/3 "2024-08-07T15:24:29Z")

</div>

Thank you for your reply! I remember you explained the meaning of temperature in other threads about the same topic. I remember some one got a smaller size of translation tokens. So I want to know why I had 50 "eu"s. Shouldn’t I get 5 or 6 "eu"s? I am lost.

---

<div class="post-metadata">

**Author:** ![Deepti\_Prasad](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/deepti_prasad/32/165831_2.png) [@Deepti\_Prasad](https://community.deeplearning.ai/u/Deepti_Prasad)\
**Post date:** [August 7, 2024, 4:00pm UTC](https://community.deeplearning.ai/t/c4w1-c4w1-assignment-exercise-5-translate-i-got-a-bunch-of-eu-dont-know-the-cause/674596/4 "2024-08-07T16:00:04Z")

</div>

Your question has a bit answer to your doubt? i suppose you already when through the comment you commented on the other thread. Did you notice the variation in logits?

model is being trained on randomness of weight which will vary from your model to my model, resulting in different output.

Try re-run your model and then translation do you get the same bunch of EU’s 🙂
