Skip to main content

Run on Gradient

Run on Gradient is the fastest way to share Gradient Notebooks on Paperspace.

Run on Gradient

Overview​

Run on Gradient makes it easy to generate a button that anyone can use to launch a jupyter notebook on blazing fast GPUs.

Run on Gradient

With Run on Gradient, Paperspace offers better configuration options and provides more GPU machine types than any other cloud provider.

Run on Gradient badges bring interactivity to GitHub repos

Try the link builder below to create your own Run on Gradient link.

Inputs



Link to container (List of base runtimes)

Link to machine (List of machines)

Outputs

Add a valid Github repo
Run on Gradient

Configuration parameters​

The following configuration parameters are available in Run on Gradient:

  1. Repo
  2. Container
  3. Machine type

Following are some examples of Run on Gradient links. The only mandatory parameter is the repo or .ipynb file to pull into the notebook. Container and machine type are optional.

ParameterRequiredQuery StringExample
Repository or fileYesNonehttps://console.paperspace.com/github/nlp-with-transformers/notebooks/blob/main/02_classification.ipynb
ContainerNocontainer=https://console.paperspace.com/github/nlp-with-transformers/notebooks/blob/main/02_classification.ipynb?container=paperspace/gradient-base:tf29-pt112-py39-2022-06-29
MachineNomachine=https://console.paperspace.com/github/nlp-with-transformers/notebooks/blob/main/02_classification.ipynb?machine=P4000

The container= and machine= parameters follow standard query string formatting rules.

Insert the ? symbol before the first query string and the & symbol after each query string unless it is last.

An example of a Run on Gradient link that features both container= and machine= query strings is as follows:

https://console.paperspace.com/github/nlp-with-transformers/notebooks/blob/main/02_classification.ipynb?container=paperspace/gradient-base:tf29-pt112-py39-2022-06-29&machine=P4000

How to create the Run on Gradient button or badge​

To apply the Run on Gradient button or badge in a GitHub repo, we can use the following syntax:

[![Gradient](https://assets.paperspace.io/img/gradient-badge.svg)](https://console.paperspace.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb)

The HTML equivalent is:

<a href="https://console.paperspace.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb">
<img src="https://assets.paperspace.io/img/gradient-badge.svg" alt="Run on Gradient"/>
</a>

Remember to replace the notebook URL in this template with the notebook you want to link.

The Run on Gradient link will bring the end user to a Gradient Notebook in offline view.

Here is an example of such a notebook.

Run on Gradient offline view

From here the user will be prompted to sign up for a Paperspace account or to login via Google, Github, or Email.

New users may quickly signup for a free Paperspace account to run the notebook

After signing up or logging in, the user can now run the notebook!

Clicking the badge brings the user to a static notebook page where they may run the notebook