复制安装命令
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
Common Metadata Framework (CMF) is a metadata tracking and versioning system for ML pipelines.
用 Codex 或 Claude 安装复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它先审查 Skill 页面再帮你安装。
复制前请先查看来源、License 和安全提示。
来源文件:README.md
Common Metadata Framework (CMF) is a metadata tracking and versioning system for ML pipelines. It tracks code, data, and pipeline metrics—offering Git-like metadata management across distributed environments.
Get started with CMF in minutes using our example ML pipeline:
📖 Try the Getting Started Example
This example demonstrates:
conda create -n cmf python=3.10
conda activate cmf
virtualenv --python=3.10 .cmf
source .cmf/bin/activate
pip install git+https://github.com/HewlettPackard/cmf
pip install cmflib
📖 Follow the CMF Server Installation Guide
CMF tracks pipeline stages, inputs/outputs, metrics, and code. It supports decentralized execution across datacenters, edge, and cloud.
.dvc files).cmf metadata push and cmf metadata pull.CMF is composed of:
from cmflib.cmf import Cmf
from ml_metadata.proto import metadata_store_pb2 as mlpb
metawriter = Cmf(filepath="mlmd", pipeline_name="test_pipeline")
context: mlpb.Context = metawriter.create_context(
pipeline_stage="prepare",
custom_properties={"user-metadata1": "metadata_value"}
)
execution: mlpb.Execution = metawriter.create_execution(
execution_type="Prepare",
custom_properties={"split": split, "seed": seed}
)
artifact: mlpb.Artifact = metawriter.log_dataset(
"artifacts/data.xml.gz", "input",
custom_properties={"user-metadata1": "metadata_value"}
)
cmf # CLI to manage metadata and artifacts
cmf init # Initialize artifact repository
cmf init show # Show current CMF config
cmf metadata push # Push metadata to server
cmf metadata pull # Pull metadata from server
➡️ For the complete list of commands, please refer to the Command Reference
Licensed under the Apache 2.0 License
© Hewlett Packard Enterprise. Built for reproducibility in ML.
name: cmf
description: >
Use when working with the Common Metadata Framework (CMF) — initializing CMF in a project,
instrumenting ML pipeline code, syncing metadata and artifacts with a CMF Server, querying
lineage and artifacts, or setting up the CMF MCP server for AI assistant integration.
Routes to the appropriate specialized skill based on the task.
version: 1.0.0
user_invocable: true
argument_hint: "<task>"Route to the appropriate sub-skill based on the user's task. If the task is ambiguous, ask one clarifying question before routing.
If the user wants to add CMF to their project for the first time, or the request is general/unclear, route here:
cmf-init — Install cmflib, configure a storage backend, and create the mlmd metadata store.
| Task | Sub-skill |
|---|---|
Install CMF, configure storage backend (local, S3, MinIO, SSH, OSDF), run cmf init | cmf-init |
Add Cmf() calls to existing ML pipeline code — contexts, executions, datasets, models, metrics | cmf-instrument |
| Push or pull metadata and artifacts using the CMF CLI | cmf-sync |
Query pipeline history, artifact lineage, and execution metadata using CmfQuery | cmf-query |
| Deploy CMF Server with Docker Compose, or connect to an existing shared server | cmf-server |
| Set up the CMF MCP server so an AI assistant can query CMF metadata | cmf-mcp |
pipeline_name passed to Cmf()"train", "evaluate"), created with create_context()create_execution(); hyperparameters go hereDocs: Getting Started · cmflib API · CLI Reference · MCP Server
评论 (0)
暂无评论,成为第一个评论者吧!