1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
@mollythejams 2 approaches:
- use Amazon SageMaker API to train your model. Here's the documentation, and here you can find some examples. You can choose the type and the number of instances (assuming you can train your model in parallel), and you'll only pay for the time the compute resources are needed. You can probably reduce the time needed to train your model. Once a training job has started, you can monitor it from the SageMaker console.
- even if you're log out because of a timeout, the kernel should still be active (unless you enabled any lifecycle policy to automatically shutdown the kernel to save costs). This is not guaranteed, but generally it should be the case. The problem is that the Jupyter UI will not automatically sync to the state of the kernel, giving the impression that the kernel also stopped. You can try to add the instruction to add new entries in a log file in your training loop, so that you can confirm the training is ongoing and its progress by looking at the log file.
I strongly recommend to adopt the first approach, and decouple the instance used to write the code (running the jupyter kernel) and the compute resources for model training.
답변함 2년 전
관련 콘텐츠
- 질문됨 13일 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 2년 전