Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bmyerz0/triton-for-azureml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Triton on AzureML Studio

This project will help you get started using the Triton programming language on GPU resources in AzureML.

Pre-requisites

  • access to an AzureML Studio workspace, subscription
  • compute cluster of Nvidia GPU resources

Quickstart

Use these instructions if you want to get something working as quickly as possible. There are comments in the code but not much is explained here, so if you want more understanding of AzureML, you might look at the tutorials in the Resources section below.

  1. Go to AzureML Studio, go to your workspace, go to Notebooks
  2. Create a folder called triton-examples/
  3. Add the files/folders from this repository
  4. Open triton_gpu_submit.ipynb
  5. Fill in your subscription information
    subscription_id="YOUR-SUBSCRIPTION-ID",
    resource_group_name="YOUR-RESOURCE-GROUP-NAME",
    workspace_name="YOUR-WORKSPACE-NAME",
  1. Create a Compute using the Set your kernel instructions from this tutorial. You just need to create an low-end CPU type that can run your notebook code. The actual Pytorch/Triton code will get run on your GPU cluster.
  2. Complete the instructions at Create a Triton Environment below; then return here for the next step
  3. Where the script says environment, replace the value with the name and version of the Environment you created
environment="acpt-triton-2@latest", # what environment the compute cluster node will be running
  1. In triton_gpu_submit.ipynb, run all the cells (runs on your cheap CPU compute). The last one actually submits your Triton/Pytorch job to the GPU cluster
  2. Open the link that gets printed to see the status of your job
  3. In that dashboard, when the job is finished you should the output of triton_gpu.py in Outputs + logs
  4. To test a different Triton program, add it to the triton-examples/src folder and change this line of the submit script to call your python file.
    command="python activation.py",

Create a Triton Environment

We do not yet have a hosted Environment with Triton installed. Here is how you can quickly create your own.

You'll need an Environment with Pytorch and Triton installed. Here is one way to do it with Azure Container for Pytorch (ACPT), but you can pick the base environment you prefer.

  1. Follow these instructions: How to create Azure Container for PyTorch Custom Curated environment
  2. Use the option of a Dockerfile, use the contents shown here TODO
  3. Note the name you gave to the environment; you'll need to put it in your GPU submit script

General AzureML Studio resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published