Buckets:
| from dagster import ( | |
| AssetExecutionContext, | |
| DynamicPartitionsDefinition, | |
| MaterializeResult, | |
| asset, | |
| ) | |
| from dagster_hf_datasets import hf_dataset_asset | |
| from datasets import Dataset | |
| language_partitions = DynamicPartitionsDefinition( | |
| name="language_partitions" | |
| ) | |
| def opus_books_raw( | |
| context: AssetExecutionContext, | |
| dataset: Dataset, | |
| ) -> MaterializeResult: | |
| return MaterializeResult( | |
| value=dataset, | |
| metadata={ | |
| "rows": len(dataset), | |
| }, | |
| ) | |
| def partition_report( | |
| context: AssetExecutionContext, | |
| ) -> MaterializeResult: | |
| partition = context.partition_key | |
| return MaterializeResult( | |
| metadata={ | |
| "partition": partition, | |
| } | |
| ) | |
Xet Storage Details
- Size:
- 994 Bytes
- Xet hash:
- 365f7d9c252f1d06e86d6de5ce824466cc87c501aaf96d2cc094c54946e02aa4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.