DEV Community

Alessandro T.
Alessandro T.

Posted on • Originally published at trinca.tornidor.com

LISA+SamGIS on ZeroGPU HuggingFace hardware

LISA+SamGIS on ZeroGPU HuggingFace hardware

See this and this page for a basic understand of what is about my project.

Today instead I'm writing about my new demo on ZeroGPU space. Note that ZeroGPU Spaces is currently in beta. PRO users or Enterprise organizations can host their own ZeroGPU Spaces under their namespaces. Also there is need to pay every month for keep the right to use ZeroGPU hardware.

  • I solved some problems caused by spaces.GPU decorator on a function which execution time was too high, causing a timeout. To solve it I started debugging and I ended using spaces.GPU only on functions that really needed the GPU acceleration.
  • I don't like very much svelte (the js library chosen by Gradio team) and I already have a vuejs/vite frontend project that I can re-use. I solved this installing the nodejs 18 Debian package and starting the nodejs build from within the app.py file using subpropcess.run().

Note that I'm using a timeout period of 48h before putting my space in pause. Any interaction after that could take a while until the space restart.

Last but not least there is my online demo here (Gradio interface) and here (my custom SPA page).

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs