TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Deploy Hugging Face Models to AWS Lambda

1 pointsby cnuss6 months ago
I&#x27;ve been working on Scaffoldly since 2020 to simplify AWS Lambda deployments. Recently discovered you can run Hugging Face models efficiently using EFS for caching. Here&#x27;s what&#x27;s interesting:<p><pre><code> - Uses EFS for model file persistence - Pre-downloads models after deployment for faster cold starts - Cold start: ~20s (model loading), warm requests: 5-20s (CPU inference) - Fully automated container builds and deployment - Works with private&#x2F;gated models via HF_TOKEN </code></pre> Example deployment:<p><pre><code> npx scaffoldly create app --template python-huggingface cd python-huggingface &amp;&amp; npx scaffoldly deploy </code></pre> Scaffoldly is Open Source and I&#x27;m excited for all feedback and contributions from the community!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;scaffoldly&#x2F;scaffoldly">https:&#x2F;&#x2F;github.com&#x2F;scaffoldly&#x2F;scaffoldly</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;scaffoldly&#x2F;scaffoldly-examples&#x2F;tree&#x2F;python-huggingface">https:&#x2F;&#x2F;github.com&#x2F;scaffoldly&#x2F;scaffoldly-examples&#x2F;tree&#x2F;pytho...</a>

no comments

no comments