KeyFlow Studio includes an optional EC2 worker for GPU inference. Use cloud GPU for workflows that need more VRAM or throughput than local hardware can provide.
- Develop and run smoke tests locally.
- Validate model loading on a local GPU if available.
- Use a known commit or release tag.
- Pull the code on EC2.
- Run a short cloud smoke test.
- Run production-sized jobs only after the smoke test passes.
For g6e.xlarge in eu-central-1, request quota for Running On-Demand G and VT instances.
Useful sizing:
1 x g6e.xlarge= 4 vCPU quota.2 x g6e.xlarge= 8 vCPU quota.
Spot quota is separate. If All G and VT Spot Instance Requests is 0, launch On-Demand, not Spot.
The EC2 worker is located in ../ec2_worker/.
Typical launch shape:
cd ec2_worker
uvicorn worker:app --host 0.0.0.0 --port 8080 --workers 1Keep one job per GPU unless the model and VRAM profile are known to support concurrency.
Use AWS profiles, instance roles, or environment-specific secret stores for credentials. Do not paste credentials into issue reports or logs.
Common local credential file names include:
keyflow-cli_accessKeys.csv.env.env.**.pem