Skip to content

Commit

Permalink
🖌️ Adding language highligts
Browse files Browse the repository at this point in the history
  • Loading branch information
poloniki committed Oct 25, 2023
1 parent d6e8a80 commit 41aff89
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ datacrunch = DataCrunchClient(CLIENT_ID, CLIENT_SECRET)

### Create an SSH key and save it in ~/.ssh folder

```
```python
import os
import subprocess
import shutil
Expand Down Expand Up @@ -155,7 +155,7 @@ if len(ssh_keys) == 0:

### Select GPU (by default A6000, but you can change to any available on website)

```
```python
#We select accessible GPU's that work really fast
instance_type=''
if datacrunch.instances.is_available(instance_type='1A6000.10V'):
Expand All @@ -168,7 +168,7 @@ elif datacrunch.instances.is_available(instance_type='1A6000ADA.10V'):

Edit path to script according to enviroment you are in. Otherwise you can just run the notebook.

```
```python
#Read the Bash script's contents
with open('../scripts/clone_github_code.sh', 'r') as file:
script_contents = file.read()
Expand All @@ -180,7 +180,7 @@ script_id = datacrunch.startup_scripts.get()[0].id

### Create the new Instance

```
```python
#Create a new instance
instance = datacrunch.instances.create(instance_type=instance_type,
image='ubuntu-22.04-cuda-12.0-docker',
Expand All @@ -203,23 +203,28 @@ print('Instance is running, you can now connect to it.')

### Connect to instance via terminal

```
```python
host = datacrunch.instances.get()[0].ip
print(f'ssh root@{host} -i ~/.ssh/{key_filename}')
Copy this command and run in terminal to connect to the instance.
```

#Connect to server via ssh and perform command "sudo reboot" to restart server for enabling Nvidia Drivers

```shell
sudo reboot
```

Inside of instance terminal run this commands to copy latest version

```
```shell
apt install gh
git clone https://github.com/poloniki/quint.git
```

Build and run docker

```
```shell
docker build -t quint --file Dockerfile.jax .
docker run --gpus all -p 80:80 quint
```
Expand Down

0 comments on commit 41aff89

Please sign in to comment.