NLP C3W2 Assignment: grader out of memory

Hello,

grader fails to grade the 4th task and returns this message:

Learner Error: Grader timed out

Please try optimizing the efficiency of your solution and submit again. You can also visit the discussion forum to see if your peers have experienced and found resolutions for similar errors, or if course staff have provided prior guidance for these errors… If the error isn’t resolved in 24 hours, please reach out to Coursera through our Help Center.

Model runs fine, but unit tests runs forever and grading fails. Nothing changed since 2 days, please help

@balaji.ambresh could you (or any other moderator) please help ? :slight_smile:

Please click my name and message your notebook as an attachment.

Grader feedback is valid.

Here are the things to fix in function train_model

  1. Use batch_size function parameter instead of 2
  2. Use max_length function parameter instead of 10
  3. Use eval_lines when creating bare_eval_generator. By using the same data for training and evaluating, you learn nothing about how well the model generalizes.
1 Like

Thank you for your help!