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: