diff --git a/NOTICE.md b/NOTICE.md index 42b02e4..4222679 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -1,4 +1,4 @@ -© Copyright 2022, Intel Corporation +© Copyright 2025, Intel Corporation Credit: "This project incorporates code from terraform-aws-modules https://github.com/terraform-google-modules/terraform-google-vm under the Apache-2.0 license.” diff --git a/README.md b/README.md index d0762a4..52ad3bf 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,30 @@ ## Intel® Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## GCP VM module This module provides the functionality to ensure that you are utilizing Intel's latest generation processor in the creation of a virtual machine in GCP. + ## Performance Data +#### Intel Xeon 6 (Granite Rapids) now available on C4 VMs. Other variants are using the Intel Xeon 5th generation (Emerald Rapids)These C4 instances can power even more demanding workloads, delivering the highest frequency of any Google Compute Engine VM — up to 4.2 GHz, the most vCPU and RAM of any Intel-based comparable product, larger L3 cache size, and 1.35x higher maximum memory bandwidth. + +#### As of August 2025, the expanded C4 machine series with Intel Xeon 6 is available in 19 zones, with more expansion to come. Check the latest regional availability on our regions and zones page (https://cloud.google.com/compute/docs/regions-zones). Experience the leading performance, predictability, and control that C4 VMs deliver today! To learn more about C4 and its new capabilities, visit the C4 documentation. + +#### Intel Xeon 6 Instance are available using the C4-standard-X-lssd or C4-highmem-X-lssd instance types. C4-standard-X and C4-highmem-X are going to be using 5th Gen Intel Xeon (Emerald Rapids) #### Find all the information below plus even more by navigating our full library #### [INTEL CLOUD PERFROMANCE DATA LIBRARY for GCP](https://www.intel.com/content/www/us/en/developer/topic-technology/cloud/library.html?f:@stm_10381_en=%5BGoogle%20Alphabet%5D) +![alt text](image.png) + #
#### [Maximize performance and optimize spend with Compute Engine’s latest VMs, N4 and C4](https://cloud.google.com/blog/products/compute/a-closer-look-at-compute-engine-c4-and-n4-machine-series) +

Link @@ -212,7 +221,7 @@ No modules. | [enable\_vtpm](#input\_enable\_vtpm) | Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. | `bool` | `true` | no | | [hostname](#input\_hostname) | A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid | `string` | `null` | no | | [ipv6\_access\_config](#input\_ipv6\_access\_config) | Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Omit to ensure that the instance is not accessible from the Internet. If omitted, ssh provisioners will not work unless Terraform can send traffic to the instance's network. This can be represented as multiple maps |

list(object({
public_ptr_domain_name = optional(string, null)
network_tier = optional(string, null)
}))
| `[]` | no | -| [machine\_type](#input\_machine\_type) | The machine type to create | `string` | `"c4-standard-4"` | no | +| [machine\_type](#input\_machine\_type) | The machine type to create | `string` | `"c4-standard-4-lssd"` | no | | [name](#input\_name) | A unique name for the resource, required by GCE. Changing this forces a new resource to be created. | `string` | n/a | yes | | [network](#input\_network) | The name or self\_link of the network to attach this interface to. | `string` | `"default"` | no | | [network\_ip](#input\_network\_ip) | The private IP address to assign to the instance. If empty, the address will be automatically assigned. | `string` | `""` | no | diff --git a/examples/gcp-linux-fastchat-simple/README.md b/examples/gcp-linux-fastchat-simple/README.md index 48760ca..9840ad4 100644 --- a/examples/gcp-linux-fastchat-simple/README.md +++ b/examples/gcp-linux-fastchat-simple/README.md @@ -4,11 +4,11 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation -## GCP C4 5th Gen Xeon(code named Emerald Rapids) & Intel® Optimized Cloud Recipe for FastChat +## GCP C4 6th Gen Xeon(code named Granite Rapids) & Intel® Optimized Cloud Recipe for FastChat -This demo will showcase Large Language Model(LLM) CPU inference using 5th Gen Xeon Scalable Processors on GCP. +This demo will showcase Large Language Model(LLM) CPU inference using 6th Gen Xeon Scalable Processors on GCP. ## Usage diff --git a/examples/gcp-linux-fastchat-simple/main.tf b/examples/gcp-linux-fastchat-simple/main.tf index 2f7a8e5..c1656f8 100644 --- a/examples/gcp-linux-fastchat-simple/main.tf +++ b/examples/gcp-linux-fastchat-simple/main.tf @@ -7,7 +7,6 @@ variable "project" { description = "GCP Project ID" } - #GCP Linux VM with Intel Cloud Optimized Recipe for FastChat module "linux_vm" { source = "intel/gcp-vm/intel" @@ -16,7 +15,7 @@ module "linux_vm" { boot_image_family = "ubuntu-2204-lts" name = "intel-fastchat-${random_id.rid.dec}" zone = "us-central1-a" - machine_type = "c4-standard-32" + machine_type = "c4-standard-32-lssd" allow_stopping_for_update = true tags = ["fschat-${random_id.rid.dec}"] user_data = templatefile("./cloud_init.yml", {}) diff --git a/examples/gcp-linux-stable-diffusion/README.md b/examples/gcp-linux-stable-diffusion/README.md index 2ca5be8..c48131a 100644 --- a/examples/gcp-linux-stable-diffusion/README.md +++ b/examples/gcp-linux-stable-diffusion/README.md @@ -4,11 +4,11 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation -## GCP C3 4th Gen Xeon(code named Sapphire Rapids) & Intel® Optimized Cloud Recipe for Stable Diffusion +## GCP C4 6th Gen Xeon(code named Granite Rapids) & Intel® Optimized Cloud Recipe for Stable Diffusion -This demo will showcase Stable Diffusion CPU inferencing using 5th Gen Xeon Scalable Processors on GCP. +This demo will showcase Stable Diffusion CPU inferencing using 6th Gen Xeon Scalable Processors on GCP. ## Usage diff --git a/examples/gcp-linux-stable-diffusion/main.tf b/examples/gcp-linux-stable-diffusion/main.tf index 4f2dd52..369acc9 100644 --- a/examples/gcp-linux-stable-diffusion/main.tf +++ b/examples/gcp-linux-stable-diffusion/main.tf @@ -7,7 +7,6 @@ variable "project" { description = "GCP Project ID" } - #GCP Linux VM with Intel Cloud Optimized Recipe for FastChat module "linux_vm" { source = "intel/gcp-vm/intel" @@ -16,7 +15,7 @@ module "linux_vm" { boot_image_family = "ubuntu-2204-lts" name = "intel-diffusion-${random_id.rid.dec}" zone = "us-central1-a" - machine_type = "c4-standard-32" + machine_type = "c4-standard-32-lssd" allow_stopping_for_update = true tags = ["diffusion-${random_id.rid.dec}"] user_data = templatefile("./cloud_init.yml", {}) diff --git a/examples/gcp-linux-tdx-vm/README.md b/examples/gcp-linux-tdx-vm/README.md index 9173c71..dad8bdf 100644 --- a/examples/gcp-linux-tdx-vm/README.md +++ b/examples/gcp-linux-tdx-vm/README.md @@ -4,11 +4,11 @@ # Intel Cloud Optimization Modules for Terraform -© Copyright 2023, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP VM on default network -This module creates a Intel Confiddential Compute Linux VM on the default network with Intel Xeon 5th Generation Scalable processors (code-named Emerald Rapids) VM with Confidential Computing and Intel Trust Domain Extension (Intel TDX) technology. +This module creates a Intel Confidential Compute Linux VM on the default network with Intel Xeon 4th Generation Scalable processors (code-named Sapphire Rapids) VM with Confidential Computing and Intel Trust Domain Extension (Intel TDX) technology. Update the project with a your project id in GCP. It is located on the variables.tf file under this example folder for "GCP-Linux-VM" diff --git a/examples/gcp-linux-tdx-vm/main.tf b/examples/gcp-linux-tdx-vm/main.tf index d790d3e..d2d0829 100644 --- a/examples/gcp-linux-tdx-vm/main.tf +++ b/examples/gcp-linux-tdx-vm/main.tf @@ -8,6 +8,7 @@ # -------------------------------------------------------- # Provision GCP virtual machine on Intel Xeon 4th Generation Scalable processors (code-named Sapphire Rapids) VM which supports Confidential Computing with Intel Trust Domain Extension (Intel TDX) technology # You will need to provide value of the variable project, which is your GCP project id when you do terraform apply +# As of August 2025 only C3 instances will support Intel TDX module "linux_vm" { source = "intel/gcp-vm/intel" project = var.project @@ -17,7 +18,7 @@ module "linux_vm" { enable_confidential_compute = var.enable_confidential_compute confidential_instance_type = var.confidential_instance_type on_host_maintenance = "TERMINATE" - machine_type = "c4-standard-4" + machine_type = "c3-standard-4" access_config = [{ diff --git a/examples/gcp-linux-vm-ico-by-densify/README.md b/examples/gcp-linux-vm-ico-by-densify/README.md index d5b800a..0c9b138 100644 --- a/examples/gcp-linux-vm-ico-by-densify/README.md +++ b/examples/gcp-linux-vm-ico-by-densify/README.md @@ -4,7 +4,7 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP Linux VM on default network using Intel Cloud Optimzier(ICO) by Densify recommendations diff --git a/examples/gcp-linux-vm-ico-by-densify/densify_recommendations.auto.tfvars b/examples/gcp-linux-vm-ico-by-densify/densify_recommendations.auto.tfvars index 144738e..8a2704d 100644 --- a/examples/gcp-linux-vm-ico-by-densify/densify_recommendations.auto.tfvars +++ b/examples/gcp-linux-vm-ico-by-densify/densify_recommendations.auto.tfvars @@ -1,7 +1,7 @@ densify_recommendations = { "ico-test" = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-32-lssd" approvalType = "all" predictedUptime = "95.0" recommendationType = "Modernize" diff --git a/examples/gcp-linux-vm-ico-by-densify/main.tf b/examples/gcp-linux-vm-ico-by-densify/main.tf index 5c8455a..9252f02 100644 --- a/examples/gcp-linux-vm-ico-by-densify/main.tf +++ b/examples/gcp-linux-vm-ico-by-densify/main.tf @@ -17,7 +17,7 @@ module "densify" { } # Intel module -# Provision GCP Xeon 4th Generation Scalable processors (code-named Sapphire Rapids) VM +# Provision GCP Xeon 6th Generation Scalable processors (code-named Granite Rapids) VM # You will need to provide value of the variable project, which is your GCP project id when you do terraform apply module "linux_vm" { source = "intel/gcp-vm/intel" diff --git a/examples/gcp-linux-vm-ico-by-densify/providers.tf b/examples/gcp-linux-vm-ico-by-densify/providers.tf index 12d1310..586c64a 100644 --- a/examples/gcp-linux-vm-ico-by-densify/providers.tf +++ b/examples/gcp-linux-vm-ico-by-densify/providers.tf @@ -1,3 +1,3 @@ provider "google" { zone = "us-central1-a" -} \ No newline at end of file +} diff --git a/examples/gcp-linux-vm-ico-by-densify/variables.tf b/examples/gcp-linux-vm-ico-by-densify/variables.tf index 813dc12..c15cd72 100644 --- a/examples/gcp-linux-vm-ico-by-densify/variables.tf +++ b/examples/gcp-linux-vm-ico-by-densify/variables.tf @@ -15,7 +15,7 @@ variable "densify_recommendations" { default = { ico-test = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-32-lssd" approvalType = "all" savingsEstimate = "26.6" predictedUptime = "94.32" @@ -30,7 +30,7 @@ variable "densify_fallback"{ type = map(string) default = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-32-lssd" approvalType = "all" savingsEstimate = "0" predictedUptime = "0" diff --git a/examples/gcp-linux-vm-spot/README.md b/examples/gcp-linux-vm-spot/README.md index c6f7c7c..96c072b 100644 --- a/examples/gcp-linux-vm-spot/README.md +++ b/examples/gcp-linux-vm-spot/README.md @@ -4,7 +4,7 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP Spot VM creation on the default network diff --git a/examples/gcp-linux-vm-spot/main.tf b/examples/gcp-linux-vm-spot/main.tf index 152884b..4c2e049 100644 --- a/examples/gcp-linux-vm-spot/main.tf +++ b/examples/gcp-linux-vm-spot/main.tf @@ -6,7 +6,7 @@ # | | | | | || __/ | # |_|_| |_|\__\___|_| # -------------------------------------------------------- -# Provision GCP Xeon 5th Generation Scalable processors (code-named Emerald Rapids) VM +# Provision GCP Xeon 6th Generation Scalable processors (code-named Granite Rapids) VM # You will need to provide value of the variable project, which is your GCP project id when you do terraform apply module "spot_vm" { source = "intel/gcp-vm/intel" diff --git a/examples/gcp-linux-vm-spot/providers.tf b/examples/gcp-linux-vm-spot/providers.tf index 12d1310..586c64a 100644 --- a/examples/gcp-linux-vm-spot/providers.tf +++ b/examples/gcp-linux-vm-spot/providers.tf @@ -1,3 +1,3 @@ provider "google" { zone = "us-central1-a" -} \ No newline at end of file +} diff --git a/examples/gcp-linux-vm/README.md b/examples/gcp-linux-vm/README.md index 6fea424..aa9f144 100644 --- a/examples/gcp-linux-vm/README.md +++ b/examples/gcp-linux-vm/README.md @@ -4,7 +4,7 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP VM on default network diff --git a/examples/gcp-linux-vm/index.html b/examples/gcp-linux-vm/index.html new file mode 100644 index 0000000..d8bc418 --- /dev/null +++ b/examples/gcp-linux-vm/index.html @@ -0,0 +1,13 @@ +Google



 

Advanced search

© 2025 - Privacy - Terms

\ No newline at end of file diff --git a/examples/gcp-linux-vm/main.tf b/examples/gcp-linux-vm/main.tf index cf59e3a..63da780 100644 --- a/examples/gcp-linux-vm/main.tf +++ b/examples/gcp-linux-vm/main.tf @@ -6,13 +6,13 @@ # | | | | | || __/ | # |_|_| |_|\__\___|_| # -------------------------------------------------------- -# Provision GCP Xeon 4th Generation Scalable processors (code-named Sapphire Rapids) VM +# Provision GCP Xeon 6th Generation Scalable processors (code-named Granite Rapids) VM # You will need to provide value of the variable project, which is your GCP project id when you do terraform apply module "linux_vm" { source = "intel/gcp-vm/intel" project = var.project boot_image_family = "ubuntu-2204-lts" - name = "emr-vm-20" + name = "gnr-vm-20" access_config = [{ nat_ip = null public_ptr_domain_name = null diff --git a/examples/gcp-linux-vm/providers.tf b/examples/gcp-linux-vm/providers.tf index 12d1310..1bb9377 100644 --- a/examples/gcp-linux-vm/providers.tf +++ b/examples/gcp-linux-vm/providers.tf @@ -1,3 +1,4 @@ provider "google" { zone = "us-central1-a" -} \ No newline at end of file +} + diff --git a/examples/gcp-linux-with-aikit/main.tf b/examples/gcp-linux-with-aikit/main.tf index 5aa980a..3444b2f 100644 --- a/examples/gcp-linux-with-aikit/main.tf +++ b/examples/gcp-linux-with-aikit/main.tf @@ -8,6 +8,7 @@ data "template_file" "user_data" { template = file("./cloud_init.yml") } + module "linux_vm" { source = "intel/gcp-vm/intel" project = var.project diff --git a/examples/gcp-rhel-vm/README.md b/examples/gcp-rhel-vm/README.md index 33c8711..4ac1d66 100644 --- a/examples/gcp-rhel-vm/README.md +++ b/examples/gcp-rhel-vm/README.md @@ -4,11 +4,11 @@ # Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel Red Hat Enterprise Linux GCP VM Example -This module creates a Red Hat Enterprise Linux (RHEL) VM. The virtual machine is created on an Intel 5th Gen Xeon Scalable Processors (Emerald Rapids) on c4-standard-4 by default VM. +This module creates a Red Hat Enterprise Linux (RHEL) VM. The virtual machine is created on an Intel 6th Gen Xeon Scalable Processors (Granite Rapids) on c4-standard-4-lssd by default VM. Update the project with a your project id in GCP. It is located on the variables.tf file under this example folder for "GCP-RHEL-VM". diff --git a/examples/gcp-rhel-vm/providers.tf b/examples/gcp-rhel-vm/providers.tf index 12d1310..586c64a 100644 --- a/examples/gcp-rhel-vm/providers.tf +++ b/examples/gcp-rhel-vm/providers.tf @@ -1,3 +1,3 @@ provider "google" { zone = "us-central1-a" -} \ No newline at end of file +} diff --git a/examples/gcp-windows-vm-ico-by-densify/README.md b/examples/gcp-windows-vm-ico-by-densify/README.md index d588982..1170d16 100644 --- a/examples/gcp-windows-vm-ico-by-densify/README.md +++ b/examples/gcp-windows-vm-ico-by-densify/README.md @@ -4,7 +4,7 @@ ## Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP Windows VM on default network using Intel Cloud Optimzier(ICO) by Densify recommendations @@ -46,7 +46,7 @@ variable "densify_recommendations" { default = { ico-test = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-4-lssd" approvalType = "all" savingsEstimate = "26.6" predictedUptime = "94.32" @@ -61,7 +61,7 @@ variable "densify_fallback"{ type = map(string) default = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-4-lssd" approvalType = "all" savingsEstimate = "0" predictedUptime = "0" diff --git a/examples/gcp-windows-vm-ico-by-densify/densify_recommendations.auto.tfvars b/examples/gcp-windows-vm-ico-by-densify/densify_recommendations.auto.tfvars index 144738e..0c9a62f 100644 --- a/examples/gcp-windows-vm-ico-by-densify/densify_recommendations.auto.tfvars +++ b/examples/gcp-windows-vm-ico-by-densify/densify_recommendations.auto.tfvars @@ -1,7 +1,7 @@ densify_recommendations = { "ico-test" = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-4-lssd" approvalType = "all" predictedUptime = "95.0" recommendationType = "Modernize" diff --git a/examples/gcp-windows-vm-ico-by-densify/variables.tf b/examples/gcp-windows-vm-ico-by-densify/variables.tf index 81260d6..9a08532 100644 --- a/examples/gcp-windows-vm-ico-by-densify/variables.tf +++ b/examples/gcp-windows-vm-ico-by-densify/variables.tf @@ -15,7 +15,7 @@ variable "densify_recommendations" { default = { ico-test = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-4-lssd" approvalType = "all" savingsEstimate = "26.6" predictedUptime = "94.32" @@ -30,7 +30,7 @@ variable "densify_fallback"{ type = map(string) default = { currentType = "n1-standard-2" - recommendedType = "c4-standard-4" + recommendedType = "c4-standard-4-lssd" approvalType = "all" savingsEstimate = "0" predictedUptime = "0" diff --git a/examples/gcp-windows-vm/README.md b/examples/gcp-windows-vm/README.md index 1625841..3f2689a 100644 --- a/examples/gcp-windows-vm/README.md +++ b/examples/gcp-windows-vm/README.md @@ -4,7 +4,7 @@ ## Intel Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## Intel GCP VM on default network diff --git a/examples/gcp-windows-vm/providers.tf b/examples/gcp-windows-vm/providers.tf index 12d1310..586c64a 100644 --- a/examples/gcp-windows-vm/providers.tf +++ b/examples/gcp-windows-vm/providers.tf @@ -1,3 +1,3 @@ provider "google" { zone = "us-central1-a" -} \ No newline at end of file +} diff --git a/examples/gen-ai-xeon-opea-chatqna/README.md b/examples/gen-ai-xeon-opea-chatqna/README.md index acfb368..2f3d136 100644 --- a/examples/gen-ai-xeon-opea-chatqna/README.md +++ b/examples/gen-ai-xeon-opea-chatqna/README.md @@ -4,11 +4,11 @@ # Intel® Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation -## GCP C4 Instance with 5th Generation Intel® Xeon® Scalable Processor (Emerald Rapids) & Open Platform for Enterprise AI (OPEA) ChatQnA Example +## GCP C4 Instance with 6th Generation Intel® Xeon® Scalable Processor (Granite Rapids) & Open Platform for Enterprise AI (OPEA) ChatQnA Example -This demo will showcase Retrieval Augmented Generation (RAG) CPU inference using 5th Gen Xeon Scalable Processors on GCP using the OPEA ChatQnA Example. For more information about OPEA, go [here](https://opea.dev/). For more information on this specific example, go [here](https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA). +This demo will showcase Retrieval Augmented Generation (RAG) CPU inference using 6th Gen Xeon Scalable Processors on GCP using the OPEA ChatQnA Example. For more information about OPEA, go [here](https://opea.dev/). For more information on this specific example, go [here](https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA). ## Usage diff --git a/examples/gen-ai-xeon-opea-chatqna/main.tf b/examples/gen-ai-xeon-opea-chatqna/main.tf index d0c2f10..401de54 100644 --- a/examples/gen-ai-xeon-opea-chatqna/main.tf +++ b/examples/gen-ai-xeon-opea-chatqna/main.tf @@ -11,7 +11,7 @@ module "linux_vm" { boot_image_family = "ubuntu-2204-lts" name = "ai-opea-chatqna-${random_id.rid.dec}" zone = "us-east4-a" - machine_type = "c4-highcpu-48" + machine_type = "c4-standard-48-lssd" allow_stopping_for_update = true tags = ["ai-opea-chatqna-${random_id.rid.dec}"] user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token }) diff --git a/examples/gen-ai-xeon-opea-codegen/README.md b/examples/gen-ai-xeon-opea-codegen/README.md index b23eb7f..a6cbad5 100644 --- a/examples/gen-ai-xeon-opea-codegen/README.md +++ b/examples/gen-ai-xeon-opea-codegen/README.md @@ -4,11 +4,11 @@ # Intel® Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation -## GCP C4 Instance with 5th Generation Intel® Xeon® Scalable Processor (Emerald Rapids) & Open Platform for Enterprise AI (OPEA) Code Generation Example +## GCP C4 Instance with 6th Generation Intel® Xeon® Scalable Processor (Granite Rapids) & Open Platform for Enterprise AI (OPEA) Code Generation Example -This demo will showcase Code Generation CPU inference using 5th Gen Xeon Scalable Processors on GCP using the OPEA CodeGen Example. For more information about OPEA, go [here](https://opea.dev/). For more information on this specific example, go [here](https://github.com/opea-project/GenAIExamples/tree/main/CodeGen) +This demo will showcase Code Generation CPU inference using 6th Gen Xeon Scalable Processors on GCP using the OPEA CodeGen Example. For more information about OPEA, go [here](https://opea.dev/). For more information on this specific example, go [here](https://github.com/opea-project/GenAIExamples/tree/main/CodeGen) ## Usage diff --git a/examples/gen-ai-xeon-opea-codegen/main.tf b/examples/gen-ai-xeon-opea-codegen/main.tf index 40d3c5a..ae2a14b 100644 --- a/examples/gen-ai-xeon-opea-codegen/main.tf +++ b/examples/gen-ai-xeon-opea-codegen/main.tf @@ -11,7 +11,7 @@ module "linux_vm" { boot_image_family = "ubuntu-2204-lts" name = "ai-opea-codegen-${random_id.rid.dec}" zone = "us-east4-a" - machine_type = "c4-highcpu-48" + machine_type = "c4-standard-48-lssd" allow_stopping_for_update = true tags = ["ai-opea-codegen-${random_id.rid.dec}"] user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token }) @@ -22,7 +22,7 @@ module "linux_vm" { }, ] } -Required firewall rules +#Required firewall rules resource "google_compute_firewall" "rules" { project = var.project name = "ai-opea-codegen-${random_id.rid.dec}" diff --git a/image.png b/image.png new file mode 100644 index 0000000..fef78b5 Binary files /dev/null and b/image.png differ diff --git a/main.tf b/main.tf index af1882f..64a8b1f 100644 --- a/main.tf +++ b/main.tf @@ -2,8 +2,8 @@ # In this block the code determines the minimum CPU platform based on the machine type that the use has selected. # We always recommend our customers to use the latest generation of Intel CPU platforms that are publicly available . # -# As of October 2024, C4 and N4 are powered by the 5th generation Intel Xeon Scalable processor (code-named Emerald Rapids) and will offer better performance over the C3 and N2 instances. -# +# As of October 2024, N4 are powered by the 5th generation Intel Xeon Scalable processor (code-named Emerald Rapids) and will offer better performance over the C3 and N2 instances. +# As of August 2025, C4 are powered by the 6th generation Intel Xeon Scalable processor (code-named Granite Rapids). # General Purpose N2 instances can be on either Ice Lake or Cascade Lake for the same price. For better price and performance, we are recommendaing to use Intel Ice Lake for N2 instances. For C3 instances, the # minimum CPU platform is Intel Sapphire Rapids. # @@ -18,12 +18,12 @@ locals { "n2": "Intel Ice Lake", "c3": "Intel Sapphire Rapids", "m3": "Intel Ice Lake", - "c2": "Intel Cascade Lake" - "n4": null - "c4": null - "m1": null - "m2": null - "e2": null + "c2": "Intel Cascade Lake", + "n4": "Intel Emerald Rapids", + "c4": "Intel Granite Rapids", + "m1": null, + "m2": null, + "e2": null, "cu": null } min_cpu_platform = lookup(local.machine_types,one(regex(local.machine_type_regex, var.machine_type)),null) diff --git a/policies.md b/policies.md index 19ee707..fa64c2c 100644 --- a/policies.md +++ b/policies.md @@ -4,7 +4,7 @@ # Intel® Optimized Cloud Modules for Terraform -© Copyright 2024, Intel Corporation +© Copyright 2025, Intel Corporation ## HashiCorp Sentinel Policies diff --git a/variables.tf b/variables.tf index 679c23b..97b7314 100644 --- a/variables.tf +++ b/variables.tf @@ -1,7 +1,7 @@ ######################## #### Intel #### ######################## -# See policies.md, Intel recommends the 5th Generation Intel® Xeon® Platinum (Emerald Rapids) based instances. It is the latest Intel CPU generation globally available +# See policies.md, Intel recommends the 6th Generation Intel® Xeon® Platinum (Granite Rapids) based instances. It is the latest Intel CPU generation globally available # at the time of creation of this repo #General Purpose: n4-Standard: n4-standard-2, n4-standard-4, n4-standard-8, n4-standard-16, n4-standard-32, n4-standard-48, n4-standard-64, n4-standard-80 #General Purpose: n4-HighMem: n4-highmem-2, n4-highmem-4, n4-highmem-8, n4-highmem-16, n4-highmem-32, n4-highmem-48, n4-highmem-64, n4-highmem-80 @@ -18,7 +18,7 @@ variable "machine_type" { type = string description = "The machine type to create" - default = "c4-standard-4" + default = "c4-standard-4-lssd" } ########################