LISA+SamGIS on ZeroGPU HuggingFace hardware

PHPz
Release: 2024-08-15 06:57:22
Original
915 people have browsed it

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).

The above is the detailed content of LISA+SamGIS on ZeroGPU HuggingFace 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!