跳到正文
Modal Blog·· 2024-02-15AI 评分22

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

Product updates: WebSocket support, interactive commands & more

AI 导读

Modal 在 2024 年新增 WebSocket 协议支持,可直接托管 Streamlit 等框架,同时上线 H100 GPU,并推出 modal container exec 用于在运行中的容器内执行交互式命令。客户端还新增 @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 Blog · modal.com