This topic describes FAQ about Data Science Workshop (DSW).

What is DSW?

DSW is a deep learning development platform that is provided by Machine Learning Platform for AI. DSW uses an optimized built-in TensorFlow framework and supports M40 and P100 GPUs, which you can use to run training tasks. DSW allows you to define and execute machine learning code online and download generated trained models.

How do I mount and use my own NAS file system on a DSW instance?

An DSW instance comes with a system disk storage as a temporary storage. After the instance is stopped or deleted, this storage is cleared. To permanently store data, you must mount your own network attached storage (NAS) file system on the instance. All of your NAS files are stored in the /nas directory. You can view and use the files in this directory by using the Terminal interface in DSW.

The latest version of DSW allows you to mount your own NAS file system on a DSW instance only when you create the DSW instance. For more information, see Create instances. After a DSW instance is created, you cannot modify the instance information or change the mounted NAS file system.
Note If a NAS file system is mounted on a DSW instance, the NAS file system is used for storage. The temporary storage of the DSW instance is no longer used.

How do I use a third-party library in DSW?

You can install a third-party library in DSW by running commands on the Terminal interface in DSW. The following code provides an example:
#Install a third-party library in the Python 3 environment.
pip install --user xxx
#Install a third-party library in the Python 2 environment.
source activate python2
pip install --user xxx
Replace xxx with the name of the third-party library that you want to install. After installation is complete, choose Kernel > Restart Kernel to restart the service.

Why does the system require logon again when I pause for a period of time during the execution of machine learning code?

To ensure security, a logon session in DSW is valid for 3 hours. When the session expires, you must log on again. Task execution is not affected by logon session timeout. If you need to run a task that lasts for a long period in time, we recommend that you run the nohup command on the Terminal interface in DSW to run the task in the background.

I established a FTP connection by using ECS and uploaded and downloaded files to a NAS file system. What do I do if the message "mount:wrong fs type,bad option,bad superlock" appears after I run the mount command?

  • Symptomsym
  • Solution
    Before you run the mount command, install the nfs-utils package.
    yum install nfs-utils

How do I use DSW to read data from OSS?

Go to the Terminal interface in DSW and run the osscmd command to upload and download files. The following code provides an example:
#When the message "Your configuration is saved into" appears, the AccessKey ID and AccessKey secret are saved.
$ osscmd config --id=accessid --key=accesskey --host=your_endpoint
#Upload a file.
$ osscmd put local_existed_file oss://mybucketname/test_object
#Download a file.
$ osscmd get oss://mybucketname/test_object download_file

Why does the third-party library I install fail to take effect?

After you run the pip command to install a third-party library and run the import command to import the library, if the library is not found, restart the service. If the error persists, check whether the current environment is valid. By default, DSW installs third-party libraries in the Python 3 environment. To install a third-party library in another environment, you must manually switch to the environment first. The following code provides an example:
Install a third-party library in the Python 2 environment.
source activate python2
pip install --user xxx
Install a third-party library in the TensorFlow 2.0 environment.
source activate tf2
pip install --user xxx
Replace xxx with the name of the third-party library that you want to install.

How do I deploy a model that is generated by DSW?

  • Use Elastic Algorithm Service (EAS) to deploy a model service.

    You can run commands on the Terminal interface in DSW to use EASCMD that is provided by DSW to deploy a model service. For more information, see Work with the development environments of DSW.

  • Download and deploy a model on premises.

    You can right-click a model that is generated by DSW and download the model.

How is DSW billed?

DSW can be billed in subscription or pay-as-you-go mode. You can select a billing method based on your needs. For more information, see Billing of DSW.

How do I view the bill of DSW?

If you use the pay-as-you-go billing method, you can view billing details by choosing Expenses > User Center in the top navigation bar of the Alibaba Cloud Management Console. For more information, see View bills and usage details.