跳到正文
Modal Blog·· 2024-12-28AI 评分28

Modal 产品更新:内存快照、OIDC、异步任务队列等

Product updates: memory snapshotting, OIDC, async job queues & more

AI 导读

Modal 升级内存快照功能,Stable Diffusion 等模型冷启动时间可缩短一半。异步任务队列即将支持最多 100 万个输入(现为 2k),并新增 OIDC 短期身份令牌认证、eStargz 镜像加速构建,以及与 AWS 的多年战略合作。

正文

📷 Faster memory snapshotting

Memory snapshotting, our beta feature for improving cold starts, just got a major upgrade. For models like Stable Diffusion, this can cut cold start times by half! We’ve made significant optimizations to both speed and consistency.

Read the docs

🕰️ Async job queues

We’re expanding Modal’s capabilities for batch processing and job queues. Soon you’ll be able to queue up to 1 million inputs (up from the current 2k limit). Want early access? We’re looking for beta testers - please reach out at [email protected].

🔑 OpenID Connect (OIDC)

You can now use short-lived identity tokens to authenticate against external resources like S3 buckets or secret managers. Where available, OIDC can be used in place of Modal Secrets, allowing you to avoid storing long-lived credentials.

OIDC
example

example of trading a Modal OIDC token for AWS credentials Read the docs

⭐ Faster builds with eStargz

Modal now supports the eStargz compression format, significantly speeding up image builds from external registries like ECR and Docker Hub. Enable it by adding a few flags to your docker buildx build command.

Read the docs

👩‍💻 Client Updates

Run pip install --upgrade modal to get the latest updates. Here are some highlights:

  • CLI: modal launch now accepts a --detach flag to persist apps after client disconnect
  • Sandbox: exec now supports streaming output with text and bufsize arguments
  • Sandbox: exec adds timeout, workdir, and secrets parameters

🚀 New model partnerships

We’re making it easier to run open-source models. Recent collaborations include:

Mochi examples

"explosion" videos generated by fine-tuning Mochi 1

🤝 AWS strategic partnership

We’ve announced a multi-year strategic partnership with AWS to provide flexible, instantly accessible GPUs. You can now use Modal to draw down AWS marketplace committed spend. Coming soon: bonus Modal credits for AWS Activate startups!

📺 New video content

Our YouTube channel is live!

Check out our tutorial on setting up an vLLM inference server.

🍭 Fun tidbits

Modal Wrapped

  • We partnered with Cometeer for branded coffee pod giveaways. Follow us on Twitter for future promotions!

来源:Modal Blog · modal.com