AI Notebooks - Manage and use data in a notebook via UI
Learn how to manage and access data from your Object Storage in your Notebook
Learn how to manage and access data from your Object Storage in your Notebook
Last updated 13th April, 2022.
This guide shows how to access Object Storage data from your notebooks via the OVHcloud Control Panel.
Administrator
or AI Training operator
role, see here for more informationFirst, you need to push some data to the Object Storage
before accessing it from the notebook.
You can access to the Object Storage
section of your Public Cloud project on the OVHcloud Control Panel.
You can upload different types of data: datasets, code, notebooks, connection weights, text or csv files, etc.
To upload your data, go to Create an object container
.
Let's assume that a file named my-dataset.zip
exists locally on your computer and contains your dataset. You will be able to upload it into an object container in your Object Storage by following these steps.
If you want to know more about the different storage solutions, refer to this page.
To optimize the download and upload times, we advise you to store your data in the same place as your notebook (GRA
or BHS
).
Choose the type of your data according to what you want to do.
Example: for a dataset that you use to train your model, the Private
type is appropriate
You have created your container to host your dataset.
You are now ready to load your data!
In order to upload your dataset into your object container my-dataset
, you have to go on Add objects
and select your local my-dataset.zip
file.
You will now see your my-dataset.zip
file displayed in your object container.
You can also create a new empty my-weights
container in which you can save your connection weights (or your validated model) at the end of your training.
We assume that we now have two object containers available:
my-dataset
, containing the file my-dataset.zip
my-weights
, emptyYou are now ready to launch a notebook with your data!
To launch an AI notebook, access the AI Notebooks section of your Public Cloud project in the OVHcloud Control Panel.
For the first 4 steps of the notebook creation, please refer to this tutorial.
You can choose between 2 datacenters for the storage of your notebook: GRA
or BHS
.
You can attach your different types of data to your notebook.
You can load the container my-dataset
in the /workspace/dataset
directory, with Read-only
permission.
You will not be able to modify the dataset from this notebook because you loaded it with Read-only
permission.
Read-only
permissions are to ensure you don't modify your data by mistake. If you want to modify data from your
notebooks, to store a trained neural network for example, you can use the Read-write
permission instead.
Similarly to the Read-only
mode, you can load data with Read-write
permission.
Once you have some data that you want to save from the notebook to Object Storage (connection weights in this example), you can simply write it to the /workspace/weights
folder.
This folder will be uploaded to your Object Storage when you stop your notebook.
As long as your notebook is in the STOPPING
state, this means that the upload is still in progress. Once the state changes to STOPPED
, it means all the data was uploaded to your Object Storage.
If Python code, notebooks or other files are available on a public GitHub repository, you can attach them to your notebook. To be able to edit and make changes easily, use the Read-write permission.
The command is as follows:
To make your command valid, don't forget to add a .git
at the end of the GitHub repository URL.
When loading large files from the Object Storage
, it can take some time to download to your notebooks. In these cases, you can cache the volumes so that it does not need to be downloaded again when you start new notebooks that use the same data.
To do so, you can check Cache
.
Cached volumes will be deleted at least 72 hours after the last notebook using it has stopped. Note that the cache is shared with all users in your project. The main consequence you need to be careful about is the fact that if someone else modifies the data in your cached volume, you will also see the modifications on your side.
Your notebook is now ready to be launched with your data!
You can read the Getting started page to know how to find this URL.
As soon as you access your notebook, you will see your different folders containing your data.
Please send us your questions, feedback and suggestions to improve the service:
Prima di inviare la valutazione, proponici dei suggerimenti per migliorare la documentazione.
Immagini, contenuti, struttura... Spiegaci perché, così possiamo migliorarla insieme!
Le richieste di assistenza non sono gestite con questo form. Se ti serve supporto, utilizza il form "Crea un ticket" .
Grazie per averci inviato il tuo feedback.
Accedi al tuo spazio nella Community Fai domande, cerca informazioni, pubblica contenuti e interagisci con gli altri membri della Community OVHcloud
Discuss with the OVHcloud community