Then train your model elsewhere and size it as appropriate for the runtime environment.
If that really isn't an option, then yes ML/AI isn't for you in this case.