Core¶
The top-level modules: the pipeline and everything it needs before a tokenizer, dataset or model is involved. They carry no assumptions about any particular task or study.
Ordered as the pipeline uses them — cli is the command-line entry point, bootstrap resolves the workspace, pipeline chains the stages, group runs many of them from one file, config validates the YAML that drives them, and path, enums and utils are the shared vocabulary underneath.
The building blocks compose into one chain:
CONFIG (YAML) → tokenizer.load() → DATASET → MODEL → PEFT → TRAINER → compute_metrics
Symbol |
Role |
|---|---|
|
loads and validates YAML ( |
|
|
|
loads and preprocesses local, Hub, CSV or TXT datasets; concatenation |
|
|
|
routes to stock PEFT methods or the Cross-Prompt Encoder path |
|
builds the HuggingFace |
|
the run’s output directory: config snapshot, |
|
expands a group config into runs and picks the one this process runs |
|
what a custom runner receives beside the config: the entry, output dir, extras, |
|
|
Every link in the chain is named in YAML, the concrete HuggingFace classes included, so a new backbone or head needs no code.