技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
petastorm【数据与研究】Routes Petastorm workflows for reading, writing, and converting Parquet-backed datasets for TensorFlow, PyTorch, Spark, and plain Python.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Petastorm is a data-access library for Apache Parquet datasets with ML-friendly schemas, readers, and Spark-based dataset creation tools.
Use this skill when the task mentions Petastorm, make_reader, make_batch_reader, materialize_dataset, SparkDatasetConverter,
Unischema, Petastorm metadata repair, or the petastorm-*.py console tools.
references/repo-provenance.md if you need to know whether this skill matches the current checkout snapshot.scripts/check_install.py to confirm the package imports, optional dependencies, and command entry points.scripts/smoke_spark_session.py when Spark or Java availability is in doubt.references/install-and-prereqs.md for installation, extras, and backend prerequisites.references/workflow-overview.md when you are choosing between the read, write, or Spark-converter routes.references/filesystems-and-paths.md before diagnosing URL, HDFS, S3, or GCS path problems.references/schema-and-codecs.md before designing or repairing a schema or codec.references/troubleshooting.md before chasing import-order, Spark, URL, or metadata errors.sub-skills/read-datasets/Use this route for reading Petastorm datasets or plain Parquet stores, applying predicates or NGrams, shuffling rows, using TensorFlow or PyTorch adapters, reading into Spark RDDs, or running throughput benchmarks.
Helpful bundled files:
sub-skills/read-datasets/references/workflows.mdsub-skills/read-datasets/references/cli-reference.mdsub-skills/read-datasets/references/troubleshooting.mdsub-skills/read-datasets/scripts/smoke_read_minimal_dataset.pysub-skills/read-datasets/scripts/smoke_read_plain_parquet.pysub-skills/read-datasets/scripts/smoke_read_tensorflow.pysub-skills/read-datasets/scripts/smoke_read_torch.pysub-skills/create-datasets/Use this route for defining schemas and codecs, materializing datasets, copying or filtering datasets, regenerating metadata, and building row-group indexes or dataset fixes from existing Parquet data.
Helpful bundled files:
sub-skills/create-datasets/references/workflows.mdsub-skills/create-datasets/references/cli-reference.mdsub-skills/create-datasets/references/data-formats.mdsub-skills/create-datasets/references/troubleshooting.mdsub-skills/create-datasets/scripts/smoke_make_minimal_dataset.pysub-skills/create-datasets/scripts/smoke_copy_dataset.pysub-skills/create-datasets/scripts/smoke_generate_metadata.pysub-skills/spark-converter/Use this route for make_spark_converter, cached Spark DataFrame materialization, and creating TensorFlow or PyTorch loaders
from a Spark-backed cache directory.
Helpful bundled files:
sub-skills/spark-converter/references/workflows.mdsub-skills/spark-converter/references/troubleshooting.mdsub-skills/spark-converter/scripts/smoke_spark_converter.pypip install petastormpetastorm[tf], petastorm[torch], petastorm[opencv], petastorm[s3fs]pyarrow before torch.python - <<'PY'
import pyarrow
import petastorm
from petastorm import make_reader, make_batch_reader
print(petastorm.__version__)
print(make_reader.__name__, make_batch_reader.__name__)
PY
When you need TensorFlow, PyTorch, OpenCV, or S3/GCS support, read the relevant sub-skill reference first so you add only the needed extras.