|
Download python_lora_dataset_builder/CHANGELOG.md from api-relay/sadASDasd: direct link, hf CLI and curl.
- Browser
- Download file 6.21 kB
-
https://huggingface.co/datasets/api-relay/sadASDasd/resolve/main/python_lora_dataset_builder/CHANGELOG.md
- Command line
-
hf download hf://datasets/api-relay/sadASDasd/python_lora_dataset_builder/CHANGELOG.md
-
curl -L -o CHANGELOG.md https://huggingface.co/datasets/api-relay/sadASDasd/resolve/main/python_lora_dataset_builder/CHANGELOG.md
6.21 kB
Changelog
v0.4 — multi-day resumability + dedupe-before-execution
Added
- Real cross-run resumability.
runner.run()now persists a row cursor (rows_completed) and cumulative stats indata/metadata/checkpoint.json, and skips already-consumed rows on the next invocation (IterableDataset.skip(n)). Previouslycheckpoint.jsononly stored end-of-run stats and had no effect on where the next run started — every run always began at row 0. This is what makes "run it once a day for a few weeks" actually work instead of reprocessing the same rows every time. - Graceful stop + crash/power-loss recovery.
Ctrl+C(SIGINT) and SIGTERM now finish the in-flight record, write a checkpoint, and exit cleanly instead of dying mid-write. Checkpointing happens after every single row (atomic temp-file-plus-os.replacewrite), so a hard crash or power loss can lose at most the one row that was in flight. main.py --no-resumeto deliberately restart a source from row 0.scripts/setup.sh/setup.ps1andscripts/run_daily.sh/run_daily.ps1: isolated-venv setup and a daily-run wrapper that keeps dependencies in sync withrequirements.txtautomatically, without touching system Python.
Fixed
- Sandbox execution no longer runs on records already known to be
duplicates. Duplicate detection (
Deduper.check_and_add) was already computed before execution, but the result wasn't checked until after the sandbox subprocess had already run.runner.pynow gates execution onnot duplicate, so an exact/structural/near-duplicate skips straight to itsskipdecision without spending sandbox time (or, for tiers with NIM review, an API request) on code that's going to be discarded anyway.
v0.3 — code review fixes
Fixed (were blockers before any real run)
- Gitleaks fail-closed is now actually implemented.
secret_scan.pyreadsALLOW_MISSING_GITLEAKSandrunner.run()calls a startup check (ensure_secret_scanner_ready()) that raises immediately if Gitleaks is missing and the override isn't1. Previously the README/.env.exampleclaimed this behavior but the code silently passed every record through. - NIM retry logic no longer burns retries on non-retryable errors.
nim_reviewer.pynow checksr.status_codeexplicitly: 429 and 5xx retry with backoff, everything else>= 400(bad request, bad API key, forbidden, etc.) raises immediately with the real HTTP status and body instead of retrying 3 times and surfacing a genericnim_retry_exhausted. - The regression test now tests the actual code.
test_runner_regressions.pypreviously asserted on hand-built dicts and never importedpipeline.runner— it would have stayed green even with the exactNameErrorcrash reintroduced. It now mocksstream_hf_datasetand callsrunner.run()end-to-end for several scenarios (valid code, syntax error, execution failure, tier classification).
Improved (were flagged as real but non-blocking risks)
- Near-duplicate dedupe no longer scans the whole index per record.
dedupe.pynow uses MinHash/LSH banding for near-duplicate candidate lookup (exact/structural checks were already O(1) via dict lookup, now made explicit). See README "Deduplication at scale." - Added the three-tier classification structure (
pipeline/tiers.py,config/tier2_libraries.json): tier 1 (import-free, fully automated), tier 2 (per-library, classified + NIM-reviewable but never auto-included — no per-library sandbox exists yet), tier 3 (real-world/project, classified only).main.py --tierscontrols which tiers are active in a given run; default is tier 1 only. Output is now organized underdata/<tier>/[<library>/]<decision>/records.jsonlinstead of a single flatdata/<decision>/layout.
Still intentionally not built (unchanged from before this pass)
- No per-library, version-pinned execution environments for tier 2.
- No dedicated validation profile (static analysis / partial execution) for tier 3 real-world repository code; it should not be forced to run as a standalone snippet.
- No automated license/provenance detection — still a manual, source-level
approval step (
pipeline/source_checks.pyremains a stub that only checks instruction/output aren't both empty). - Dual-NIM self-consistency checking (
dual_review_low/dual_review_high/max_review_disagreementinconfig/thresholds.json) is configured but not wired intodecision.py/runner.py. - Local (non-Docker) sandbox mode still has no network isolation — only
Docker mode (
--network none) blocks outbound calls. Use Docker mode for any untrusted/unattended run.
v3 (prior)
Fixed
- Fixed the
NameError: decision is not defined/reason is not definedcrash in the hard-failure branch. - Hard-failure decisions are now computed directly and never rely on a dummy NIM result.
- Aligned
runner.pyanddecision.pyon theexecution_statuscontract.
Implemented
- Added an executor abstraction with a Docker production executor (network disabled, read-only root filesystem, dropped capabilities, no-new-privileges, PID/memory/CPU limits, non-root user, restricted tmpfs).
- Added Linux
resource.setrlimitlimits to the local executor (memory, CPU, process count, output size, open files). - Added explicit Windows behavior: timeout + temp cwd only, no
setrlimitequivalent; production/untrusted execution on Windows must use Docker mode. - Exact, AST-structural, and token-shingle near-duplicate layers.
- NIM retry/backoff and a separate retry queue.
- Expanded NIM rubric and hard axis gates.
0.2.0
- Added structural and near-duplicate detection across runs.
- Added Gitleaks scanner integration (fail-open at the time — fixed in v0.3).
- Added retry/backoff and a separate retry queue for NIM infrastructure failures.
- Added instruction alignment and scope-fit scoring.
- Added deterministic score-axis gates.
- Removed dummy NIM topic metadata.
- Added Linux resource limits to the local development executor.
- Added audit metadata for duplicate matching and secret scanning.