Overview of Session Authentication¶
The session module authenticates in-cloud resources and initializes ModelArts SDK Client and OBS Client. After a session is set up, you can directly call the ModelArts SDK APIs.
ModelArts notebook can be directly used without configuring session authentication parameters. The sample code is as follows:
from modelarts.session import Session session = Session()
When using the ModelArts SDK in other development environments, select one of the following authentication methods for session authentication:
Authentication Using the Username and Password: Available for OBS Management, Training Management, Model Management, and Service Management.
AK/SK-based Authentication: Available for OBS Management, Training Management, Model Management, and Service Management.