Problems with duplication

I purchased a private L40S server from your service, and it went to this space: https://huggingface.co/spaces/fffiloni/DiffuEraser-demo

I thought duplicating it on my private space would be easy and I’d be able to start using it in a few minutes, but that wasn’t the case.

I encountered numerous errors that I tried to resolve with the help of the AI, but after hours I still can’t get this space working on my private server.

I thought it would be much easier since, before paying, Huggingface seemed like the best option of all those available.

After hours and countless errors.

Can someone help me?

THANK YOU

This space is called “Zero GPU Spaces,” and it operates in an environment that’s slightly different from a standard GPU space. So, while it’s not difficult for developers, porting work may be required in some cases.

If you download the guide I created below, attach it to the generative AI, and ask for help, you’ll probably be able to fix it… maybe.

Subscribers to plans like the Enterprise plan may have access to special HF support.

Hi friend:

Thanks for your response. I appreciate your guide, but it’s very complex, and I don’t really know what steps I should follow to transfer Diffueraser from a Zero environment to my private L40S environment. Today I kept trying with the help of the AI, and it’s stuck on “STARTING ON L40S”.

I emailed Hugging, and they told me to try in a Zero environment, but I rented an L40S precisely to change Diffueraser parameters that require more VRAM, and the Zero environment won’t work for me.

I asked Hugging if someone with the necessary knowledge could access my profile and get Diffueraser working. Someone who knows what they’re doing could get it working in 5 minutes. But they haven’t responded since.

The truth is, right now I feel like I’ve wasted my money.

Hmm, I tried porting the code for that space just to see. Maybe it’ll work if you duplicate this? I’m not sure if the L40S has enough performance, though.

While some spaces require a lot of changes, there aren’t actually that many changes this time (in logic part):

--- a/README.md
+++ b/README.md
@@ -5,7 +5,10 @@
 colorTo: gray
 sdk: gradio
 sdk_version: 6.14.0
+python_version: 3.10.13
 app_file: gradio_app.py
+suggested_hardware: l40sx1
+startup_duration_timeout: 1h
 pinned: false
 disable_embedding: true
 short_description: A Diffusion Model for Video Inpainting
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+--extra-index-url https://download.pytorch.org/whl/cu128
 accelerate==0.25.0
 av==14.0.1
 datasets==2.19.1
--- a/gradio_app.py
+++ b/gradio_app.py
@@ -1,4 +1,13 @@
-import spaces
+try:
+    import spaces
+except ImportError:
+    class _SpacesFallback:
+        @staticmethod
+        def GPU(*args, **kwargs):
+            def decorator(fn):
+                return fn
+            return decorator
+    spaces = _SpacesFallback()
 import torch
 import os
 import time

Hi John:

Thank you again for your help. The problem with Diffueraser is that it needs a lot of VRAM. The L40S is perfect because it has 48GB of VRAM. I rented it because I need to change a couple of things in the code. For example, I need to make it display more than 5 seconds of video and adjust another parameter that improves watermark removal. This requires VRAM, which is why I rented the L40S private server.

You sent me some code, but I don’t know where to put it. Using AI, I made changes in the README, REQUIREMENTS, etc., but the last thing I managed to do is get it stuck on “STARTING ON L40S” and never finishes booting.

If you could send me clearer instructions, I could try again.

Thanks, John

but the last thing I managed to do is get it stuck on “STARTING ON L40S” and never finishes booting.

Hmm… So, also try download and upload gradio_app.py . I’ve made some changes to reduce the load on the disk.

Hi John

Thanks again for your help. I don’t know how to do these things. I don’t know how to download and install anything. I did some research before paying for Hugging, and I thought duplicating everything would work. I thought all the software would work on all machines, like Windows, which runs faster on newer machines and slower on older ones, BUT IT WORKS.

I duplicated Filloli’s DiffuerAsser on my L40S space, and it turned out it wasn’t so easy, hahaha. I only know how to edit files within the Hugging environment. I don’t know how to install anything or anything else. I’m learning. I know you want to help me, so if you could explain it a little more clearly for a newbie like me, I would really appreciate it.