thankful-father-61351
03/30/2023, 3:58 PMamzn2-ami-ecs-hvm-2.0.20230321-x86_64-ebs). If I manually copy the instances that gets automatically started by Metaflow and chnage the AMI to amzn2-ami-ecs-gpu-hvm-2.0.20230321-x86_64-ebs and also manually adds these to my cluster, then I can get the flow to run.
One other thing that seems strange to me it the name of the cluster is called metaflow-cpu-vccg... (note the cpu in there)
I have tried specifying gpu=1 using bot @resource(gpu=1) and @batch(gpu=1)crooked-jordan-29960
03/30/2023, 4:13 PMp2, p3, p4 in that cell of the table you should be good to go. but if there are no gpu instances and do @batch(gpu=N) i've seen Metaflow hang in that RUNNABLE state, which makes it kind of tricky to know what is (not) happening.worried-mechanic-36312
03/30/2023, 4:15 PMworried-mechanic-36312
03/30/2023, 4:16 PMancient-application-36103
03/30/2023, 4:17 PMancient-application-36103
03/30/2023, 4:18 PMworried-mechanic-36312
03/30/2023, 4:25 PMworried-mechanic-36312
03/30/2023, 4:25 PMancient-application-36103
03/30/2023, 4:26 PMthankful-father-61351
03/30/2023, 4:56 PMthankful-father-61351
03/30/2023, 5:00 PM# Random suffix for this deployment
resource "random_string" "suffix" {
length = 8
special = false
upper = false
}
locals {
resource_prefix = "metaflow"
resource_suffix = random_string.suffix.result
}
data "aws_availability_zones" "available" {
}
module "metaflow" {
source = "outerbounds/metaflow/aws"
version = "0.3.0"
resource_prefix = local.resource_prefix
resource_suffix = local.resource_suffix
enable_step_functions = false
subnet1_id = "subnet-0bd443a606e8bb6d8"
subnet2_id = "subnet-0d5fbde36dbf0bda7"
vpc_cidr_block = "172.31.0.0/16"
vpc_id = "vpc-0f863d9c13ac2696b"
compute_environment_instance_types = [
"c4.large",
"c4.xlarge",
"c4.2xlarge",
"c4.4xlarge",
"c4.8xlarge",
"p3.2xlarge",
"g4dn.xlarge",
"g4dn.2xlarge",
"g4dn.4xlarge"
]
tags = {
"managedBy" = "terraform"
"belongsTo" = "metaflow"
}
}
# The module will generate a Metaflow config in JSON format, write it to a file
resource "local_file" "metaflow_config" {
content = module.metaflow.metaflow_profile_json
filename = "./metaflow_profile.json"
}thankful-father-61351
03/30/2023, 5:30 PMmetaflow-cpu-vccg... smells a little like there are supposed to also be a metaflow-gpu-vccg... compute environment?average-beach-28850
03/30/2023, 5:52 PMaverage-beach-28850
03/30/2023, 5:53 PMthankful-father-61351
03/30/2023, 7:27 PM--with batch flag? @average-beach-28850
Also, I don’t understand why this would make any difference. What would make the instances suddenly support GPUs? Or phrased differently, what would be the setting/input that I would set different than the settings I have today? There seems to be no settings/input to that submodule which controlles whether the cluster is a “gpu cluster” and it also seems like I cannot decide which AMI to use. So I would still have the same issue, right?average-beach-28850
03/30/2023, 7:32 PMaverage-beach-28850
03/30/2023, 7:33 PMthankful-father-61351
03/30/2023, 7:40 PMaverage-beach-28850
03/30/2023, 8:04 PMthankful-father-61351
03/31/2023, 10:23 AMthankful-father-61351
03/31/2023, 1:13 PMg4dn instance types.
I still see a cluster called something with cpu: metaflow-cpu-pn0a....
And the launch template still uses a non-gpu supporting ami.