Professional Machine Learning Engineer Exam QuestionsBrowse all questions from this exam

Professional Machine Learning Engineer Exam - Question 20


You are training an LSTM-based model on AI Platform to summarize text using the following job submission script: gcloud ai-platform jobs submit training $JOB_NAME \

--package-path $TRAINER_PACKAGE_PATH \

--module-name $MAIN_TRAINER_MODULE \

--job-dir $JOB_DIR \

--region $REGION \

--scale-tier basic \

-- \

--epochs 20 \

--batch_size=32 \

--learning_rate=0.001 \

You want to ensure that training time is minimized without significantly compromising the accuracy of your model. What should you do?

Show Answer
Correct Answer: B

To minimize training time without significantly compromising model accuracy, you should modify the 'scale-tier' parameter. This parameter dictates the computational resources allocated for the training job. By selecting a higher scale tier, you can leverage more powerful computational resources which will speed up the training process. Adjusting other parameters like epochs, batch size, or learning rate could impact the model's performance.

Discussion

18 comments
Sign in to comment
maartenalexander
Jun 22, 2021

B. Changing the scale tier does not impact performance–only speeds up training time. Epochs, Batch size, and learning rate all are hyperparameters that might impact model accuracy.

Danny2021
Sep 9, 2021

Go with B, all the other options could affect the accuracy.

Y2Data
Sep 14, 2021

Should be B. Question didn't say anything about cost, so while B would increase cost with more computation time, it would save real-world time.

mousseUwU
Oct 19, 2021

Correct is B, scale-tier is the definition of what GPU will be used: https://cloud.google.com/ai-platform/training/docs/using-gpus

ashii007
Dec 12, 2021

A,C and D all point to hyper parameter tuning which is not the objective in the question. As others have said - B is only way to improve the time to training the model.

Mohamed_MossadOption: B
Jun 13, 2022

- using options elimination all options except B can harm the accuracy

DaleR
Oct 23, 2024

B is correct however this parameter looks like it is being deprecated.

morgan62Option: B
Apr 7, 2022

B for sure.

EFIGOOption: B
Nov 24, 2022

A, C, D are all about hyperparameters that might impact model accuracy, while B is just about computing speed; so upgrading the scale tier will make the model faster with no chance of reducing accuracy.

enghabethOption: B
Feb 7, 2023

A is incorrect, less training iteration will affect model performance. B is correct, cost is not a concern as it is not mentioned in the question, the scale tier can be upgraded to significantly minimize the training time. C is incorrect, wouldn’t affect training time, but would affect model performance. D is incorrect, the model might converge faster with higher learning rate, but this would affect the training routine and might cause exploding gradients.

desertlotus1211
Oct 20, 2024

he scale-tier parameter in AI Platform determines the computing resources (e.g., CPU, GPU, or TPU) that are allocated for your training job. By increasing the scale-tier from basic to a more powerful tier (e.g., standard, premium, or custom), you can allocate more resources (like GPUs or TPUs) for your job. This will significantly reduce training time, especially for LSTM-based models that benefit from parallel processing on GPUs or TPUs.

desertlotus1211
Oct 20, 2024

Answer B

santy79Option: B
Nov 20, 2021

examtopics , Can we attach releveant docs why C ?

igor_nov1Option: B
Feb 22, 2022

Might be hrlpfull https://cloud.google.com/ai-platform/training/docs/machine-types#scale_tiers Google may optimize the configuration of the scale tiers for different jobs over time, based on customer feedback and the availability of cloud resources. Each scale tier is defined in terms of its suitability for certain types of jobs. Generally, the more advanced the tier, the more machines are allocated to the cluster, and the more powerful the specifications of each virtual machine. As you increase the complexity of the scale tier, the hourly cost of training jobs, measured in training units, also increases. See the pricing page to calculate the cost of your job.

GCP72Option: B
Aug 15, 2022

Correct answer is "B"

ares81Option: B
Jan 11, 2023

It's B!

M25Option: B
May 9, 2023

Went with B

SamuelTschOption: B
Jul 7, 2023

A, C, D could impact the accuracy. But B not.

bc3f222Option: B
Mar 1, 2025

B is still correct as now scale-tier will be replaced by the exact machine config instead