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