Modal 产品更新:支持 WebSocket、交互式命令与 H100 GPU
Product updates: WebSocket support, interactive commands & more
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.
🔗 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.
🚀 H100 GPUs
You asked, and we delivered. H100s are now available on Modal!
👩💻 Client updates
pip install --upgrade modal to get the latest features:
- @build Decorated-based lifecycle hooks
- Volumes can now have automatic background commits.
- Volumes have more CLI commands including get, put and rm.
- Sandboxes support lookup from ID, terminate and poll.
- with image.imports() for declaring global image-specific imports
- Image.from_registry supports private Docker registry authentication.
- Dicts can now be cleared.
Want more updates? The Modal client now has a detailed changelog.
🍉 Fresh examples
- Turbo.art, a playground for creative exploration
- Embedding English Wikipedia in under 15 minutes
- How to fine-tune an LLM on Modal
If you’ve built anything else using Modal, share it with us on the community Slack.
来源:Modal 官方工程博客 · modal.com