1 of 52

Introduction to Cloud Computing & AI

GDG on Campus Multimedia University

2 of 52

Engineering Manager, Grab

Director, ZilLearn

Tech Lead, Rakuten Viki

Senior Engineering Manager, Ascenda + Google Developer Expert, Google Cloud

Liu Weiyuan

3 of 52

“Why study

Cloud Computing?”

4 of 52

3 Reasons

5 of 52

Reason #1

Alignment with industry trends

6 of 52

Reason #1 - Alignment with industry trends

Global

Malaysia

7 of 52

Global

Reason #1 - Alignment with industry trends

8 of 52

Malaysia

Reason #1 - Alignment with industry trends

9 of 52

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

10 of 52

Reason #2

Cloud Computing is needed for AI

11 of 52

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

12 of 52

Managed tools for AI

Reason #2 - Cloud Computing is needed for AI

13 of 52

Managed Infrastructure for AI

Reason #2 - Cloud Computing is needed for AI

14 of 52

Reason #3

Cloud Computing is in our everyday lives

(As a student, as an engineer, as a data scientist)

15 of 52

Interactive version at googlecloudcheatsheet.withgoogle.com

2025+ : Why spend time reinventing the wheel

when you can spend time building value for your users

16 of 52

“Why study

Cloud Computing?”

Hope that convinced you :P

17 of 52

Let’s Get Started!

18 of 52

Before Workshop - Setting up

Build

with AI

19 of 52

Setting up

1. Sign in

(with the right Google Account)

20 of 52

Setting up

2. Validate Details

Correct Google Account?

(Don’t redeem to company or inactive email account!)

Email address double check

Don’t share!

21 of 52

Setting up

3. Accept and continue

(If you accept terms and conditions 😬)

22 of 52

Setting up

4. Go to console.cloud.google.com/billing

23 of 52

Setting up

5. Check for the Google Cloud Platform Trial Billing Account

24 of 52

Setting up

6. Go to console.cloud.google.com/projectcreate

25 of 52

Setting up

7. Create new project, with billing account as “Google Cloud Platform Trial Billing Account”

26 of 52

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

27 of 52

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

28 of 52

Workshop Part 0 - TL;DR

Build

with AI

29 of 52

Learning outcomes

Workshop

  • Try out Colab
  • Use Gemini 2.0 Flash ⚡
  • Learn from simple, multimodal, grounding, code execution use cases

30 of 52

Tip #1 - “Shift”+”Enter” to progress through the cells in Colab / Jupyter Notebook

Workshop

31 of 52

Tip #2 - Opps I accidentally clicked a markdown cell? “Ctrl”+”Enter” to restore!

Workshop

32 of 52

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.

33 of 52

Workshop - Intro to Gemini 2.0 Flash

Build

with AI

34 of 52

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

35 of 52

Get your Project Id from “console.cloud.google.com

Workshop

36 of 52

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

37 of 52

Testing parameters like temperature - can use Google AI Studio

Workshop

https://aistudio.google.com/

38 of 52

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.

39 of 52

Function Calling

Workshop

https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling

40 of 52

Code Execution

Workshop

https://ai.google.dev/gemini-api/docs/code-execution

https://github.com/googleapis/python-genai/blob/fe444a5a06b747df06ab94846eed19f784fb4584/google/genai/types.py

41 of 52

Workshop (Extra) - Getting started with Google Generative AI using the Gen AI SDK

Build

with AI

42 of 52

Learning outcomes

Workshop

  • Use Gemini 2.0 Flash ⚡
  • Learn with simple use, multimodal use, async utility, resource monitoring, caching etc.

43 of 52

Accessing Workshop

Workshop

Go to URL: bit.ly/bwai-gemini-2-sdk-lab

2. Select “Open in Colab

3. Select “Copy to Drive

44 of 52

Get your Project Id from “console.cloud.google.com

Workshop

45 of 52

Gemini - Models

Workshop

https://ai.google.dev/gemini-api/docs/models

46 of 52

Context caching

Workshop

https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache/context-cache-overview

47 of 52

Context caching files

Workshop

  • File 1: https://storage.googleapis.com/cloud-samples-data/generative-ai/pdf/2312.11805v3.pdf
  • File 2: https://storage.googleapis.com/cloud-samples-data/generative-ai/pdf/2403.05530.pdf

48 of 52

Batch requests file

Workshop

  • File: https://storage.googleapis.com/cloud-samples-data/generative-ai/batch/batch_requests_for_multimodal_input_2.jsonl

49 of 52

Batch requests file - images

Workshop

  • File: https://storage.googleapis.com/cloud-samples-data/generative-ai/image/office-desk.jpeg
  • File: https://storage.googleapis.com/cloud-samples-data/generative-ai/image/gardening-tools.jpeg

50 of 52

Text Embeddings

Workshop

https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings

51 of 52

Text Embeddings - Models

Workshop

https://cloud.google.com/vertex-ai/generative-ai/docs/embeddings/get-text-embeddings

52 of 52

Thank you!

Resources

Liu Weiyuan

big-on.dev/-/weiyuan

bit.ly/weiyuan-linkedin