# Running Disco Diffusion on a Linux instance

## Deploy your Cloud GPU

You can deploy a GPU on our [Marketplace](https://marketplace.tensordock.com/order_list) to your specific configurations based on cost, RAM, storage, and vCPUs.&#x20;

Select any TensorML PyTorch installation (or TensorML Everything). Note the required amount of disk space required for the installation.

<figure><img src="https://276866638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FScYFYZoiZXazILi6lxJ5%2Fuploads%2FpEwFVz7PDJX17ZWjg12W%2Fimage.png?alt=media&#x26;token=ded090d7-699b-4b90-8a36-6ff37fc43e66" alt=""><figcaption></figcaption></figure>

## Install dependencies

Create and activate a conda environment (inside Ubuntu) with all the appropriate dependencies.

```
conda create -n pytorch_110
conda activate pytorch_110
```

Whenever you restart your computer, or close and open Ubuntu again, you will have to run that second command (`conda activate pytorch`). Now install the correct version of pytorch:

```
conda install pytorch==1.10 torchvision torchaudio cudatoolkit==11.1 -c pytorch -c conda-forge
```

Type y whenever prompted.

Now install some other dependencies:

```
conda install jupyter pandas requests matplotlib
conda install opencv -c conda-forge
```

## Install Disco Diffusion

You can easily install Disco Diffusion on your TensorDock instance with `git clone`

```bash
$ git clone https://github.com/MohamadZeina/Disco_Diffusion_Local
```

## Run on Jupyter Notebook

Follow [this tutorial](https://docs.tensordock.com/marketplace/running-jupyter-notebook) to open your Disco Diffusion `.ipynb` on Jupyter Notebook

<figure><img src="https://276866638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FScYFYZoiZXazILi6lxJ5%2Fuploads%2F3p8vK9FyTcheRiaUCVhb%2Fimage.png?alt=media&#x26;token=b22490a0-a1a0-4c46-ba32-e291ca0f8ab8" alt=""><figcaption><p>Any of the .ipynb files are valid versions of Disco Diffusion</p></figcaption></figure>

<figure><img src="https://276866638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FScYFYZoiZXazILi6lxJ5%2Fuploads%2F8ay9HIU04BzT6Xo22UlH%2Fimage.png?alt=media&#x26;token=99c2a9bb-426d-41d5-8d17-011e537986a8" alt=""><figcaption></figcaption></figure>

## Using Disco Diffusion

Congratulations! You have set up Disco Diffusion on your TensorDock instance and it ready to be run.

For examples of how to use, follow any of these tutorials:

* <https://www.youtube.com/watch?v=3FVW3ewlTh0>
* <https://www.youtube.com/watch?v=1Gp5l9EUX9I>
