Inf2 compilation outside of Inf2 instances (i.e. within CPU-only docker instances)

0

Hi,

One big difference I've noticed between the inf1 and inf2 development experience is that with inf2, we are not able to compile models outside of inf2 instances (unlike inf1 where we were able to compile on a separate CPU-only instance). This definitely dampens the development experience as we're able to develop most of the model compilation toolchain locally without having to provision the remote inf instances for compilation purposes.

Am I missing something here, or are folks going through a similar challenge of developing the compilation workflows only on their inf2 instances?

已提問 8 個月前檢視次數 243 次
2 個答案
1

With inf1 instances, you were indeed able to compile models outside of inf1 instances, which made the development and deployment process more flexible. This allowed developers to test and refine their models on CPU-based machines before deploying on the inf1 instances.

However, as AWS iterates and improves its services, there may be changes in workflow or capabilities. The restrictions on inf2 instances you mentioned could be a part of these changes, which could be due to various reasons ranging from technical requirements, performance optimization, security considerations, or other factors.

profile picture
已回答 8 個月前
0

Check out https://awsdocs-neuron.readthedocs-hosted.com/en/latest/frameworks/torch/torch-neuronx/api-reference-guide/inference/api-torch-neuronx-trace.html#torch-neuronx-trace-api - this should work on a CPU instance, though you will need to install all the components (including the runtime-lib) on your instance for the installation to work correctly.

AWS
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南