Turn off code logging with environment variables
Use one of the following environment variables to turn off code logging for an individual run or process:- Set
WANDB_DISABLE_CODEtotrueto turn off all code tracking. This action prevents retrieval of the Git SHA and the diff patch. - Set
WANDB_IGNORE_GLOBSto*.patchto stop syncing the diff patch to W&B servers while keeping it available locally for application withwandb restore.
Enforce settings at the organization or team level
If you want to turn off code saving for everyone on a team (rather than relying on each user to set environment variables), change the default in your team or organization settings. Organization admins can enforce privacy settings for all teams in their organization from the Privacy section of the Settings tab in the account or organization dashboard. If organization admins enforce a setting, team admins can’t configure that setting in their teams. As a team admin, you can turn off default code saving for runs in your team:- Go to
https://wandb.ai/[TEAM-NAME], replacing[TEAM-NAME]with your team name. - Select Team settings in the left navigation.
- Open the Privacy section and turn off Enable code saving by default.
Administrator Team Management Metrics