Subdomain 1.2: Building AI solutions using Google Cloud AI APIs or foundational models.
1.You have fine-tuned Gemini 1.5 Pro on a domain-specific dataset. The inference latency of the fine-tuned model is too high for your real-time application. You need to reduce the inference time while keeping the model's specialized knowledge. Which two techniques can you apply? (Select two)(Select 2)
- A.Distill the fine-tuned model into a smaller student model
- B.Increase the number of fine-tuning epochs to improve generalization
- C.Switch the base model to Gemini 1.5 Flash for fine-tuning
- D.Use a larger training dataset to improve model robustness
- E.Enable quantization on the deployed model to reduce compute requirements
Show answer & explanation
Correct answers: A, C — Distill the fine-tuned model into a smaller student model; Switch the base model to Gemini 1.5 Flash for fine-tuning
- A. Correct. Model distillation trains a smaller student model to mimic the larger fine-tuned teacher model, reducing inference latency while retaining specialized knowledge.
- B. Incorrect. Increasing fine-tuning epochs may improve model fit but does not reduce inference latency; it can even increase overfitting risk.
- C. Correct. Gemini 1.5 Flash is optimized for lower latency and higher throughput. Fine-tuning it instead of Pro preserves domain-specific capabilities while reducing inference time.
- D. Incorrect. A larger training dataset can improve robustness but does not directly affect inference latency or model size at deployment.
- E. Incorrect. Quantization reduces compute requirements but is not typically the primary technique for Gemini managed fine-tuning; distillation and using a faster base model are the recommended approaches.