# 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="/files/whaft5L4Hswok2VUTm1X" 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="/files/tEdBUI9F1O6gl2P3ZBBO" alt=""><figcaption><p>Any of the .ipynb files are valid versions of Disco Diffusion</p></figcaption></figure>

<figure><img src="/files/ixV25OShydqRDzEna7Ah" 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tensordock.com/virtual-machines/running-disco-diffusion-on-a-linux-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
