Spaces:
Running on Zero
Running on Zero
Download cosmos_framework/data/generator/dataflow/processors.py from hugging-apps/greenwam: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/hugging-apps/greenwam/resolve/main/cosmos_framework/data/generator/dataflow/processors.py
- Command line
-
hf download hf://spaces/hugging-apps/greenwam/cosmos_framework/data/generator/dataflow/processors.py
-
curl -L -o processors.py https://huggingface.co/spaces/hugging-apps/greenwam/resolve/main/cosmos_framework/data/generator/dataflow/processors.py
509 Bytes
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
| # SPDX-License-Identifier: OpenMDW-1.1 | |
| """Built-in RawItemProcessor implementations.""" | |
| from __future__ import annotations | |
| from typing import Any | |
| from cosmos_framework.data.generator.dataflow.base import RawItemProcessor | |
| class IdentityProcessor(RawItemProcessor): | |
| """No-op processor: the dataset already yields training-ready samples.""" | |
| def process(self, item: Any) -> Any: | |
| return item | |