To keep proprietary source code or training data out of W&B for privacy or compliance reasons, limit what W&B captures so that your runs log only metrics. By default, W&B logs code and system metrics but doesn’t log dataset examples. To turn off code logging, use environment variables at the run level or change team-wide defaults as an admin.Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-style-guide-support-models-articles-20260527-00.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.