BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Machine Learning Engineer Exam - Topic 10 Question 60 Discussion

Posted by Sheron on Feb 25, 2023 at 01:53 PM

You have trained a DNN regressor with TensorFlow to predict housing prices using a set of predictive features. Your default precision is tf.float64, and you use a standard TensorFlow estimator;

estimator = tf.estimator.DNNRegressor(

feature_columns=[YOUR_LIST_OF_FEATURES],

hidden_units-[1024, 512, 256],

dropout=None)

Your model performs well, but Just before deploying it to production, you discover that your current serving latency is 10ms @ 90 percentile and you currently serve on CPUs. Your production requirements expect a model latency of 8ms @ 90 percentile. You are willing to accept a small decrease in performance in order to reach the latency requirement Therefore your plan is to improve latency while evaluating how much the model's prediction decreases. What should you first try to quickly lower the serving latency?

Suggested Answer: D

Applying quantization to your SavedModel by reducing the floating point precision can help reduce the serving latency by decreasing the amount of memory and computation required to make a prediction. TensorFlow provides tools such as the tf.quantization module that can be used to quantize models and reduce their precision, which can significantly reduce serving latency without a significant decrease in model performance.


Get Premium Professional Machine Learning Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
LO
Loreta 1 year ago
I agree, quantization seems like a quick fix!
OL
Olene 1 year ago
Definitely not A, that won't help in PREDICT mode.
EM
Emeline 1 year ago
Wait, increasing dropout to 0.8? Isn't that too high?
DO
Donette 1 year ago
I think quantization is the way to go, less precision might not hurt much.
RI
Rickie 1 year ago
Switching to GPU should help with latency!
PA
Paz 1 year ago
I’m a bit confused about the dropout adjustment. Wouldn't retraining the model after increasing it take too long?
RO
Rosita 1 year ago
I practiced a similar question where quantization was mentioned as a way to improve performance. It seems like a good approach here too.
DO
Dorothy 1 year ago
I think switching to GPU serving could be a quick fix for latency, but I’m not certain if it’s the best option for this scenario.
LI
Lino 1 year ago
I remember we discussed dropout rates in class, but I'm not sure increasing it to 0.8 would help with latency.
CH
Christiane 1 year ago
Hmm, I'm a bit unsure about this one. The question mentions the retry mechanism, but I'm not entirely clear on the specific cases where that would be relevant. I'll need to review the framework documentation more closely to make sure I understand the context before answering.
SE
Serina 1 year ago
This question seems pretty straightforward. I think I can handle this one.
AN
Angella 1 year ago
Okay, let me think this through. The project closure phase is all about wrapping things up and getting final sign-off. I'd say the customer acceptance document is the most important thing to review before finalizing the closure.
DY
Dyan 1 year ago
This seems straightforward. The question is asking about deploying Office to the enterprise and using group policy, so the obvious choice is Office 365 ProPlus. That's the enterprise-focused, subscription-based version that's designed for centralized management.
0/2000 characters

Save Cancel