ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally
我想尝试PEGASUS来总结文章。
https://github.com/google-research/pegasus
我遵循了这个指示。
https://github.com/google-research/pegasus/tree/f76b63c2886748f7f5c6c9fb547456d8c6002562#setup
我检查了我可以使用的区域 NVIDIA Tesla V100
我决定使用 us-central1-a
https://cloud.google.com/compute/docs/gpus
我使用了这个命令。
gcloud compute instances create pegasustest --zone=us-central1-a
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
我收到这条错误消息。
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/covid19agent/zones/us-central1-a' does not have enough
resources available to fulfill the request.
Try a different zone, or try again later.
我花了3个小时再试,还是一样的结果。
因此,我将区域从 us-central1-a
更改为 asia-east1-c
。
我使用了这个命令。
gcloud compute instances create pegasustest --zone=asia-east1-c
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
然后我收到这个错误信息。
WARNING: Some requests generated warnings:
- Disk size: '500 GB' is larger than image size: '10 GB'.
You might need to resize the root repartition manually
if the operating system does not support automatic resizing.
See https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd
for details.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
难道我不能试试 PEGASUS 吗?还有,试一下 PEGASUS 会不会太贵了?
我们先从第一期开始。再看看报错信息:
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/covid19agent/zones/us-central1-a' does not have enough resources available to fulfill the request. Try a different
zone, or try again later.
当你start an instance it requests resources like vCPU, memory, GPU and if there's not enough resources available in the zone you'll get such message, more information available in the documentation:
If you receive a resource error (such as ZONE_RESOURCE_POOL_EXHAUSTED
or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS) when requesting new
resources, it means that the zone cannot currently accommodate your
request. This error is due to Compute Engine resource obtainability,
and is not due to your Compute Engine quota.
资源可用性取决于用户请求,因此是动态的。
有几种方法可以解决这个问题:
- 稍等片刻,然后尝试再次启动您的 VM 实例(如您所试,但这次没有成功)。
- 将您的实例移动到 another zone(就像您所做的那样)。
Reserve resources 为您的虚拟机遵循文档以避免将来出现此类问题:
Create reservations for Virtual Machine (VM) instances in a specific
zone, using custom or predefined machine types, with or without
additional GPUs or local SSDs, to ensure resources are available for
your workloads when you need them. After you create a reservation, you
begin paying for the reserved resources immediately, and they remain
available for your project to use indefinitely, until the reservation
is deleted.
下面我们来看第二期。再次查看此错误消息:
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
您可以在 documentation 中找到有关配额的更多信息。
要解决此问题,您应该按照以下步骤操作:
- 确保为您的项目启用计费。
-
- Go to the Quotas page.
- In the Quotas page, select the quotas you want to change.
- Click the Edit Quotas button on the top of the page.
- Check the box of the service you want to edit.
- Fill out your name, email, and phone number, and click Next.
- Enter your request to increase your quota, and click Next.
- Submit your request.
- A request to decrease quota is rejected by default. If you must reduce your quota, reply to the support email with an explanation of
your requirements. A support representative from the Compute Engine
team will respond to your request within 24 to 48 hours.
如果您使用 12 个月、300 美元的免费试用,您将无法申请增加配额,因为以下限制:
Your free trial credit applies to all Google Cloud resources, with the
following exceptions:
- You can't have more than 8 cores (or virtual CPUs) running at the same time.
- You can't add GPUs to your VM instances.
- You can't request a quota increase. For an overview of Compute Engine quotas, see Resource quotas.
- You can't create VM instances that are based on Windows Server images.
You must upgrade your account to perform any of the actions in
the preceding list.
估算使用成本
我想尝试PEGASUS来总结文章。 https://github.com/google-research/pegasus
我遵循了这个指示。 https://github.com/google-research/pegasus/tree/f76b63c2886748f7f5c6c9fb547456d8c6002562#setup
我检查了我可以使用的区域 NVIDIA Tesla V100
我决定使用 us-central1-a
https://cloud.google.com/compute/docs/gpus
我使用了这个命令。
gcloud compute instances create pegasustest --zone=us-central1-a
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
我收到这条错误消息。
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- The zone 'projects/covid19agent/zones/us-central1-a' does not have enough
resources available to fulfill the request.
Try a different zone, or try again later.
我花了3个小时再试,还是一样的结果。
因此,我将区域从 us-central1-a
更改为 asia-east1-c
。
我使用了这个命令。
gcloud compute instances create pegasustest --zone=asia-east1-c
--machine-type=n1-highmem-8 --accelerator type=nvidia-tesla-v100,count=1
--boot-disk-size=500GB --image-project=ml-images --image-family=tf-1-15
--maintenance-policy TERMINATE --restart-on-failure
然后我收到这个错误信息。
WARNING: Some requests generated warnings:
- Disk size: '500 GB' is larger than image size: '10 GB'.
You might need to resize the root repartition manually
if the operating system does not support automatic resizing.
See https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd
for details.
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
难道我不能试试 PEGASUS 吗?还有,试一下 PEGASUS 会不会太贵了?
我们先从第一期开始。再看看报错信息:
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - The zone 'projects/covid19agent/zones/us-central1-a' does not have enough resources available to fulfill the request. Try a different zone, or try again later.
当你start an instance it requests resources like vCPU, memory, GPU and if there's not enough resources available in the zone you'll get such message, more information available in the documentation:
If you receive a resource error (such as ZONE_RESOURCE_POOL_EXHAUSTED or ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS) when requesting new resources, it means that the zone cannot currently accommodate your request. This error is due to Compute Engine resource obtainability, and is not due to your Compute Engine quota.
资源可用性取决于用户请求,因此是动态的。
有几种方法可以解决这个问题:
- 稍等片刻,然后尝试再次启动您的 VM 实例(如您所试,但这次没有成功)。
- 将您的实例移动到 another zone(就像您所做的那样)。
Reserve resources 为您的虚拟机遵循文档以避免将来出现此类问题:
Create reservations for Virtual Machine (VM) instances in a specific zone, using custom or predefined machine types, with or without additional GPUs or local SSDs, to ensure resources are available for your workloads when you need them. After you create a reservation, you begin paying for the reserved resources immediately, and they remain available for your project to use indefinitely, until the reservation is deleted.
下面我们来看第二期。再次查看此错误消息:
ERROR: (gcloud.compute.instances.create) Could not fetch resource: - Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally.
您可以在 documentation 中找到有关配额的更多信息。
要解决此问题,您应该按照以下步骤操作:
- 确保为您的项目启用计费。
-
- Go to the Quotas page.
- In the Quotas page, select the quotas you want to change.
- Click the Edit Quotas button on the top of the page.
- Check the box of the service you want to edit.
- Fill out your name, email, and phone number, and click Next.
- Enter your request to increase your quota, and click Next.
- Submit your request.
- A request to decrease quota is rejected by default. If you must reduce your quota, reply to the support email with an explanation of your requirements. A support representative from the Compute Engine team will respond to your request within 24 to 48 hours.
如果您使用 12 个月、300 美元的免费试用,您将无法申请增加配额,因为以下限制:
Your free trial credit applies to all Google Cloud resources, with the following exceptions:
- You can't have more than 8 cores (or virtual CPUs) running at the same time.
- You can't add GPUs to your VM instances.
- You can't request a quota increase. For an overview of Compute Engine quotas, see Resource quotas.
- You can't create VM instances that are based on Windows Server images.
You must upgrade your account to perform any of the actions in the preceding list.