LISA+SamGIS adapted to HuggingFace ZeroGPU hardware

王林
Release: 2024-08-15 06:41:41
Original
907 people have browsed it

LISA+SamGIS adattato ad hardware HuggingFace ZeroGPU

LISA+SamGIS adapted to HuggingFace ZeroGPU hardware

For a basic understanding of my project, see this and this page.

Today I'm writing about my new demo using ZeroGPU hardware. Please note that ZeroGPU Spaces is currently in beta. PRO users or Enterprise organizations can create their own ZeroGPU spaces in their name. You also need to pay every month to maintain the right to use the ZeroGPU hardware.

  • I initially encountered problems caused by using the spaces.GPU decorator on an inappropriate function that took too long to execute, causing timeouts. Fixed by debugging to use the decorator only on functions that actually required its use.
  • Frontend custom: I don't really like svelte (the js library chosen by the Gradio team) but above all I already have a well-established project written in vuejs and vite that I want to reuse. Solved by installing the Debian nodejs 18 package and then installing the dependencies and building the nodejs project directly from within the app.py file using subpropcess.run().

Note that I'm using a 48 hour timeout period before pausing my space. Any subsequent interactions may take some time for the space to restart.

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

The above is the detailed content of LISA+SamGIS adapted to HuggingFace ZeroGPU hardware. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template