"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > LISA+SamGIS adapted to HuggingFace ZeroGPU hardware

LISA+SamGIS adapted to HuggingFace ZeroGPU hardware

Published on 2024-09-01
Browse:191

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

Release Statement This article is reproduced at: https://dev.to/trincadev/lisasamgis-adattato-ad-hardware-huggingface-zerogpu-f11?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3