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
Built Distribution
Close
Hashes for metaflow_card_hf_dataset-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfc8f801a63267c49fa3fe850fa8671c87b032d07329a506a7dd40ecb78c793c |
|
MD5 | e766b9f276e5d0f6bc5253eba696e87d |
|
BLAKE2b-256 | cf8a134c31f1997878cb45614ed95c739bb15b65d159d6d1c58074afa2b6b3ac |
Close
Hashes for metaflow_card_hf_dataset-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bcf695cb0a7346395b4ec082b7c70b35f4896875719b5478de72a7ff10aa2f |
|
MD5 | 2ed64d21eeb736e857f44040ba820119 |
|
BLAKE2b-256 | 1c5c01032812cc649716de85b9d8d1edf28e34d5afa5303a4439ddf7c2efb097 |