Skip to content

Visualizing training logs for AWS Bedrock fine-tuning jobs

0

Hello,

I started a fine-tuning job with the recently available Claude 3 Haiku FT feature on Bedrock. I have about 10k lines of data split across train and validation. Generally, I have followed all the instructions that are mentioned in https://aws.amazon.com/blogs/aws/fine-tuning-for-anthropics-claude-3-haiku-model-in-amazon-bedrock-is-now-generally-available/. The job has been running for >15 hours while I have set only 2 epochs. Is that normal or seems too long?

Additionally, is there a way to visualize the progress of the training step? Right now I only see the status on the job which says "Training" for 15 hours now. But I cannot see which epoch/num_steps it is on, or whether it is stuck somewhere.

Thanks!

1 Answer
0

The duration of a fine-tuning job can vary depending on several factors, including the amount of data, model complexity, and the specific hyperparameters you've set. While 15 hours for 10,000 lines of data over 2 epochs might seem long, it's not necessarily abnormal without more context about your specific setup and the complexity of your data.

As for visualizing the progress of the training step, unfortunately, Amazon Bedrock does not currently provide detailed real-time progress information for fine-tuning jobs in the way you're describing. The console typically only shows the overall status of the job (e.g., "Training") without providing granular details about the current epoch or step.

However, there are a few ways you can monitor your job:

  1. In the Amazon Bedrock console, you can view the job details page by navigating to the "Custom models" section under "Foundation models," selecting the "Training jobs" tab, and then choosing your specific job. This will show you the overall status and any available details about the job configuration.

  2. After the job is complete, you can analyze the results by examining the files in the output Amazon S3 folder that you specified when setting up the job. This might include logs and metrics that can give you insights into how the training progressed.

  3. You can use Amazon CloudWatch to set up more detailed monitoring and logging for your Bedrock jobs. While it may not provide real-time epoch/step information, it could give you more insights into the job's progress and resource utilization.

  4. If you're concerned about the job being stuck, you may want to check if there are any error messages or unexpected behaviors in the CloudWatch logs associated with your job.

For future fine-tuning jobs, you might consider adjusting your hyperparameters, such as batch size or learning rate, which could potentially impact the training time. Additionally, enabling early stopping (if you haven't already) could help prevent unnecessarily long training times if the model performance plateaus.

If you continue to experience unusually long training times or are concerned about the progress of your job, it's recommended to contact AWS support for more specific assistance with your use case.

Sources
Monitor your model customization job - Amazon Bedrock
Fine-tuning for Anthropic’s Claude 3 Haiku model in Amazon Bedrock is now generally available | AWS News Blog

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.