Skip to main content

A metaflow card that renders HTML inputs.

Project description

Installation

pip install metaflow-card-hf-dataset

Usage

After installing the module, you can add any HuggingFace dataset to your Metaflow tasks by using the @huggingface_dataset decorator. This decorator has a id field, which is the dataset ID from HuggingFace.

from metaflow import FlowSpec, step, huggingface_dataset

class Flow(FlowSpec):

    @huggingface_dataset(id="princeton-nlp/SWE-bench")
    @step
    def start(self):
        self.next(self.end)

    @huggingface_dataset(id="argilla/databricks-dolly-15k-curated-en")
    @step
    def end(self):
        pass

if __name__ == '__main__':
    Flow()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metaflow_card_hf_dataset-0.0.3.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

metaflow_card_hf_dataset-0.0.3-py2.py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page