IntentGuard

S04.1 — Verify the DistilBERT training environment and forward pass

Planning / historicaltaskdelivery

Historical

Planning material. It summarizes and links to the authoritative specification and the current measured state — it does not replace either, and it is not current engineering truth.

Migration identity#

  • Canonical identifier: S04.1 (GitHub issue type: subtask).
  • Legacy identifier: C04.1 (retained as old_identifier).
  • Parent epic: E04.
  • Milestone: M1 — IntentGuard Weekend MVP.

Objective#

Resolve the immutable base-model revision and prove one configured CPU/GPU forward/backward smoke path fits available resources.

Rationale#

Early environment validation prevents losing the weekend after committing to an unusable training path.

Parent identifier#

E04.

Source task#

T-004.

Traceability#

Primary: T-004. Secondary: FR-003, NFR-001.

Prerequisites#

U02/U03 complete; model source reachable or verified cache; hardware identified.

Likely files#

configs/default.toml, src/intentguard/training.py, scripts/train_transformer.py, tests/integration/test_training_smoke.py.

Implementation boundary#

Environment, tokenizer/model load, shapes, loss/backward, and memory smoke only; not a trained artifact.

MUST scope#

Revision pin, device selection, sequence length, batch reduction rule, seeds, 77-class head, and actionable failures.

Explicit non-goals#

CUDA compatibility claim without evidence, extra architectures, full training, or performance metrics.

Acceptance criteria#

Pinned tokenizer/model load; one batch produces finite loss/logits and optional backward pass; device/memory facts are recorded.

Validation commands#

uv run pytest tests/integration/test_training_smoke.py -q.

Expected evidence#

Revision, environment versions, device, shapes, finite loss, batch/sequence settings, and peak-memory record when available.

Fallback and status consequence#

CPU or smaller batch is valid; frozen embeddings is not this task’s success and would make U04 Partial.

Stop condition#

Stop for unresolved revision, incompatible dependencies, non-finite output, or memory failure after safe batch reduction.

Definition of ready#

Dataset labels and configuration are stable and hardware access is known.

Definition of done#

The declared training path passes a reproducible smoke test with honest environment evidence.

Labels#

type:subtask, priority:MUST, area:model

Estimate#

0.5 hour.

Related in repository

Open in full graph →
DOCUMENTED_BYDOCUMENTED_BY — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.md § S04.1 — Verify the DistilBERT training environment and forward passREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdREFERENCESREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.mdPART_OF — source: docs/backlog/TRACEABILITY.md § Source tasksPART_OF — source: docs/backlog/TRACEABILITY.md § Source tasksREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.md § TraceabilityREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.md § TraceabilityREFERENCES — source: docs/backlog/tasks/C04.1-distilbert-environment-smoke.md § TraceabilityREFERENCES — source: docs/backlog/umbrellas/U04-distilbert-artifact.md § TraceabilityREFERENCES — source: docs/backlog/umbrellas/U04-distilbert-artifact.md § TraceabilityREFERENCES — source: docs/backlog/umbrellas/U04-distilbert-artifact.md § TraceabilityRELATED_TO — source: docs/backlog/umbrellas/U04-distilbert-artifact.md § Migration identityCURRENTdocument: S04.1 — Verify the DistilBERT training environment and forward passS04.1task: S04.1E04epic: E04FR-003 — Improved modelrequirement: FR-003 — Improved modelNFR-001 — Local compatib…requirement: NFR-001 — Local compatibilityT-004 — Immutable transf…task: T-004 — Immutable transformer artifact with thresholdU02 — BANKING77 data con…capability: U02 — BANKING77 data contractU03 — TF-IDF logistic-re…capability: U03 — TF-IDF logistic-regression baselineU04 — DistilBERT trainin…capability: U04 — DistilBERT training and immutable artifact
Hover an edge for its provenance · click a node to open it9 nodes · 18 edges