Traceback (most recent call last):
File "/app/app.py", line 14, in <module>
api = APIHandler() # <-- FIXED: no api_key anymore
File "/app/api_handler.py", line 29, in __init__
from generate import LeVoPipeline # from Tencent's repo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'generate'
I’m sure it wouldn’t be too hard to fix that error, but could you please describe the functionality you want to implement in that space using “natural language” rather than just model names?
Just a few lines would be fine… Otherwise, while I can fix the error itself, I won’t be able to make it work properly.
The tencent/SongGeneration model is primarily designed as a large-scale framework (LeLM and music codec) with parameters extending into the billions. Because of its immense memory requirements and specialized inference architecture, it cannot be hosted on Hugging Face’s free CPU-based Inference API.
The daydreamlive/DreamVAE model is not available through the free hosted API because it requires specific, dedicated hardware. Inference requires a robust machine with around ~ 7.5 GB of VRAM and 27 GB of RAM, which exceeds the limitations of the free Hugging Face infrastructure.
Yeah. That’s right. And that’s a problem that can’t be solved even with the best programming or coding. Generative AI is very powerful, but “it’s not magic. It’s technology.” It’s technology that makes it easy to achieve what’s possible. So, it can’t make the impossible possible. By the way, even without generative AI, it’s impossible for me, at least, to make the impossible possible.
So, as a minimum solution, you’ll probably need to rent a GPU from HF for a fee, or if that’s not possible, you’ll need to find some kind of existing API. However, APIs aren’t usually free either.
I tried to download the models from their repos.
Oh, I see. Running OSS models on a local PC is one option. If you have a PC with a really powerful GeForce GPU, you could probably get it to work with enough effort…
But if it’s like my PC’s GPU with only 8GB of VRAM, it might run, but it’ll be super slow…
VRAM capacity isn’t the only indicator of GPU performance, but when it comes to generative AI, running out of VRAM is the biggest hurdle you’ll face. In that case, it’s pretty hopeless—it’s easier to just buy a new GPU or rent one on the cloud.
Or, if a model is too large to run, you could look for a different, lighter model with a similar purpose.
Why don’t you prove it by duplicating my space: New Riffusion - a Hugging Face Space by Gertie2013
What does that mean???
Can you help me complete this app: Many Happy Returns 5 - a Hugging Face Space by Gertie2013
Hmm…
No idea but maybe like this? Gertie2013/many-happy-returns-5 · Upload 34 files
Very good. Now, can you help me complete this app: Many Happy Returns 6 - a Hugging Face Space by Gertie2013
It needs: stabilityai/stable-diffusion-xl-base-1.0 · Hugging Face
I think it’s possible, but running SDXL on a CPU would be difficult. If you’re using a GPU, it’s not difficult.
DALL·E mini JAX Docker - a Hugging Face Space by Gertie2013
ai-forever/rudalle-Malevich and stabilityai/stable-diffusion-xl-base-1.0 refuse to display results
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1052, in _get_module
return importlib.import_module("." + module_name, self.__name__)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/diffusers/loaders/ip_adapter.py", line 38, in <module>
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/__init__.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1052, in _get_module
return importlib.import_module("." + module_name, self.__name__)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py", line 29, in <module>
from ...loaders import (
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1042, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1054, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.ip_adapter because of the following error (look up to see its traceback):
cannot import name 'SiglipImageProcessor' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/__init__.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/app.py", line 37, in <module>
from diffusers import StableDiffusionXLPipeline, StableDiffusionXLImg2ImgPipeline, AutoencoderKL
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1043, in __getattr__
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1043, in __getattr__
value = getattr(module, name)
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1042, in __getattr__
module = self._get_module(self._class_to_module[name])
File "/usr/local/lib/python3.10/dist-packages/diffusers/utils/import_utils.py", line 1054, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.pipelines.stable_diffusion_xl.pipeline_stable_diffusion_xl because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.ip_adapter because of the following error (look up to see its traceback):
cannot import name 'SiglipImageProcessor' from 'transformers' (/usr/local/lib/python3.10/dist-packages/transformers/__init__.py)
DALL·E mini JAX Docker - a Hugging Face Space by Gertie2013
Traceback (most recent call last): File “/app/app.py”, line 30, in import jax File “/usr/local/lib/python3.10/dist-packages/jax/_init_.py”, line 35, in from jax import config as _config_module File “/usr/local/lib/python3.10/dist-packages/jax/config.py”, line 17, in from jax._src.config import config # noqa: F401 File “/usr/local/lib/python3.10/dist-packages/jax/_src/config.py”, line 27, in from jax._src import lib File “/usr/local/lib/python3.10/dist-packages/jax/_src/lib/_init_.py”, line 74, in version = check_jaxlib_version( File “/usr/local/lib/python3.10/dist-packages/jax/_src/lib/_init_.py”, line 69, in check_jaxlib_version raise RuntimeError(msg) RuntimeError: jaxlib version 0.6.2 is newer than and incompatible with jax version 0.3.25. Please update your jax and/or jaxlib packages.
Hmm…??? Something like this? Gertie2013/dalle-mini-reboot · Upload 41 files
I don’t want the seed number section for each model.
Malevich Infinity · PyTorch Image Studio - a Hugging Face Space by Gertie2013
Are you there?
I don’t want the seed number section for each model.
Malevich Infinity · PyTorch Image Studio - a Hugging Face Space by Gertie2013
I don’t want the seed number section for each model.
Malevich Infinity · PyTorch Image Studio - a Hugging Face Space by Gertie2013