File size: 1,351 Bytes
df04ef7
4a2355f
df04ef7
 
 
 
 
414168a
df04ef7
 
61b1870
 
 
 
14b0c51
 
 
4a2355f
 
 
 
 
 
 
14b0c51
4a2355f
 
 
 
c08e80b
4a2355f
14b0c51
 
 
8b9c256
 
14b0c51
 
 
 
3f7316c
 
 
 
 
 
 
 
 
e6b0962
3f7316c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
title: GH Space for ODD Data Generation with OpenFractal
emoji: 👁
colorFrom: purple
colorTo: pink
sdk: docker
pinned: false
app_port: 7860
---

This HF Space allows you to execute an Openfractal manager in a space.

Under the hood it simply execute the Openfractal client from <https://github.com/OpenDrugDiscovery/openfractal-client>.

## Configurations

### Non-confidential Configuration

```bash
QCF_COMPUTE_BASE_FOLDER="/tmp/"
QCF_COMPUTE_CLUSTER="manager_demo_1"
QCF_COMPUTE_LOGLEVEL="INFO"
QCF_COMPUTE_UPDATE_FREQUENCY="30"
QCF_COMPUTE_SERVER="{}"
QCF_COMPUTE_SERVER_FRACTAL_URI="https://openfractal-test-pgzbs3yryq-uc.a.run.app"
QCF_COMPUTE_SERVER_VERIFY="false"
QCF_COMPUTE_ENVIRONMENTS_USE_MANAGER_ENVIRONMENT="true"
QCF_COMPUTE_ENVIRONMENTS_CONDA="[]"
QCF_COMPUTE_ENVIRONMENTS_APPTAINER="[]"
QCF_COMPUTE_EXECUTORS='{"local": {"type": "local", "queue_tags": ["demo_hf_space"], "cores_per_worker": 2, "memory_per_worker": 16, "max_workers": 1}}'
```

### Confidential Configuration

To be added in HF Space Secrets in the Space's settings.

```bash
QCF_COMPUTE_SERVER_USERNAME="YOUR_USERNAME"
QCF_COMPUTE_SERVER_PASSWORD="YOUR_PASSWORD"
```

## Local Testing

With `docker-compose`:

```bash
export QCF_COMPUTE_SERVER_USERNAME="YOUR_USERNAME"
export QCF_COMPUTE_SERVER_PASSWORD="YOUR_PASSWORD"

docker-compose run --rm opf_manager
```