Installation
Configure Magemaker for your cloud provider
For Macs, maxOS >= 13.6.6 is required. Apply Silicon devices (M1) must use Rosetta terminal. You can verify, your terminals architecture by running arch
. It should print i386
for Rosetta terminal.
Install via pip:
Cloud Account Setup
AWS Configuration
- Follow this detailed guide for setting up AWS credentials: AWS Setup Guide
Once you have your AWS credentials, you can configure Magemaker by running:
It will prompt you for aws credentials and set up the necessary configurations.
GCP (Vertex AI) Configuration
- Follow this detailed guide for setting up GCP credentials: GCP Setup Guide
once you have your GCP credentials, you can configure Magemaker by running:
Azure Configuration
- Follow this detailed guide for setting up Azure credentials: GCP Setup Guide
Once you have your Azure credentials, you can configure Magemaker by running:
All three cloud providers
If you have configured all three cloud providers, you can verify your configuration by running:
Required Config File
By default, Magemaker will look for a .env
file in your project root with the following variables based on which cloud provider(s) you plan to use:
For gated models like llama-3.1 from Meta, you might have to accept terms of use for model on hugging face and adding Hugging face token to the environment are necessary for deployment to go through.
Best Practices
-
Resource Management
- Monitor quota limits
- Clean up unused resources
- Set up cost alerts
-
Environment Management
- Use separate configurations for dev/prod
- Regularly rotate access keys
- Use environment-specific roles
-
Security
- Follow principle of least privilege
- Use service accounts where possible
- Enable audit logging
Troubleshooting
Common configuration issues:
-
AWS Issues
- Check IAM role permissions
- Verify SageMaker quota
- Confirm region settings
-
GCP Issues
- Verify service account permissions
- Check Vertex AI API enablement
- Confirm project ID
-
Azure Issues
- Check resource provider registration status:
- Verify workspace access
- Confirm subscription status
- Ensure all required providers are registered
- Check resource provider registration status: