Introduction to Cloud Computing & AI
GDG on Campus Multimedia University
Engineering Manager, Grab
Director, ZilLearn
Tech Lead, Rakuten Viki
�Senior Engineering Manager, Ascenda + Google Developer Expert, Google Cloud
Liu Weiyuan
“Why study
Cloud Computing?”
3 Reasons
Reason #1
Alignment with industry trends
Reason #1 - Alignment with industry trends
Global
Malaysia
Global
Reason #1 - Alignment with industry trends
Malaysia
Reason #1 - Alignment with industry trends
“Google will invest US$2 billion in Malaysia to develop its first data centre and Google Cloud region in the country, the unit of Alphabet said on Thursday (May 30), the latest in a wave of expansion by global tech firms into Southeast Asia.”
Reason #1 - Alignment with industry trends
Reason #2
Cloud Computing is needed for AI
“The government said the investment would advance Malaysia's digital ambitions, and the artificial intelligence (AI) capabilities and other advanced technologies would help local industry move up the global value chain.”
Reason #2 - Cloud Computing is needed for AI
Managed tools for AI
Reason #2 - Cloud Computing is needed for AI
Managed Infrastructure for AI
Reason #2 - Cloud Computing is needed for AI
Reason #3
Cloud Computing is in our everyday lives
(As a student, as an engineer, as a data scientist)
Interactive version at googlecloudcheatsheet.withgoogle.com
2025+ : Why spend time reinventing the wheel
when you can spend time building value for your users
“Why study
Cloud Computing?”
Hope that convinced you :P
Let’s Get Started!
Before Workshop - Setting up
Build
with AI
Setting up
1. Sign in
(with the right Google Account)
Setting up
2. Validate Details
Correct Google Account?
(Don’t redeem to company or inactive email account!)
Email address double check
Don’t share!
Setting up
3. Accept and continue
(If you accept terms and conditions 😬)
Setting up
4. Go to console.cloud.google.com/billing
Setting up
5. Check for the Google Cloud Platform Trial Billing Account
Setting up
6. Go to console.cloud.google.com/projectcreate
Setting up
7. Create new project, with billing account as “Google Cloud Platform Trial Billing Account”
Setting up
In case you cannot select a billing account earlier
Check console.cloud.google.com/billing/projects and make sure your project is tied to the right project
Setting up
8. To to the home page console.cloud.google.com , and search for “Vertex AI API”
9. Double check if right project, and then click “ENABLE”
Workshop Part 0 - TL;DR
Build
with AI
Learning outcomes
Workshop
Tip #1 - “Shift”+”Enter” to progress through the cells in Colab / Jupyter Notebook
Workshop
Tip #2 - Opps I accidentally clicked a markdown cell? “Ctrl”+”Enter” to restore!
Workshop
Workshop
(If you want to self-run) Scan the following QR code
�
I’ll also be running through this slidedeck and explaining along the way, so follow along my pace if you want an in-depth learning experience.
Workshop - Intro to Gemini 2.0 Flash
Build
with AI
Accessing Workshop - “Intro to Gemini 2.0 Flash”
Workshop
1. Go to URL: bit.ly/bwai-gemini-2-intro-lab
2. Select “Open in Colab”
3. Select “Copy to Drive”
Get your Project Id from “console.cloud.google.com”
Workshop
What the “async” (and coroutines)?
Workshop
https://www.jetify.com/blog/python-coroutines-and-the-cloud/
https://docs.python.org/3/library/asyncio-task.html#coroutine
Testing parameters like temperature - can use Google AI Studio
Workshop
https://aistudio.google.com/
Threshold values enum values
Workshop
https://cloud.google.com/python/docs/reference/aiplatform/latest/google.cloud.aiplatform_v1.types.SafetySetting.HarmBlockThreshold
Name | Description |
HARM_BLOCK_THRESHOLD_UNSPECIFIED | Unspecified harm block threshold. |
BLOCK_LOW_AND_ABOVE | Block low threshold and above (i.e. block more). |
BLOCK_MEDIUM_AND_ABOVE | Block medium threshold and above. |
BLOCK_ONLY_HIGH | Block only high threshold (i.e. block less). |
BLOCK_NONE | Block none. |
OFF | Turn off the safety filter. |
Function Calling
Workshop
https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling
Code Execution
Workshop
https://ai.google.dev/gemini-api/docs/code-execution
https://github.com/googleapis/python-genai/blob/fe444a5a06b747df06ab94846eed19f784fb4584/google/genai/types.py
Workshop (Extra) - Getting started with Google Generative AI using the Gen AI SDK
Build
with AI
Learning outcomes
Workshop
Accessing Workshop
Workshop
Go to URL: bit.ly/bwai-gemini-2-sdk-lab
2. Select “Open in Colab”
3. Select “Copy to Drive”
Get your Project Id from “console.cloud.google.com”
Workshop
Gemini - Models
Workshop
https://ai.google.dev/gemini-api/docs/models
Context caching
Workshop
https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview
Context caching files
Workshop
Batch requests file
Workshop
Batch requests file - images
Workshop
Text Embeddings
Workshop
https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings
Text Embeddings - Models
Workshop
https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-text-embeddings
Thank you!
Resources
Liu Weiyuan
big-on.dev/-/weiyuan
bit.ly/weiyuan-linkedin