forked from docs/doc-exports
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2.4 KiB
2.4 KiB
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:
1 2
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.
Parent topic: Session Authentication