MosaicML + Comet
Visibility for your Efficient Training
At MosaicML, we make fast, high-quality ML training accessible to everyone. Our MosaicML Cloud leverages algorithmic efficiency and effortless scale to bring the power of large deep learning models within reach of any enterprise. A key part of that accessibility is providing easy-to-use integrations with experiment tracking and training management solutions. Comet offers best-of-breed solutions to help you manage, visualize, and optimize your ML pipeline through dataset management, experiment tracking, a model registry, and production performance monitoring. Train your best model, using your organization’s data, on MosaicML Cloud, and keep track of the full pipeline with Comet.
Together, Comet and MosaicML enable faster, more efficient, and better instrumented model training. Through this combination of capabilities working in concert, your organization can deliver the best models for your business needs.
Start logging runs with Comet experiment tracking
With just a few lines of code and configuration in your MosaicML Cloud training runs, you can use Comet to log:
- Model-relevant metrics like loss
- System performance metrics like GPU utilization
- Debugging samples
and more. MosaicML Cloud’s “integrations” feature helps assemble your environment without all the boilerplate.
1. Add your Comet API key
Generate a Comet API Key at this link, then create an environment variable secret using MosaicML’s CLI:
This command creates a secret which will mount your API key in the run execution environment as the variable COMET_API_KEY.
2. Add the Comet integration to your run configuration
In your run configuration YAML file, specify the workspace and project name within Comet where your run metrics should be logged:
3. Pass a CometLogger to your Composer Trainer
In your code, instantiate a CometMLLogger object, and pass it to your Composer Trainer:
NOTE: The above is a Composer example, but the CometML integration will set up the environment for any code that uses the `comet_ml` python package.
4. You’re logging to Comet!
Log into your Comet dashboard and watch your training run data appear:
Try out MosaicML Cloud and Comet for yourself
Ready to get started? Check out these helpful resources:
What’s a Rich Text element?
The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.
Static and dynamic content editing
A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!
How to customize formatting for each rich text
Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.