Nodes

TIR Nodes are fully collaborative environments that make AI development possible. They combine power of containers, jupyter labs and AI/ML frameworks to create a readily usable workspace for you and your entire team.

Some of the most common use cases are:

  • Run a script or notebook to fine-tune a Large Language Model (LLM) on single GPU using pytorch or huggingface train

  • Run a script or notebook to tokenize and fine-tune LLMs or Diffusion models with with multiple GPUs (single machine) using deepspeed and accelerate

  • Open and run a jupyter notebook (.ipynb) from the platforms like github, kaggle or collab

  • Download and review datasets stored on TIR or other platforms like huggingface

  • Download and test models like stable diffusion, or any LLM

Note

A TIR node is fully functional coding environment.

If you prefer to work with command line (shell) over jupyter labs, you can configure ssh on a notebook(node). This way you can upload your data using sftp or sync your code with git tools and run the scripts as you would on your local system.

Getting started with Nodes on TIR

  1. User needs to login using myaccount credentials and select TIR AI platform to use resources on TIR.

  2. User will be landed to TIR landing page and user will create a project using “Create project” button.

  3. Note: The project will be created on the private workspace of the user.

  4. Once you are into the newly created project, click on “Nodes” in side panel to launch the resource.

  5. User can select from the available images to create a node.

Note

User can also filter the nodes based on the need using TIR pre-built, container Registry, Base OS.

  1. Next, you can choose a CPU or GPU plan. Feel free to choose Free Tier plan for this exercise

  2. User need to select the GPU or CPU required plan. In case of CPU, user can always select the free Tier Plan in the exploration stage. In case of GPU, if the required plan is not available user can always request for the plan and we will notify the user once it is available via email.

  3. Choose and appropriate name for you node and select the type of nodes as New Notebook or Import Notebook. If import nootebook is selected then user need to provide the url for the node.

Note

Choosing new Notebook will create will open an empty JuypterLab, while Import node will give flexibility to the user to seamlessly pull publicly available nodes from GitHub or Colab.

  1. Select the workspace size you want to create. Please note, by default 30 GB of free workspace is provided with each node.

  2. (Optional) Set Enable SSH Access switch to enabled to add or select your SSH key.

  3. When the node is ready, you will see both Jupyter labs and SSH options (if configured). Choose any of these to access the node environment .

Node options

TIR nodes are extremely powerful and flexible. While most configurations have a default to make User’s life easier, sometimes you may need to tweak the knobs. The following are the configurations that you can tweak in a node environments:

  • Enable SSH: You can enable SSH access on the node using public key or password (not recommended). If you decide to enable ssh after starting a node, you will have to first stop the node before you make changes.

  • Disk Size: Each TIR node can have a disk size upto 5000GB. The default is 30GB. The selected disk will be mounted at /home/jovyan in your node environment. We recommend using this path as your workspace so in case of restarts, your content will be persistent. Since, TIR is container-native, the changes that you make to any other paths on the node will not be persisted on restarts. You can extend the disk size after the start of container as well. This workspace will be deleted when the associated node is deleted.

    Note

    Please raise a support ticket if you need more than 5TB of disk workspace.

  • Local NVME Storage: Only available for H100 plans. This fast local storage will be available at /mnt/local andonly for the duration of run. We recommend using this path when you need faster writes (e.g. save model checkpoints) or reads. Be sure to move this data to EOS bucket or under /home/jovyan before shutting down the node. This type of storage is fixed and can not be expanded at anytime during the node cycle.

  • Plan (Pricing): You can choose between an hourly or committed plan. We recommend using committed plans as they offer discounts and also may offer access to local NVME storage (for H100 plans only).

  • Node Image: TIR environments are container-native. You can use pre-built images with well known frameworks like pytorch, transformers or customise the pre-built images. You can make your own images TIR-compatible using image builder utility. We recommend starting with pre-built images. In case you need to install packages from pip or apt-get, we recommend doing so from a jupyter notebook (.ipynb) or maintaining requirements.txt.

  • Configuration: TIR offers a variety of cpu and gpu options. We recommend using A100 or H100 for best performance.

  • Update Node: You can upgrade or downgrade both the configuration (e.g. upgrade from cpu to gpu) and Plan (e.g. hourly to committed) of a node if desired. This is useful option when restarting nodes and the original hardware plan (gpu) on the node is no longer available.

  • Stop Node: If the plan and configuration allows, you can stop a node and restart. In case of hourly plan, you will not be billed for the GPU or GPU when node is in a stopped state. However, if your disk usage is beyond free tier, you will be charged for it.

  • Delete Node: When a node is deleted, all the resources associated with it will be deleted including the workspace (disk).

Node Statuses

  • Waiting: The node instance is being deployed on the hardware of your choise.

  • Running: The node is active and you can use either jupyter labs or ssh (if enabled) to access it.

  • Stopped: The node is not assigned to any machine. However, the workspace (disk mounted at /home/jovyan) will continue to exist until you delete the node. Depending on the size of the disk, you will charged for the usage.

How to create Node ??

To create a Node you have to click on Create Node which is at the right corner of the page.

../_images/click_create_node.png

After clicking on the Create Node button a page will appear, now select Node image option from TIR PRE-BUILT , BASE OS and CONTAINER REGISTRY. Additionally you can also perform the search on the Node Images.

../_images/node_create_tirprebuilt.png

The Base OS node image does not come with JupyterLab pre-installed.

../_images/node_create_baseos.png

When installing an image from the Container Registry, the user must specify whether the selected image includes JupyterLab pre-installed or not.

../_images/node_create_container_reg.png

After selecting the machine, the Resource page will appear. At this stage, choose a plan based on either CPU or GPU requirements.

../_images/node_create_noderesources.png

Additionally, you can filter CPU and GPU resources based on your specific requirements for more tailored selection.

../_images/node_create_CPU_filter.png

At this step, the user can also add the required dataset to the node being created.

../_images/node_create_node_storage.png

The user is prompted to provide the essential details before the node is created.

../_images/node_create_node_detail.png

After all steps are completed, the Node Summary details will be displayed.

../_images/node_create_summary_page.png

After clicking on the ‘Create’ button, the page will redirect to the ‘Manage Nodes’ page and display all details there.

../_images/Manage_Node_details.png

Node Details

Overview

You can see the Node Details, Plan Details under Overview tab.

../_images/note_book_overview3.png

Disk Size

You can see the details disk size and also You can change the Disk size as per your requirements.

../_images/Notebook6.png

For updating the disk size you have to change the disk size and then click on update button.

../_images/Notebook7.png

Metrics

You can see the Metrics graph in CPU Utilization , Memory Utilization & Interval.

../_images/Notebook8.png

You can see the one month activity as per your requirement in days & hours.

../_images/Notebook9.png

Associated Datasets

You can also see the Associated Datasets with two different datasets- Mounted & Unmounted. You can also Unmount.

../_images/Notebook10.png

SSH Key

You can see the SSH Key Details under ssh key tab.

../_images/note_book_ssh1.png

Update SSH Key

Note

Only one SSH key can be added to a Launch Node from Sidebar

You can launch the node from the left side of the Node name .

../_images/Notebook17.png

Node

Note

When user want to change ssh key kindly first stop the node then change the ssh key

../_images/change_ssh-key1.png

Add SSH Key After Node Creation

Note

When user want to add ssh key after Notebook creation, kindly first stop node then add ssh key

../_images/afternotebook_cration1.png ../_images/sshkeynotebook2.png

Node Actions

You can see the actions like Launch Node, Stop, Update Node, Delete.

../_images/Notebook11.png

Launch Node

After clicking on Launch Node, Node will be launched and it should be visible like this.

../_images/Notebook12.png ../_images/Notebook131.png

Stop

For Stopping the Notebbok you have to click on Stop button and the Node will be stopped.

../_images/Notebook14.png

Update Node

You can update Node, For updating the Node You have to click on Update button.

../_images/Notebook15.png

Note

Node must be in Stop state before updating the Node.

Delete Node

For Deleting the Node you have to click on Delete button.

../_images/Notebook16.png

Launch Node from Sidebar

You can launch the node from the left side of the Node name .

../_images/Notebook17.png

Advance Filter on Node

You can locate the node by entering its name in the search bar.

../_images/node_search.png

You can access advanced filter options by clicking on this button.

../_images/node_search_button.png

You can apply the advanced filter configurations and then click the search button.

../_images/node_advance_search.png