Skip to content

Commit 3ec5224

Browse files
authored
proof guide.en-gb.md
1 parent 6c16cb8 commit 3ec5224

File tree

1 file changed

+27
-25
lines changed
  • pages/public_cloud/ai_machine_learning/deploy_tuto_19_flux

1 file changed

+27
-25
lines changed

pages/public_cloud/ai_machine_learning/deploy_tuto_19_flux/guide.en-gb.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Deploy FLUX Text-to-Image Models
33
excerpt: How to deploy the FLUX image generation models using ComfyUI
4-
updated: 2025-07-25
4+
updated: 2025-07-31
55
---
66

77
> [!primary]
@@ -11,9 +11,9 @@ updated: 2025-07-25
1111
1212
## Introduction
1313

14-
[FLUX](https://github.com/black-forest-labs/flux) is a flexible family of generative models developed by [Black Forest Technologies](https://bfl.ai/). The **FLUX** models support a variety of tasks, including text-to-image generation, structural conditioning, and inpainting.
14+
[FLUX](https://github.com/black-forest-labs/flux){.external} is a flexible family of generative models developed by [Black Forest Technologies](https://bfl.ai/){.external}. The **FLUX** models support a variety of tasks, including text-to-image generation, structural conditioning, and inpainting.
1515

16-
In this tutorial, we walk through the process of deploying **FLUX** models on **AI Deploy**. We will show how to use **FLUX** models interactively with [ComfyUI](https://github.com/comfyanonymous/ComfyUI) (a visual programming interface).
16+
In this tutorial, we walk through the process of deploying **FLUX** models on **AI Deploy**. We will show how to use **FLUX** models interactively with [ComfyUI](https://github.com/comfyanonymous/ComfyUI){.external} (a visual programming interface).
1717

1818
## Instructions
1919

@@ -37,7 +37,7 @@ The following table lists the main FLUX variants and their intended use cases:
3737
| `FLUX.1 [dev]` | [Text to Image](docs/text-to-image.md) | https://huggingface.co/black-forest-labs/FLUX.1-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
3838
| `FLUX.1 Kontext [dev]` | [Image editing](docs/image-editing.md) | https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev | [FLUX.1-dev Non-Commercial License](model_licenses/LICENSE-FLUX1-dev) |
3939

40-
Full list is available on the [official repository](https://github.com/black-forest-labs/flux) for FLUX.1 models.
40+
Full list is available on the [official repository](https://github.com/black-forest-labs/flux){.external} for FLUX.1 models.
4141

4242
## Requirements
4343

@@ -47,7 +47,7 @@ Before proceeding, ensure you have the following:
4747
- An AI Deploy Project created inside a [Public Cloud project](/links/public-cloud/public-cloud) in your OVHcloud account
4848
- A [user for AI Training & Object Storage](/pages/public_cloud/ai_machine_learning/gi_01_manage_users)
4949
- [The OVHcloud AI CLI](/pages/public_cloud/ai_machine_learning/cli_10_howto_install_cli) installed on your computer
50-
- [Docker](https://www.docker.com/get-started) installed on your computer, **or** access to a Debian Docker Instance, which is available on the [Public Cloud](/links/manager)
50+
- [Docker](https://www.docker.com/get-started){.external} installed on your computer, **or** access to a Debian Docker Instance, which is available on the [Public Cloud](/links/manager)
5151
- A Hugging Face account, with access to the FLUX model. You need to accept usage terms on the model Hugging Face page.
5252
- A Hugging Face access token (generate one under your Hugging Face account → Access Tokens). This one will be used to authenticate and download the model weights.
5353

@@ -140,7 +140,7 @@ This command will:
140140
141141
You can track the progress of your job using the following commands:
142142
143-
```
143+
```sh
144144
ovhai job list
145145
ovhai job logs -f <job_id>
146146
```
@@ -149,13 +149,13 @@ This will allow you to view the logs generated by your job, seeing the imports a
149149

150150
You can then verify the presence of your files by checking your Object Storage bucket from the OVHcloud Control Panel or via CLI using the following command:
151151

152-
```console
152+
```sh
153153
ovhai bucket object list <bucket_name>@GRA
154154
```
155155

156156
### Build a Docker image
157157

158-
Once the FLUX model weights are uploaded to Object Storage, the next step is to build a Docker image that packages [ComfyUI](https://github.com/comfyanonymous/ComfyUI) and its required dependencies.
158+
Once the FLUX model weights are uploaded to Object Storage, the next step is to build a Docker image that packages [ComfyUI](https://github.com/comfyanonymous/ComfyUI){.external} and its required dependencies.
159159

160160
This image will later be deployed as an AI Deploy application, where the model files will be mounted at runtime from Object Storage. This avoids the need to embed large model weights directly into the container image.
161161

@@ -241,7 +241,7 @@ exec python3 /app/ComfyUI/main.py --listen 0.0.0.0 --port 8188
241241

242242
Then, launch one of the following commands from the created folder that contain your `Dockerfile` and the `entrypoint.sh` script to build your application image:
243243

244-
```console
244+
```sh
245245
# Build the image using your machine's default architecture
246246
docker build -t flux-image:latest .
247247

@@ -258,27 +258,28 @@ docker buildx build --platform linux/amd64 -f Dockerfile -t flux-image:latest .
258258

259259
After building the image, tag and push it to a container registry.
260260

261-
In this example, we use the OVHcloud shared registry, available to every AI Deploy user. But you can also use other registires such as OVHcloud Managed Private Registry, Docker Hub, GitHub packages, ...
261+
In this example, we use the OVHcloud shared registry, available to every AI Deploy user. But you can also use other registires such as OVHcloud Managed Private Registry, Docker Hub, GitHub packages, etc.
262262

263263
> [!warning]
264-
> **Warning**
264+
>
265265
> The shared registry should only be used for testing purpose. Please consider attaching your own registry. More information about this can be found [here](/pages/public_cloud/ai_machine_learning/gi_07_manage_registry). The images pushed to this registry are for AI Tools workloads only, and will not be accessible for external uses.
266+
>
266267
267268
You can find the address of your shared registry by launching this command:
268269

269-
```bash
270+
```sh
270271
ovhai registry list
271272
```
272273

273274
Log in to the shared registry with your usual AI Platform user credentials:
274275

275-
```bash
276+
```sh
276277
docker login -u <user> -p <password> <registry_address>
277278
```
278279

279280
Tag the compiled image and push it into your registry:
280281

281-
```bash
282+
```sh
282283
docker tag flux-image <registry_address>/flux-image:latest
283284
docker push <registry_address>/flux-image:latest
284285
```
@@ -293,7 +294,7 @@ Run the following command to deploy your application:
293294
294295
> **Schnell**
295296
>>
296-
>> ```console
297+
>> ```sh
297298
>> ovhai app run <registry_address>/flux-image:latest \
298299
>> --name flux-schnell-app \
299300
>> --gpu 1 \
@@ -310,7 +311,7 @@ Run the following command to deploy your application:
310311
>>
311312
> **Dev**
312313
>>
313-
>> ```console
314+
>> ```sh
314315
>> ovhai app run <registry_address>/flux-image:latest \
315316
>> --name flux-dev-app \
316317
>> --gpu 1 \
@@ -326,7 +327,7 @@ Run the following command to deploy your application:
326327
>>
327328
> **Kontext Dev**
328329
>>
329-
>> ```console
330+
>> ```sh
330331
>> ovhai app run <registry_address>/flux-image:latest \
331332
>> --name flux-kontext-app \
332333
>> --gpu 1 \
@@ -352,8 +353,9 @@ Run the following command to deploy your application:
352353
- `--env`: Sets environment variables used by `entrypoint.sh` to configure the FLUX model files symlinks.
353354
354355
> [!warning]
355-
> **Warning**
356+
>
356357
> Other FLUX variants may expect files in different folders. If you plan to use another variant, make sure to also update the environment variables to match this variant, and adjust the `entrypoint.sh` script if necessary to match new files and folder structures.
358+
>
357359
358360
Once you launch the app, AI Deploy will execute the following phases:
359361
@@ -363,38 +365,38 @@ Once you launch the app, AI Deploy will execute the following phases:
363365
364366
To monitor your app progress and logs in real time, use:
365367
366-
```bash
368+
```sh
367369
ovhai app logs -f <app_id>
368370
```
369371
370372
Once you see in the logs that ComfyUI has started and is listening on port `8188`, the app is ready to use. You can access the interface using the public URL provided by the platform, such as:
371373
372-
```
374+
```console
373375
https://<app_id>.app.gra.ai.cloud.ovh.net
374376
```
375377
376378
You can retrieve it at any time using the following commands:
377379
378-
```
380+
```sh
379381
ovhai app list
380382
ovhai app get <app_id>
381383
```
382384
383385
### Run inference with ComfyUI
384386
385-
Once inside the ComfyUI web interface, head to the official [ComfyUI FLUX examples](https://comfyanonymous.github.io/ComfyUI_examples/flux/) page. Find the image matching your deployed variant.
387+
Once inside the ComfyUI web interface, head to the official [ComfyUI FLUX examples](https://comfyanonymous.github.io/ComfyUI_examples/flux/){.external} page. Find the image matching your deployed variant.
386388
387389
Then, drag and drop this image into your ComfyUI interface. This will automatically load the FLUX image workflow.
388390
389391
You can now customize the text prompt or parameters as desired. Then, just click the `Run`{.action} button to start the image generation or editing process.
390392
391393
Once the image is generated, you can view and download it directly from the ComfyUI output node.
392394
393-
>> ![FLUX model running on AI Deploy](images/flux-ai-deploy-demo.gif){.thumbnail}
395+
![FLUX model running on AI Deploy](images/flux-ai-deploy-demo.gif){.thumbnail}
394396
395397
## Go further
396398
397-
If you want to deploy a different interface such as [AUTOMATIC1111]((https://github.com/AUTOMATIC1111/stable-diffusion-webui)) with Stable Diffusion XL, we have a [step-by-step guide](/pages/public_cloud/ai_machine_learning/deploy_tuto_18_gradio_stable_diffusion_webui) to deploy this popular Web UI on AI Deploy.
399+
If you want to deploy a different interface such as [AUTOMATIC1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui){.external} with Stable Diffusion XL, we have a [step-by-step guide](/pages/public_cloud/ai_machine_learning/deploy_tuto_18_gradio_stable_diffusion_webui) to deploy this popular Web UI on AI Deploy.
398400
399401
If you are interested in image generation concepts, you can learn how image generation networks work and train your own Generative Adversarial Network. Check out this AI Notebooks guide: [Create and train an image generation model](/pages/public_cloud/ai_machine_learning/notebook_tuto_14_image-generation-dcgan).
400402
@@ -404,4 +406,4 @@ If you need training or technical assistance to implement our solutions, contact
404406
405407
Please send us your questions, feedback and suggestions to improve the service:
406408
407-
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)
409+
- On the OVHcloud [Discord server](https://discord.gg/ovhcloud)

0 commit comments

Comments
 (0)