Skip to content

examples: dlt traces-to-training-data pipeline using open-hub as HF drop-in - #68

Draft
DiTo97 with Copilot wants to merge 2 commits into
mainfrom
copilot/examples-folder-hub-replacement
Draft

examples: dlt traces-to-training-data pipeline using open-hub as HF drop-in#68
DiTo97 with Copilot wants to merge 2 commits into
mainfrom
copilot/examples-folder-hub-replacement

Conversation

Copilot AI commented Mar 20, 2026

Copy link
Copy Markdown

Adds an examples/ folder demonstrating open-hub as a transparent drop-in for the Hugging Face Hub, starting with the dlthub "traces → training data" pattern using dlt's huggingface destination.

Key insight

dlt's HF destination delegates all Hub I/O to huggingface_hub, which honors HF_ENDPOINT. The entire substitution is one env var — no pipeline code changes:

HF_ENDPOINT=http://localhost:8080 uv run examples/dlt_traces_to_training_data/traces_pipeline.py

What's added

  • examples/README.md — index of examples, stack prerequisite, and uv run pattern.
  • examples/dlt_traces_to_training_data/README.md — architecture diagram, setup steps, drop-in mechanism explanation, and extension ideas (real traces, incremental loads, quality filtering).
  • examples/dlt_traces_to_training_data/traces_pipeline.py — PEP 723 self-contained script that:
    • Registers/logs in to open-hub via the standard auth API.
    • Generates synthetic LLM traces (prompt/response pairs with 1–5 quality ratings).
    • Exposes two dlt resources: training_pairs (rating ≥ 4, reshaped as instruction-following pairs for TRL/Axolotl) and raw_traces (all records verbatim).
    • Loads both as Parquet files into a dataset repo on open-hub via dlt.destinations.huggingface.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dlthub.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

…rop-in

Co-authored-by: DiTo97 <40361744+DiTo97@users.noreply.github.com>
Copilot AI changed the title [WIP] Add examples folder to demonstrate Hub as backend examples: dlt traces-to-training-data pipeline using open-hub as HF drop-in Mar 20, 2026
Copilot AI requested a review from DiTo97 March 20, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants