Files
ts-as-modality/.gitignore
T
张宗平 bf95ac18e4 feat(m3): stage 1 alignment training script + smoke (T3.2)
- src/tsmm/train/stage1.py: streams align.jsonl, freeze_llm, trains
  Encoder+Projector (AdamW lr=1e-4), bs=8/grad_accum=4/ctx=512/BF16,
  gradient checkpointing + enable_input_require_grads, loss = lm + lambda*InfoNCE
  (original vs perturbed TS representation), ckpt + tensorboard every 2000 steps.
- scripts/train_stage1.sh: wrapper with design defaults.
- src/tsmm/data/collator.py: handle JSON null (missing markers) -> NaN -> fill.
- .gitignore: /checkpoints/ and data/*.jsonl.
- Smoke verified: --max_steps 5 on 64 samples, finite loss, peak 5.52 GB (≤6GB).
- 100 tests passing.
2026-06-30 02:22:32 +00:00

134 lines
4.2 KiB
Plaintext

# ─────────────────────────────────────────────────────────────
# Dependencies
# ─────────────────────────────────────────────────────────────
node_modules/
jspm_packages/
# Python
.venv/
venv/
env/
__pycache__/
*.py[cod]
*.egg-info/
.pytest_cache/
.ipynb_checkpoints/
# ─────────────────────────────────────────────────────────────
# Build output & caches
# ─────────────────────────────────────────────────────────────
dist/
build/
out/
.cache/
.parcel-cache/
.npm/
.eslintcache
.stylelintcache
*.tsbuildinfo
# ─────────────────────────────────────────────────────────────
# Logs
# ─────────────────────────────────────────────────────────────
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# ─────────────────────────────────────────────────────────────
# Environment & secrets
# ─────────────────────────────────────────────────────────────
.env
.env.*
!.env.example
!.env.template
*.pem
*.key
# ─────────────────────────────────────────────────────────────
# OS / editor / IDE junk
# ─────────────────────────────────────────────────────────────
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
desktop.ini
# Editor
*.swp
*.swo
*~
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/tasks.json
!.vscode/launch.json
.idea/
*.sublime-workspace
*.sublime-project
# ─────────────────────────────────────────────────────────────
# Testing & coverage
# ─────────────────────────────────────────────────────────────
coverage/
*.lcov
.nyc_output/
# ─────────────────────────────────────────────────────────────
# AI agent tooling — LOCAL state only
# (Project-level config like skills/prompts/rules/commands is tracked;
# per-machine state, caches, sessions and databases are ignored.)
# ─────────────────────────────────────────────────────────────
# Local agent settings (override files, never shared)
**/settings.local.json
**/settings.local.*
**/.local.json
# pi agent local runtime
.pi/sessions/
.pi/cache/
.pi/state/
.pi/logs/
# Claude Code local runtime
.claude/settings.local.json
.claude/sessions/
.claude/cache/
.claude/logs/
.claude/.local/
# Comet workflow local runtime
.comet/sessions/
.comet/cache/
.comet/state/
.comet/logs/
.comet/.dirty
# Superpowers brainstorm sessions (per-machine runtime state)
.superpowers/
# CodeGraph databases & caches (local to each machine)
.codegraph/*.db
.codegraph/*.db-wal
.codegraph/*.db-shm
.codegraph/cache/
.codegraph/*.log
.codegraph/.dirty
# Misc agent-generated scratch / context dumps
.context/
.context-*/
tmp/
.temp/
# local artifacts (design §6.1)
/checkpoints/
/data/*.jsonl