Global settings
Understanding the global settings of your ZenML installation.
The information about the global settings of ZenML on a machine is kept in a folder commonly referred to as the ZenML Global Config Directory or the ZenML Config Path. The location of this folder depends on the operating system type and the current system user, but is usually located in the following locations:
Linux:
~/.config/zenml
Mac:
~/Library/Application Support/zenml
Windows:
C:\Users\%USERNAME%\AppData\Local\zenml
The default location may be overridden by setting the ZENML_CONFIG_PATH
environment variable to a custom value. The current location of the global config directory used on a system can be retrieved by running the following commands:
Manually altering or deleting the files and folders stored under the ZenML global config directory is not recommended, as this can break the internal consistency of the ZenML configuration. As an alternative, ZenML provides CLI commands that can be used to manage the information stored there:
zenml analytics
- manage the analytics settingszenml clean
- to be used only in case of emergency, to bring the ZenML configuration back to its default factory statezenml downgrade
- downgrade the ZenML version in the global configuration to match the version of the ZenML package installed in the current environment. Read more about this in the ZenML Version Mismatch section.
The first time that ZenML is run on a machine, it creates the global config directory and initializes the default configuration in it, along with a default Stack:
The following is an example of the layout of the global config directory immediately after initialization:
As shown above, the global config directory stores the following information:
The
config.yaml
file stores the global configuration settings: the unique ZenML client ID, the active database configuration, the analytics-related options, and the active Stack. This is an example of theconfig.yaml
file contents immediately after initialization:The
local_stores
directory is where some "local" flavors of stack components, such as the local artifact store, or a local MLFlow experiment tracker, persist data locally. Every local stack component will have its own subdirectory here named after the stack component's unique UUID. One notable example is the local artifact store flavor that, when part of the active stack, stores all the artifacts generated by pipeline runs in the designated local directory.The
zenml.db
in thedefault_zen_store
directory is the default SQLite database where ZenML stores all information about the stacks, stack components, custom stack component flavors, etc.
In addition to the above, you may also find the following files and folders under the global config directory, depending on what you do with ZenML:
kubeflow
- this is where the Kubeflow orchestrators that are part of a stack store some of their configuration and logs.
Usage analytics
In order to help us better understand how the community uses ZenML, the pip package reports anonymized usage statistics. You can always opt out by using the CLI command:
Why does ZenML collect analytics?
In addition to the community at large, ZenML is created and maintained by a startup based in Munich, Germany called ZenML GmbH. We're a team of techies that love MLOps and want to build tools that fellow developers would love to use in their daily work. This is us if you want to put faces to the names!
However, in order to improve ZenML and understand how it is being used, we need to use analytics to have an overview of how it is used 'in the wild'. This not only helps us find bugs but also helps us prioritize features and commands that might be useful in future releases. If we did not have this information, all we really get is pip download statistics and chatting with people directly, which while being valuable, is not enough to seriously better the tool as a whole.
How does ZenML collect these statistics?
We use Segment as the data aggregation library for all our analytics. However, before any events get sent to Segment, they first go through a central ZenML analytics server. This added layer allows us to put various countermeasures to incidents such as getting spammed with events and enables us to have a more optimized tracking process.
The client code is entirely visible and can be seen in the analytics
module of our main repository.
If I share my email, will you spam me?
No, we won't. Our sole purpose of contacting you will be to ask for feedback (e.g. in the shape of a user interview). These interviews help the core team understand usage better and prioritize feature requests. If you have any concerns about data privacy and the usage of personal information, please contact us, and we will try to alleviate any concerns as soon as possible.
Version mismatch (downgrading)
If you've recently downgraded your ZenML version to an earlier release or installed a newer version on a different environment on the same machine, you might encounter an error message when running ZenML that says:
We generally recommend using the latest ZenML version. However, there might be cases where you need to match the global configuration version with the version of ZenML installed in the current environment. To do this, run the following command:
Note that downgrading the ZenML version may cause unexpected behavior, such as model schema validation failures or even data loss. In such cases, you may need to purge the local database and re-initialize the global configuration to bring it back to its default factory state. To do this, run the following command:
Last updated