DGXAI/driftcall
0
1"""DriftCall — hardcoded secrets for private-repo runs.2 3This file contains credentials. Repository is private per user direction.4Do NOT make this repository public without scrubbing this file from history:5 6 git filter-repo --path cells/_secrets.py --invert-paths7 8To rotate a key: replace the value below and the running training script9will pick it up on next launch (init_wandb reads via os.environ first;10this file is the fallback when env var is unset).11"""12 13from __future__ import annotations14 15import os16 17# wandb.ai API key — pasted by user 2026-04-25.18# Rotate at https://wandb.ai/authorize → Reset, then update below.19WANDB_API_KEY: str = "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"20 21# Default project + mode — override via env if needed.22WANDB_PROJECT: str = "driftcall"23WANDB_ENTITY: str | None = None24WANDB_MODE: str = "online"25 26 27def export_to_env() -> None:28 """Push hardcoded values into ``os.environ`` if not already set.29 30 Called by ``init_wandb()`` at the start of each training run. Env-var31 overrides take priority — set ``WANDB_API_KEY=...`` in the shell to bypass32 this file without editing it.33 """34 os.environ.setdefault("WANDB_API_KEY", WANDB_API_KEY)35 os.environ.setdefault("WANDB_PROJECT", WANDB_PROJECT)36 if WANDB_ENTITY is not None:37 os.environ.setdefault("WANDB_ENTITY", WANDB_ENTITY)38 os.environ.setdefault("WANDB_MODE", WANDB_MODE)39 40 41__all__ = [42 "WANDB_API_KEY",43 "WANDB_ENTITY",44 "WANDB_MODE",45 "WANDB_PROJECT",46 "export_to_env",47]48 