|
Download README.md from dpavlis/etl_lora_training_data: direct link, hf CLI and curl.
- Browser
- Download file 8.43 kB
-
https://huggingface.co/datasets/dpavlis/etl_lora_training_data/resolve/main/README.md
- Command line
-
hf download hf://datasets/dpavlis/etl_lora_training_data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/dpavlis/etl_lora_training_data/resolve/main/README.md
8.43 kB
| license: mit | |
| language: | |
| - en | |
| task_categories: | |
| - text-generation | |
| tags: | |
| - cloverdx | |
| - etl | |
| - data-integration | |
| - code-generation | |
| - xml | |
| - dpo | |
| - sft | |
| - lora | |
| - synthetic | |
| size_categories: | |
| - n<1K | |
| pretty_name: CloverDX ETL Graph Generation (LoRA training data) | |
| configs: | |
| - config_name: misc_sft | |
| data_files: | |
| - split: train | |
| path: data/sft_train.jsonl | |
| - split: validation | |
| path: data/sft_eval.jsonl | |
| - config_name: misc_dpo | |
| data_files: | |
| - split: train | |
| path: data/dpo_train.jsonl | |
| - split: validation | |
| path: data/dpo_eval.jsonl | |
| - config_name: misc_delegated_sft | |
| data_files: | |
| - split: train | |
| path: data/delegated/sft_train.jsonl | |
| - split: validation | |
| path: data/delegated/sft_eval.jsonl | |
| - config_name: misc_delegated_dpo | |
| data_files: | |
| - split: train | |
| path: data/delegated/dpo_train.jsonl | |
| - split: validation | |
| path: data/delegated/dpo_eval.jsonl | |
| - config_name: misc_delegated_ctl_requests | |
| data_files: | |
| - split: train | |
| path: data/delegated/ctl_requests_train.jsonl | |
| - split: validation | |
| path: data/delegated/ctl_requests_eval.jsonl | |
| - config_name: bf_sft | |
| data_files: | |
| - split: train | |
| path: data_bf/sft_train.jsonl | |
| - split: validation | |
| path: data_bf/sft_eval.jsonl | |
| - config_name: bf_dpo | |
| data_files: | |
| - split: train | |
| path: data_bf/dpo_train.jsonl | |
| - split: validation | |
| path: data_bf/dpo_eval.jsonl | |
| - config_name: bf_delegated_sft | |
| data_files: | |
| - split: train | |
| path: data_bf/delegated/sft_train.jsonl | |
| - split: validation | |
| path: data_bf/delegated/sft_eval.jsonl | |
| - config_name: bf_delegated_dpo | |
| data_files: | |
| - split: train | |
| path: data_bf/delegated/dpo_train.jsonl | |
| - split: validation | |
| path: data_bf/delegated/dpo_eval.jsonl | |
| - config_name: bf_delegated_ctl_requests | |
| data_files: | |
| - split: train | |
| path: data_bf/delegated/ctl_requests_train.jsonl | |
| - split: validation | |
| path: data_bf/delegated/ctl_requests_eval.jsonl | |
| # CloverDX ETL graph generation: training data | |
| Supervised fine-tuning (SFT) and preference (DPO) data that teaches a language model to **build CloverDX ETL graphs** | |
| from a user's request. A graph is the XML job definition (`.grf`) of CloverDX, a data integration / ETL platform. The | |
| data also covers explaining graphs, repairing graphs that fail validation, and (optionally) writing the CTL2 | |
| transformation code that many components contain. | |
| It was built for LoRA fine-tuning of Qwen-class models, but it is plain chat-format JSONL and works with any trainer. | |
| ## What a graph-building example looks like | |
| The user describes the job in plain language; the assistant first writes a **plan** that shows how the data flows, | |
| then the **graph**: | |
| ``` | |
| ## Plan | |
| Outputs: ... | |
| Flow: 1. READER: read file -> SORT: sort by id -> JOIN: merge join on id = id (CTL) -> WRITER: write file | |
| 2. LOOKUP_SRC: ... -> JOIN:1 | |
| Records: - JOIN: Order + Customer -> OrderExt: +customer_name string, -customerId | |
| Notes: - JOIN: a merge join needs inputs sorted on the key ... | |
| Phases / CTL | |
| ## Graph | |
| <Graph name="..."> <Global>...</Global> <Phase number="0"> <Node .../> <Edge fromNode="A:0" toNode="B:0" .../> ... | |
| ``` | |
| - The graph is in a compact, **lossless** XML form (no GUI layout, edge ids or default values; it converts back to a normal `.grf`). | |
| - The plan is derived from the graph and its flow is machine-checked to match the graph's edges, so plan and graph never disagree. | |
| - Notes in the plan come from rules such as: merge joins and sorted aggregates need sorted input, a hash join's lookup side, left-join nulls, "sort + keep first N = top N", writers to one file belong in separate phases. | |
| ## Configurations | |
| Each config has a `train` and a `validation` split. Splits are made **by graph**: a graph never appears in both. | |
| | config | rows (train / validation) | content | | |
| |---|---|---| | |
| | `bf_sft` | 293 / 40 | chat examples, CTL code in the graphs | | |
| | `bf_dpo` | 54 / 11 | preference pairs | | |
| | `bf_delegated_sft` | 242 / 36 | SFT with CTL replaced by specs | | |
| | `bf_delegated_dpo` | 62 / 10 | preference pairs, specs instead of CTL | | |
| | `bf_delegated_ctl_requests` | 96 / 7 | requests for a separate CTL model | | |
| | `misc_sft` | 77 / 18 | as `bf_sft`, other corpus | | |
| | `misc_dpo` | 20 / 6 | | | |
| | `misc_delegated_sft` | 63 / 14 | | | |
| | `misc_delegated_dpo` | 30 / 7 | | | |
| | `misc_delegated_ctl_requests` | 30 / 6 | | | |
| Two source corpora: | |
| - **`bf_*`**: 64 graphs from the CloverDX example sandboxes *BasicFeatures* and *IntroExamples*. The user requests describe the job | |
| in business terms only: no component names, so the model must map a plain request to building blocks. | |
| - **`misc_*`**: 12 graphs from a mixed sandbox (designer examples plus agent-written probe graphs). Requests are hand-written and | |
| may name components. | |
| ## Data fields | |
| **SFT** (`*_sft`): `messages` (list of `{role, content}`: system, user, assistant), `type`, `graph`, `group`, and `variant` (gen) or `kind` (repair). | |
| `type` is one of: | |
| - `gen`: request (+ project metadata files and reusable subgraphs) → plan + graph. Two requests per graph, one detailed and one terse. | |
| - `ctl`: task summary, node and port records → CTL2 code (only in non-delegated configs). | |
| - `explain`: graph → short summary. | |
| - `repair`: broken graph + **real validator errors** → diagnosis + fixed graph. `kind` is one of `component_type`, `key_field`, `edge_meta_ref`, `edge_meta_missing`, `ctl_field`, `meta_rename`, `ctl_missing`. | |
| **DPO** (`*_dpo`): `prompt` (system + user messages), `chosen` (correct plan + graph), `rejected` (plan + a graph with one injected mistake that the validator rejects), `type`, `graph`, `group`, `kind`. | |
| **CTL requests** (`*_ctl_requests`): `graph`, `group`, `node`, `component`, `attr`, `spec` (natural-language description), `ports` (resolved record layouts), `dictionary`, `parameters`, `code` (gold CTL2). Use as training data or as an eval set for a CTL-writing model. | |
| ## Delegated-CTL variant | |
| For a graph model that never writes CTL code: every CTL-valued property is replaced by `<ctl attr="NAME">spec</ctl>`, a natural-language | |
| spec naming fields, ports, dictionary entries and parameters. A separate CTL model writes the code from the spec and the record layouts on | |
| the node's edges. When the graph is right but the generated code is wrong, the target is a `## Regenerate CTL` section instead of a new | |
| graph. CTL embedded in a validator's `rules` XML and in dynamic graph-parameter defaults is kept as written. | |
| ## How the data was made | |
| 1. Real example graphs were converted to the compact XML form; round trips are lossless for all graphs used. | |
| 2. User requests, summaries and CTL specs were written by LLM subagents that read each original graph (the `bf_*` requests under a | |
| "no component names" rule enforced by a lint), plus hand-written requests for `misc_*`. | |
| 3. Repair and DPO data come from single-line mutations of the real graphs (wrong component type, misspelled field or key, undefined or | |
| missing edge metadata, renamed metadata field, missing CTL). Each mutation was run through the CloverDX Server validator; only | |
| mutations it rejects are used, with its real error text. Errors the unmodified graph already shows (missing database, | |
| placeholder connection) were subtracted; mutations that still validate were dropped. | |
| ## Intended use | |
| Fine-tuning and evaluating models that generate, explain or repair CloverDX graphs; research on plan-then-generate structured output; | |
| preference tuning against a validator signal. A useful check on model output is that the generated graph's edges equal the edges | |
| stated in its own plan, and that it passes the CloverDX validator. | |
| ## Limitations | |
| - Small: 76 distinct graphs. Examples within a graph are correlated (two requests, explain, repairs), hence split by graph. | |
| - Requests and specs are LLM-written from the graphs and were only spot-checked; some details about reusable subgraph internals are inferred from the parent graph. | |
| - Plan notes cover only the component types in these graphs. | |
| - Validation checks structure only; no graph was executed. Some source graphs call external services or need databases and cannot run | |
| without them. | |
| - Component-defined records (e.g. a REST connector's path-parameter record) appear as "(record defined by the component)". | |
| - The source graphs are CloverDX example projects; check CloverDX's terms if you redistribute derived models. | |
| - English only. | |
| ## Citation / contact | |
| Dataset by `dpavlis`. No paper; cite the dataset URL. | |