跳到正文
Modal 官方工程博客·· 2024-02-15AI 评分38

Modal 产品更新:支持 WebSocket、交互式命令与 H100 GPU

Product updates: WebSocket support, interactive commands & more

AI 导读

Modal 在 2024 年新增 WebSocket 协议支持、交互式命令和 H100 GPU 可用性。WebSocket 支持让 Modal 函数可直接托管 Streamlit 等框架,H100 则回应了用户需求正式上线。客户端同步更新,新增 @build 生命周期钩子、Volumes 自动后台提交及私有 Docker registry 认证等功能。

正文 · 原文

We’ve been busy in 2024 so far, bringing you WebSockets, interactive commands, H100s and more. Learn about what’s new at Modal.

🐚 Interactive commands

You can use modal container exec to run interactive commands inside active Modal containers. Inspect the filesystem of an in-progress job, monitor processes, or debug environment issues.

Read the docs

Demo of container exec feature

🔗 WebSocket support

Modal functions now support the WebSocket protocol. This unlocks the ability to host frameworks like Streamlit out of the box. Stay tuned for more native WebSocket-based Modal examples.

Read the docs

Uber pickups image

🚀 H100 GPUs

You asked, and we delivered. H100s are now available on Modal!

Read the announcement

Code example of using H100

👩‍💻 Client updates

pip install --upgrade modal to get the latest features:

Want more updates? The Modal client now has a detailed changelog.

🍉 Fresh examples

If you’ve built anything else using Modal, share it with us on the community Slack.

来源:Modal 官方工程博客 · modal.com