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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0012d927a9c7f7f25b4d2c776de0c906f3e968578890ead6ba55924ea5ea0588 |
|
MD5 | 78dfb3c9358d62e3e434a87088118ea8 |
|
BLAKE2b-256 | 5ba5667de8056edc938fdb8638914d7df3b01b3709d86faf31ef14883a835109 |
Close
Hashes for metaflow_card_hf_dataset-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721841b0f5c2188c159a57514f1d626257b39955d5572c01e51940994f66389e |
|
MD5 | b5cb9c2c21799d8559c5dafb6afe3af3 |
|
BLAKE2b-256 | 5a7ac8f4612503dad2f3128d43f9a5f029af3e7682744c72665c3c6aee1a029c |