Notice: The Weights & Biases domain will change on September 30. This includes all websites and services that use a W&B domain. No action is needed today.
Search and stop algorithms locally instead of using the W&B cloud-hosted service.
This page shows you how to run a sweep’s search and stopping algorithms locally instead of using the W&B cloud-hosted controller. Use the local controller to inspect and instrument the code to debug issues or develop new algorithms that you can later incorporate into the cloud-hosted controller.By default, W&B hosts the hyperparameter controller as a cloud service. W&B agents communicate with the controller to determine the next set of parameters to use for training. The controller also runs early stopping algorithms to determine which runs to stop.The local controller feature lets you run search and stop algorithms locally.
This feature supports faster development and debugging of new algorithms for the Sweeps tool. It isn’t appropriate for hyperparameter optimization workloads.
Prerequisites
Install the W&B SDK (wandb) so that the local controller commands are available:
pip install wandb sweeps
The following examples assume you already have a configuration file and a training loop defined in a Python script or Jupyter notebook. For more information, see Define sweep configuration.
Run a local controller from the command line
Initialize a sweep the same way as when you use hyperparameter controllers hosted by W&B as a cloud service, but pass the --controller flag to use the local controller:
Initialize the sweep with the --controller flag:
wandb sweep --controller config.yaml
Note the sweep ID that wandb sweep generates, then start the controller. Replace [SWEEP-ID] with the sweep ID. You can pass the short sweep ID alone or include the entity and project as a path ([ENTITY]/[PROJECT]/[SWEEP-ID]):
wandb controller [SWEEP-ID]
Start one or more sweep agents to run the sweep. Replace [SWEEP-ID] with the sweep ID:
Alternatively, add the controller to your configuration file so you don’t need to pass --controller each time you initialize the sweep:
controller: type: local
Then initialize the sweep without the flag, and continue with steps 2 and 3:
wandb sweep config.yaml
Run a local controller with W&B Python SDK
The following code snippets demonstrate how to specify and use a local controller with the W&B Python SDK. Each example offers progressively more control, so you can choose the approach that matches how much you need to customize search and scheduling.To use a controller with the Python SDK, pass the sweep ID to the wandb.controller() method, then call the returned object’s run method to start the sweep job:
sweep = wandb.controller(sweep_id)sweep.run()
For more control over the controller loop, step through it yourself:
import wandbsweep = wandb.controller(sweep_id)while not sweep.done(): sweep.print_status() sweep.step() time.sleep(5)
For even more control over the parameters served, call search and schedule directly:
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Weights \u0026 Biases Documentation","colors":{"primary":"#FCBC32","light":"#FCBC32","dark":"#FCBC32"},"logo":{"light":"https://mintcdn.com/wb-21fd5541/C7PMWo9Jl9GZ2Zki/icons/Endorsed_primary_blackwhite.svg?fit=max\u0026auto=format\u0026n=C7PMWo9Jl9GZ2Zki\u0026q=85\u0026s=a9d999235518399090dd8ddd0a9e1e4a","dark":"https://mintcdn.com/wb-21fd5541/C7PMWo9Jl9GZ2Zki/icons/Endorsed_primary_goldwhite.svg?fit=max\u0026auto=format\u0026n=C7PMWo9Jl9GZ2Zki\u0026q=85\u0026s=f4eaf37e934c12e5fd3e806fe2984c2e","href":"https://docs.wandb.ai/"},"favicon":"https://mintcdn.com/wb-21fd5541/HesivM0BUKMK8VeH/favicon.png?fit=max\u0026auto=format\u0026n=HesivM0BUKMK8VeH\u0026q=85\u0026s=0c96f60ed4edd2ece5e942ecde3c11fa","background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://app.wandb.ai/login?_gl=1*8ninq0*_ga*MTE3ODEwNDkyLjE3MzQwMjk0NjA.*_ga_JH1SJHJQXJ*MTczNDA2Mzc4OS4yLjEuMTczNDA2MzkxMC42MC4wLjA.*_ga_GMYDGNGKDT*MTczNDA2Mzc4OS4zLjEuMTczNDA2Mzg2Ny4wLjAuMA..*_gcl_au*MTc0Mjk3ODgzMi4xNzM0MDI5NDYw","label":"Log in"}],"primary":{"type":"button","label":"Sign Up","href":"https://app.wandb.ai/login?signup=true\u0026_gl=1*y15ckv*_ga*MTE3ODEwNDkyLjE3MzQwMjk0NjA.*_ga_JH1SJHJQXJ*MTczNDA2Mzc4OS4yLjEuMTczNDA2Mzk3MC42MC4wLjA.*_ga_GMYDGNGKDT*MTczNDA2Mzc4OS4zLjEuMTczNDA2Mzg2Ny4wLjAuMA..*_gcl_au*MTc0Mjk3ODgzMi4xNzM0MDI5NDYw"}},"footer":{"socials":{"discord":"https://discord.com/invite/RgB8CPk2ce","github":"https://github.com/wandb/docs","linkedin":"https://www.linkedin.com/company/wandb","x":"https://x.com/weights_biases?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor","youtube":"https://www.youtube.com/c/WeightsBiases"}},"seo":{"metatags":{"canonical":"https://docs.wandb.ai"},"indexing":"all"},"fonts":{"heading":{"family":"Source Serif 4","weight":400},"body":{"family":"Source Sans 3","weight":400}},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"ga4":{"measurementId":"G-5JYCHZZP7K"},"gtm":{"tagId":"GTM-5BL5RTH"}},"banner":{"content":"**Notice:** The Weights \u0026 Biases domain [will change on September 30](https://wandb.ai/site/domain-update-faqs/). This includes all websites and services that use a W\u0026B domain. No action is needed today.","dismissible":true,"type":"warning"},"contextual":{"options":[{"title":"Install W\u0026B MCP","description":"Set up the W\u0026B MCP server in Claude Code, Codex, VS Code and or other LLM agents.","icon":"plug","href":"/platform/mcp-server"},{"title":"Install W\u0026B MCP in Cursor","description":"Automatically install W\u0026B MCP server to Cursor. Requires a W\u0026B API key.","icon":"plug","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=wandb\u0026config=eyJ0cmFuc3BvcnQiOiJodHRwIiwidXJsIjoiaHR0cHM6Ly9tY3Aud2l0aHdhbmRiLmNvbS9tY3AiLCJoZWFkZXJzIjp7IkF1dGhvcml6YXRpb24iOiJCZWFyZXIgWU9VUl9XQU5EQl9BUElfS0VZIiwiQWNjZXB0IjoiYXBwbGljYXRpb24vanNvbiwgdGV4dC9ldmVudC1zdHJlYW0ifX0="},"chatgpt","claude","copy","view"],"display":"header"},"navigation":{"languages":[{"language":"en","href":""},{"language":"fr","href":"fr"},{"language":"ja","href":"ja"},{"language":"ko","href":"ko"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wb-21fd5541","hasAudioNarration":false,"actualSubdomain":"wb-21fd5541","customDomains":["docs.wandb.ai"],"gitSource":{"type":"github","owner":"wandb","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6abd16e4f7750a5210d47e77","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"en","tag":"Products","count":420},{"language":"fr","tag":"Produits","count":420},{"language":"ja","tag":"プロダクト","count":420},{"language":"ko","tag":"제품","count":420},{"language":"en","tag":"Reference","count":397},{"language":"fr","tag":"Référence","count":397},{"language":"ja","tag":"リファレンス","count":397},{"language":"ko","tag":"레퍼런스","count":397},{"language":"en","tag":"W\u0026B Weave","count":356},{"language":"fr","tag":"W\u0026B Weave","count":356},{"language":"ja","tag":"W\u0026B Weave","count":356},{"language":"ko","tag":"W\u0026B Weave","count":356},{"language":"en","tag":"W\u0026B Models","count":333},{"language":"fr","tag":"W\u0026B Models","count":333},{"language":"ja","tag":"W\u0026B Models","count":333},{"language":"ko","tag":"W\u0026B Models","count":333},{"language":"en","tag":"Guides","count":259},{"language":"fr","tag":"Guides","count":259},{"language":"ja","tag":"ガイド","count":259},{"language":"ko","tag":"가이드","count":259},{"language":"en","tag":"Service API","count":113},{"language":"fr","tag":"API de service","count":113},{"language":"ja","tag":"サービス API","count":113},{"language":"ko","tag":"서비스 API","count":113},{"language":"en","tag":"Python","count":92},{"language":"fr","tag":"Python","count":92},{"language":"ja","tag":"Python","count":92},{"language":"ko","tag":"Python","count":92},{"language":"en","tag":"TypeScript SDK","count":88},{"language":"fr","tag":"SDK TypeScript","count":88},{"language":"ja","tag":"TypeScript SDK","count":88},{"language":"ko","tag":"TypeScript SDK","count":88},{"language":"en","tag":"Trace functions with Ops and Calls","count":64},{"language":"fr","tag":"Tracer des fonctions avec des Ops et des Calls","count":64},{"language":"ja","tag":"Ops と Calls を使用して関数をトレースする","count":64},{"language":"ko","tag":"Ops와 Calls로 함수 트레이스하기","count":64},{"language":"en","tag":"Docs Home","count":62},{"language":"fr","tag":"Accueil de la documentation","count":62},{"language":"ja","tag":"ドキュメント ホーム","count":62},{"language":"ko","tag":"문서 홈","count":62}],"searchSettings":{"maxResults":25}},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":false,"deflection":{"enabled":true,"email":"support@wandb.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"css/styles.css","content":":root{--background-light:251 250 248;--background-dark:26 29 36;--primary-foreground:217 13% 19%;--page-texture:url(\"/css/assets/light-dots.png\")}:root{--color-page-bg:#FBFAF8;--color-card-hover:#FFFFFF;--color-stroke:#DFE0E2;--color-sidebar-bg:#F9F7F3;--color-sidebar-hover:#F5EDE1;--color-card-rest:#FBFAF8;--color-card-active:#FFFFFF;--color-icon:#D4870D;--color-button:#FCBC32;--color-button-fg:#2B3038;--color-text-primary:#2B3038;--color-text-secondary:#4B535C}.dark{--color-page-bg:#1A1D24;--color-card-hover:#363C44;--color-stroke:#2B3038;--color-sidebar-bg:#20242B;--color-sidebar-hover:#2B3038;--color-card-rest:#1A1D24;--color-card-active:#2B3038;--color-icon:#D4870D;--color-button:#FCBC32;--color-text-primary:#E8E8E9;--color-text-secondary:#C5C7CC;--page-texture:url(\"/css/assets/dark-dots.png\")}:root{--font-serif:\"Source Serif 4\",\"Times New Roman\",serif;--font-sans:\"Source Sans 3\",Calibri,sans-serif;--font-weight-regular:400;--font-weight-medium:500;--font-weight-bold:650;--font-size-xs:0.75rem;--font-size-sm:0.9375rem;--font-size-md:1rem;--font-size-xm:1.125rem;--font-size-lg:1.5rem;--font-size-xl:2.5rem}body{font-family:var(--font-sans)}h1,h2,h3,h4,h5,h6{font-family:var(--font-serif);font-weight:var(--font-weight-medium)!important;color:var(--color-text-primary)!important}h1{font-size:var(--font-size-xl)}b,strong{font-weight:var(--font-weight-bold)!important;font-synthesis-weight:auto}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.5rem}h2:is([id^=january-2],[id^=february-2],[id^=march-2],[id^=april-2],[id^=may-2],[id^=june-2],[id^=july-2],[id^=august-2],[id^=september-2],[id^=october-2],[id^=november-2],[id^=december-2]){margin-top:3rem}.banner-body,.banner-body *,.banner-title{color:#e8e8e9!important}body,html{background-color:var(--color-page-bg)!important;background-image:var(--page-texture)!important;background-repeat:no-repeat!important;background-size:500px auto!important;background-position:calc(100% + 375px) 200px!important;background-attachment:fixed!important}main{background-color:transparent!important}#background-color{background-color:transparent!important}span[style*=radial-gradient]{background:0 0!important}img.nav-logo{height:62px!important;min-height:62px!important;max-height:62px!important;width:233px!important;min-width:233px!important;max-width:233px!important;flex-shrink:0!important;flex-grow:0!important}a:has(>img.nav-logo){flex-shrink:0;min-width:233px}a.nav-tabs-item.font-medium:not([data-active=true]),button.nav-tabs-item:not(.text-primary)>div:first-child{color:var(--color-text-secondary)}button.nav-tabs-item.text-primary>div:first-child svg,button.nav-tabs-item:hover>div:first-child svg{color:var(--color-text-primary)!important}.nav-tabs-item{font-size:var(--font-size-md)}[data-active=true].hover\\:text-primary:hover,[data-active=true].text-primary{color:var(--color-text-primary);text-shadow:none;font-weight:var(--font-weight-bold)}button.nav-tabs-item.text-primary,button.nav-tabs-item.text-primary>div:first-child{color:var(--color-text-primary)!important;font-weight:var(--font-weight-bold)!important}.nav-tabs-item .bg-primary{background-color:var(--color-text-primary);height:2px}.nav-dropdown-item:has(.text-primary){background-color:var(--color-sidebar-hover)}.nav-dropdown-item .text-primary{color:var(--color-text-primary);font-weight:var(--font-weight-medium)}.nav-dropdown-item.group:hover .group-hover\\:text-primary{color:var(--color-text-primary)}#assistant-entry,#assistant-entry span,#localization-select-trigger,#localization-select-trigger span,#search-bar-entry,#search-bar-entry>div>div,#topbar-cta-button a,#topbar-cta-button a span,.topbar-right-container nav,.topbar-right-container nav a{font-size:var(--font-size-sm)}#topbar-cta-button a,#topbar-cta-button a span,#topbar-cta-button a svg{color:var(--color-button-fg)}#assistant-entry{background-color:var(--color-button)!important}#assistant-entry:hover{background-color:var(--color-button)!important;opacity:.9}#assistant-entry,#assistant-entry span,#assistant-entry svg{color:var(--color-button-fg)!important}#banner,#banner *{color:var(--color-button-fg)!important}button[aria-label=\"Dismiss banner\"] svg{stroke:var(--color-button-fg)!important}#sidebar,#sidebar-content{background-color:var(--color-sidebar-bg)}.sidebar-group-header,.sidebar-group-header>h5{font-family:var(--font-sans)!important;font-size:var(--font-size-md);font-weight:var(--font-weight-medium)!important}.sidebar-group a,.sidebar-group button{font-family:var(--font-sans);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}#sidebar-content a.text-primary{color:var(--color-text-primary);background-color:var(--color-sidebar-hover);text-shadow:none}.nav-tag-pill-text{color:var(--color-text-secondary)}#sidebar-content .sidebar-group a .justify-end{flex:none}.toc-item[data-active=true]>a,.toc-item[data-active=true]>a:hover{color:var(--color-text-primary);border-color:var(--color-text-primary)}.colab-link,.github-source-link,.try-product-link{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 14px;border:1px solid color-mix(in srgb,var(--color-stroke) 70%,transparent);border-radius:12px;font-size:var(--font-size-md);font-weight:var(--font-weight-regular);font-family:var(--font-sans);color:var(--color-text-secondary);background-color:color-mix(in srgb,var(--color-card-hover) 50%,transparent);text-decoration:none;line-height:24px;white-space:nowrap;cursor:pointer;transition:all .2s ease;margin-bottom:1.5rem;width:fit-content;min-width:fit-content}.colab-link:hover,.github-source-link:hover,.try-product-link:hover{background-color:color-mix(in srgb,var(--color-card-hover) 80%,transparent);border-color:var(--color-stroke)}.dark .colab-link,.dark .github-source-link,.dark .try-product-link{color:var(--color-text-primary)}.source-link{float:right;display:inline-block;padding:2px 8px;border:1px solid color-mix(in srgb,var(--color-stroke) 70%,transparent);border-radius:6px;font-size:var(--font-size-xs);font-weight:var(--font-weight-medium);color:var(--color-text-secondary);background-color:color-mix(in srgb,var(--color-card-hover) 50%,transparent);text-decoration:none;transition:all .15s ease}.source-link:hover{background-color:color-mix(in srgb,var(--color-card-hover) 80%,transparent);border-color:var(--color-stroke);text-decoration:none}.dark .source-link{color:var(--color-text-primary)}button[type=submit].bg-primary.mint-text-white{color:var(--color-button-fg)!important}button[type=submit].bg-primary.mint-text-white [fill=white]{fill:currentColor!important}button[type=submit].bg-primary.mint-text-white [stroke=white]{stroke:currentColor!important}button[type=submit].bg-primary.mint-text-white svg{color:var(--color-button-fg)!important}div:has(>div>textarea.chat-assistant-input):not(#chat-assistant-sheet *){box-shadow:0 8px 24px #00000026}div:has(>.chat-assistant-floating-input){overflow:visible!important}textarea.chat-assistant-input{min-height:2.5rem!important;max-height:2.5rem!important}button.chat-assistant-send-button{background-color:var(--color-button)!important}button.chat-assistant-send-button svg{color:var(--color-button-fg)!important}.product-card{background-color:var(--color-card-rest);border:1px solid var(--color-stroke)}.product-card:hover{background-color:var(--color-card-active)}.product-card-title{font-size:var(--font-size-lg);font-weight:var(--font-weight-medium)!important;margin-top:0}.home-h3,.product-card-subtitle{font-family:var(--font-sans)!important;font-size:var(--font-size-xm);font-weight:var(--font-weight-regular);color:var(--color-text-primary)}.product-card-body{font-family:var(--font-sans);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);color:var(--color-text-secondary)}.card.block{background-color:var(--color-card-rest)!important;border-color:var(--color-stroke)!important}.card.block:hover{background-color:var(--color-card-active)!important;border-color:var(--color-stroke)!important}.card.block h1,.card.block h2,.card.block h3,.card.block h4,.card.block h5,.card.block h6{font-family:var(--font-sans);font-weight:var(--font-weight-bold)!important}#pagination>a{background-color:var(--color-card-rest);border-color:var(--color-stroke)}#pagination>a:hover{background-color:var(--color-card-active);border-color:var(--color-stroke)}[data-component-part=update-label]{color:var(--color-text-secondary)}[data-badge=true][data-color=orange]{--color-bg:color-mix(in srgb, var(--color-button) 20%, transparent);--color-text:var(--color-icon);--color-bg-disabled:color-mix(in srgb, var(--color-button) 8%, transparent);--color-text-disabled:color-mix(in srgb, var(--color-icon) 50%, transparent)}[data-badge=true] a,[data-badge=true] a:hover{text-decoration:none!important;border-bottom:0!important}.dark [data-badge=true][data-color=orange]{--color-text:var(--color-button);--color-text-disabled:color-mix(in srgb, var(--color-button) 50%, transparent)}"}]}
{"page":{"pagePath":"models/sweeps/local-controller","slug":"/models/sweeps/local-controller","pageMetadata":{"description":"Search and stop algorithms locally instead of using the W\u0026B cloud-hosted service.","title":"Manage algorithms locally","href":"/models/sweeps/local-controller"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Search and stop algorithms locally instead of using the W\u0026B cloud-hosted service.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This page shows you how to run a sweep’s search and stopping algorithms locally instead of using the W\u0026B cloud-hosted controller. Use the local controller to inspect and instrument the code to debug issues or develop new algorithms that you can later incorporate into the cloud-hosted controller.`}),`\n`,_jsx(_components.p,{children:`By default, W\u0026B hosts the hyperparameter controller as a cloud service. W\u0026B agents communicate with the controller to determine the next set of parameters to use for training. The controller also runs early stopping algorithms to determine which runs to stop.`}),`\n`,_jsx(_components.p,{children:`The local controller feature lets you run search and stop algorithms locally.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`This feature supports faster development and debugging of new algorithms for the Sweeps tool. It isn’t appropriate for hyperparameter optimization workloads.`})}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.p,{children:[`Install the W\u0026B SDK (`,_jsx(_components.code,{children:`wandb`}),`) so that the local controller commands are available:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` wandb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sweeps`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The following examples assume you already have a configuration file and a training loop defined in a Python script or Jupyter notebook. For more information, see `,_jsx(_components.a,{href:`/models/sweeps/define-sweep-configuration`,children:`Define sweep configuration`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`run-a-local-controller-from-the-command-line`,children:`Run a local controller from the command line`}),`\n`,_jsxs(_components.p,{children:[`Initialize a sweep the same way as when you use hyperparameter controllers hosted by W\u0026B as a cloud service, but pass the `,_jsx(_components.code,{children:`--controller`}),` flag to use the local controller:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Initialize the sweep with the `,_jsx(_components.code,{children:`--controller`}),` flag:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wandb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sweep`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --controller`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config.yaml`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Note the sweep ID that `,_jsx(_components.code,{children:`wandb sweep`}),` generates, then start the controller. Replace `,_jsx(_components.code,{children:`[SWEEP-ID]`}),` with the sweep ID. You can pass the short sweep ID alone or include the entity and project as a path (`,_jsx(_components.code,{children:`[ENTITY]/[PROJECT]/[SWEEP-ID]`}),`):`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wandb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` controller`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [SWEEP-ID]`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Start one or more sweep agents to run the sweep. Replace `,_jsx(_components.code,{children:`[SWEEP-ID]`}),` with the sweep ID:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wandb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [SWEEP-ID]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For more information, see `,_jsx(_components.a,{href:`/models/sweeps/start-sweep-agents`,children:`Start sweep agents`}),`.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Alternatively, add the controller to your configuration file so you don’t need to pass `,_jsx(_components.code,{children:`--controller`}),` each time you initialize the sweep:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`controller`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`local`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then initialize the sweep without the flag, and continue with steps 2 and 3:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`wandb`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sweep`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` config.yaml`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`run-a-local-controller-with-w\u0026b-python-sdk`,children:`Run a local controller with W\u0026B Python SDK`}),`\n`,_jsx(_components.p,{children:`The following code snippets demonstrate how to specify and use a local controller with the W\u0026B Python SDK. Each example offers progressively more control, so you can choose the approach that matches how much you need to customize search and scheduling.`}),`\n`,_jsxs(_components.p,{children:[`To use a controller with the Python SDK, pass the sweep ID to the `,_jsx(_components.a,{href:`/models/ref/python/functions/controller`,children:_jsx(_components.code,{children:`wandb.controller()`})}),` method, then call the returned object’s `,_jsx(_components.code,{children:`run`}),` method to start the sweep job:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb.controller(sweep_id)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.run()`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For more control over the controller loop, step through it yourself:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb.controller(sweep_id)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.done():`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.print_status()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.step()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time.sleep(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For even more control over the parameters served, call `,_jsx(_components.code,{children:`search`}),` and `,_jsx(_components.code,{children:`schedule`}),` directly:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb.controller(sweep_id)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` not`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.done():`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` params `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.search()`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.schedule(params)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` sweep.print_status()`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`To specify your sweep entirely in code rather than a YAML configuration file, configure the search, program, controller, and parameters in Python:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wandb.controller()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.configure_search(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"grid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.configure_program(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"train-dummy.py\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.configure_controller(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"local\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.configure_parameter(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"param1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.create()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sweep.run()`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"description":"Search and stop algorithms locally instead of using the W\u0026B cloud-hosted service.","title":"Manage algorithms locally","href":"/models/sweeps/local-controller"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Run a local controller from the command line","slug":"run-a-local-controller-from-the-command-line","depth":2,"children":[]},{"title":"Run a local controller with W\u0026B Python SDK","slug":"run-a-local-controller-with-w\u0026b-python-sdk","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/wb-21fd5541/62b2917cd8d8869b/analytics.js","/_mintlify/custom/wb-21fd5541/1d706ba09a39aeb0/local-links-same-tab.js","/_mintlify/custom/wb-21fd5541/b496d1b047524c5a/dropdown-tabs-navigate.js","/_mintlify/custom/wb-21fd5541/ca910ce06377c00d/code-group-language-persist.js","/_mintlify/custom/wb-21fd5541/6e7fd8bf6d924ed7/kapa-widget.js"],"subdomain":"wb-21fd5541","siteName":"Weights \u0026 Biases Documentation","title":"Manage algorithms locally - Weights \u0026 Biases Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/models/sweeps/local-controller","matchLevel":0},"fr":{"href":"/fr/models/sweeps/local-controller","matchLevel":1},"ja":{"href":"/ja/models/sweeps/local-controller","matchLevel":1},"ko":{"href":"/ko/models/sweeps/local-controller","matchLevel":1}}},"lastModified":"2026-07-15T20:20:28.388Z","originalFileLocation":"models/sweeps/local-controller.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Search and stop algorithms locally instead of using the W\u0026amp;B cloud-hosted service.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Weights \u0026amp; Biases Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Manage algorithms locally - Weights \u0026amp; Biases Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Search and stop algorithms locally instead of using the W\u0026amp;B cloud-hosted service.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Weights \u0026amp; Biases Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wandb.ai/models/sweeps/local-controller\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wb-21fd5541.mintlify.site/_mintlify/api/og/v2?division=Sweeps\u0026amp;title=Manage+algorithms+locally\u0026amp;description=Search+and+stop+algorithms+locally+instead+of+using+the+W%26B+cloud-hosted+service.\u0026amp;theme=b2b0182ac5551ece3d862622\u0026amp;signature=5090956c3aac110c26aa4df5fd7b3bd3810aff046a36f75256a19fc90a740ebb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Manage algorithms locally - Weights \u0026amp; Biases Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Search and stop algorithms locally instead of using the W\u0026amp;B cloud-hosted service.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wb-21fd5541.mintlify.site/_mintlify/api/og/v2?division=Sweeps\u0026amp;title=Manage+algorithms+locally\u0026amp;description=Search+and+stop+algorithms+locally+instead+of+using+the+W%26B+cloud-hosted+service.\u0026amp;theme=b2b0182ac5551ece3d862622\u0026amp;signature=5090956c3aac110c26aa4df5fd7b3bd3810aff046a36f75256a19fc90a740ebb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/wb-21fd5541/5Z9xPfvPzDMWig23/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Weights \u0026amp; Biases Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FCBC32\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wandb.ai/models/sweeps/local-controller\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/models/sweeps/local-controller.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.wandb.ai/models/sweeps/local-controller\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.wandb.ai/fr/models/sweeps/local-controller\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.wandb.ai/ja/models/sweeps/local-controller\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.wandb.ai/ko/models/sweeps/local-controller\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.wandb.ai/models/sweeps/local-controller\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wandb.ai/#organization\",\"name\":\"Weights \u0026 Biases Documentation\",\"url\":\"https://docs.wandb.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wb-21fd5541/C7PMWo9Jl9GZ2Zki/icons/Endorsed_primary_blackwhite.svg?fit=max\u0026auto=format\u0026n=C7PMWo9Jl9GZ2Zki\u0026q=85\u0026s=a9d999235518399090dd8ddd0a9e1e4a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wandb.ai#website\",\"name\":\"Weights \u0026 Biases Documentation\",\"url\":\"https://docs.wandb.ai\",\"publisher\":{\"@id\":\"https://docs.wandb.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wandb.ai/models/sweeps/local-controller#webpage\",\"url\":\"https://docs.wandb.ai/models/sweeps/local-controller\",\"name\":\"Manage algorithms locally\",\"description\":\"Search and stop algorithms locally instead of using the W\u0026B cloud-hosted service.\",\"dateModified\":\"2026-07-15T20:20:28.388Z\",\"isPartOf\":{\"@id\":\"https://docs.wandb.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wandb.ai/models/sweeps/local-controller#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wandb.ai/models/sweeps/local-controller#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.wandb.ai/models/track\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sweeps\",\"item\":\"https://docs.wandb.ai/models/sweeps\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Manage algorithms locally\",\"item\":\"https://docs.wandb.ai/models/sweeps/local-controller\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.wandb.ai/models/sweeps/local-controller#article\",\"headline\":\"Manage algorithms locally\",\"name\":\"Manage algorithms locally\",\"description\":\"Search and stop algorithms locally instead of using the W\u0026B cloud-hosted service.\",\"url\":\"https://docs.wandb.ai/models/sweeps/local-controller\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wandb.ai/models/sweeps/local-controller#webpage\"},\"dateModified\":\"2026-07-15T20:20:28.388Z\",\"publisher\":{\"@id\":\"https://docs.wandb.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wandb.ai#website\"}}]}\u003c/script>","agentPointerHref":"/models/sweeps/local-controller.md","siteName":"Weights \u0026 Biases Documentation","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Products","menu":[{"item":"Docs Home","pages":[{"title":"Docs Home","href":""}]},{"item":"W\u0026B Models","pages":[{"title":"W\u0026B Models","mode":"wide","href":"/models"},{"title":"W\u0026B Quickstart","href":"/models/quickstart"},{"title":"Get Started with W\u0026B Models","href":"/models/models_quickstart"},{"group":"Guides","pages":[{"group":"Experiments","pages":[{"title":"Experiments overview","href":"/models/track"},{"title":"Create an experiment","href":"/models/track/create-an-experiment"},{"title":"Configure experiments","href":"/models/track/config"},{"title":"Projects","href":"/models/track/project-page"},{"title":"View experiments results","href":"/models/track/workspaces"},{"group":"What are runs?","pages":[{"title":"Overview","href":"/models/runs"},{"title":"Find and customize a run's ID or name","href":"/models/runs/run-identifiers"},{"title":"Initialize runs","href":"/models/runs/initialize-run"},{"title":"Run states","href":"/models/runs/run-states"},{"title":"View a specific run in a project","href":"/models/runs/view-logged-runs"},{"title":"View runs in a project","href":"/models/runs/customize-run-display"},{"title":"Fork a run","href":"/models/runs/forking"},{"title":"Resume a run","href":"/models/runs/resuming"},{"title":"Rewind a run","href":"/models/runs/rewind"},{"title":"Pin and compare runs","href":"/models/runs/compare-runs"},{"title":"Organize runs","href":"/models/runs/grouping"},{"title":"Filter runs","href":"/models/runs/filter-runs"},{"title":"Search runs","href":"/models/runs/search-runs"},{"title":"Stop runs","href":"/models/runs/stop-runs"},{"title":"Delete runs","href":"/models/runs/delete-runs"},{"title":"Add labels to runs with tags","href":"/models/runs/tags"},{"title":"Move a run to a different project or team","href":"/models/runs/manage-runs"},{"title":"Customize run colors","href":"/models/runs/run-colors"},{"title":"Semantic run plot legends","href":"/models/runs/color-code-runs"},{"title":"Send an alert","href":"/models/runs/alert"},{"title":"Visualize CoreWeave infrastructure alerts","href":"/models/runs/infrastructure-alerts"}]},{"group":"Log objects and media","pages":[{"title":"Overview","href":"/models/track/log"},{"title":"Create and track plots from experiments","href":"/models/track/log/plots"},{"title":"Customize log axes","href":"/models/track/log/customize-logging-axes"},{"title":"Log distributed training experiments","href":"/models/track/log/distributed-training"},{"title":"Log media and objects","href":"/models/track/log/media"},{"title":"Log models","href":"/models/track/log/log-models"},{"title":"Log summary metrics","href":"/models/track/log/log-summary"},{"title":"Log tables","href":"/models/track/log/log-tables"},{"title":"Track CSV files with experiments","href":"/models/track/log/working-with-csv"}]},{"title":"Track Jupyter notebooks","href":"/models/track/jupyter"},{"title":"Logging at scale and performance","href":"/models/track/limits"},{"title":"Reproduce experiments","href":"/models/track/reproduce_experiments"},{"title":"Export and update data","href":"/models/track/public-api-guide"},{"title":"Environment variables","href":"/models/track/environment-variables"}]},{"group":"Sweeps","pages":[{"title":"Sweeps overview","href":"/models/sweeps"},{"title":"Tutorial: Define, initialize, and run a sweep","href":"/models/sweeps/walkthrough"},{"title":"Add W\u0026B (wandb) to your code","href":"/models/sweeps/add-w-and-b-to-your-code"},{"group":"Define a sweep configuration","pages":[{"title":"Overview","href":"/models/sweeps/define-sweep-configuration"},{"title":"Sweep configuration options","href":"/models/sweeps/sweep-config-keys"}]},{"title":"Initialize a sweep","href":"/models/sweeps/initialize-sweeps"},{"title":"Start a sweep agent","href":"/models/sweeps/start-sweep-agents"},{"title":"Parallelize agents","href":"/models/sweeps/parallelize-agents"},{"title":"Visualize sweep results","href":"/models/sweeps/visualize-sweep-results"},{"title":"Manage sweeps","href":"/models/sweeps/pause-resume-and-cancel-sweeps"},{"title":"Signal handling and sweep runs","href":"/models/sweeps/signal-handling-sweep-runs"},{"description":"Find links to academic papers, example reports, tutorials, and the Sweeps GitHub repository for further learning.","title":"Learn more about sweeps","href":"/models/sweeps/useful-resources"},{"title":"Manage algorithms locally","href":"/models/sweeps/local-controller"},{"description":"Troubleshoot common sweep issues including CommError, CUDA out of memory, and wandb agent failures.","title":"Sweeps troubleshooting","href":"/models/sweeps/troubleshoot-sweeps"},{"title":"Tutorial: Create sweep job from project","href":"/models/sweeps/existing-project"}]},{"group":"Eval Tables","tag":"Preview","pages":[{"title":"Overview","href":"/models/evaltables"},{"title":"Create an Eval Table","href":"/models/evaltables/create-an-evaluation-table"},{"title":"View Eval Tables","href":"/models/evaltables/visualize-evaluation-tables"},{"title":"Compare runs with Eval Tables","href":"/models/evaltables/compare-runs"}]},{"group":"Tables","pages":[{"title":"Tables overview","href":"/models/tables"},{"title":"Tutorial: Log tables, visualize and query data","href":"/models/tables/tables-walkthrough"},{"title":"Log tables","href":"/models/tables/log_tables"},{"title":"Visualize and analyze tables","href":"/models/tables/visualize-tables"},{"title":"Example tables","href":"/models/tables/tables-gallery"},{"title":"Export table data","href":"/models/tables/tables-download"}]},{"group":"Artifacts","pages":[{"title":"Artifacts overview","href":"/models/artifacts"},{"title":"Create an artifact","href":"/models/artifacts/construct-an-artifact"},{"title":"Download and use artifacts","href":"/models/artifacts/download-and-use-an-artifact"},{"title":"Update an artifact","href":"/models/artifacts/update-an-artifact"},{"title":"Create an artifact alias","href":"/models/artifacts/create-a-custom-alias"},{"title":"Create an artifact version","href":"/models/artifacts/create-a-new-artifact-version"},{"title":"Track external files","href":"/models/artifacts/track-external-files"},{"group":"Manage data","pages":[{"title":"Delete an artifact","href":"/models/artifacts/delete-artifacts"},{"title":"Manage artifact data retention","href":"/models/artifacts/ttl"},{"title":"Manage artifact storage and memory allocation","href":"/models/artifacts/storage"}]},{"title":"Explore artifact lineage graphs","href":"/models/artifacts/explore-and-traverse-an-artifact-graph"},{"title":"Artifact data privacy and compliance","href":"/models/artifacts/data-privacy-and-compliance"},{"title":"Tutorial: Create, track, and use a dataset artifact","href":"/models/artifacts/artifacts-walkthrough"}]},{"group":"Registry","pages":[{"title":"Registry overview","href":"/models/registry"},{"title":"Create a registry","href":"/models/registry/create_registry"},{"title":"Configure registry access","href":"/models/registry/configure_registry"},{"title":"Create a collection","href":"/models/registry/create_collection"},{"title":"Link an artifact version to a collection","href":"/models/registry/link_version"},{"title":"Link a Weave prompt to a collection","href":"/models/registry/link_prompt"},{"title":"Reference an artifact version with aliases","href":"/models/registry/aliases"},{"title":"Download an artifact from a registry","href":"/models/registry/download_use_artifact"},{"title":"Find registry items","href":"/models/registry/search_registry"},{"title":"Organize versions with tags","href":"/models/registry/organize-with-tags"},{"title":"Annotate collections","href":"/models/registry/registry_cards"},{"title":"Lineage graphs and audit history","href":"/models/registry/lineage"},{"title":"Delete registry","href":"/models/registry/delete_registry"}]},{"group":"Reports","pages":[{"title":"Reports overview","href":"/models/reports"},{"title":"Create a report","href":"/models/reports/create-a-report"},{"title":"Edit a report","href":"/models/reports/edit-a-report"},{"title":"Collaborate on reports","href":"/models/reports/collaborate-on-reports"},{"title":"Clone and export reports","href":"/models/reports/clone-and-export-reports"},{"title":"Embed a report","href":"/models/reports/embed-reports"},{"title":"Compare runs across projects","href":"/models/reports/cross-project-reports"},{"title":"Example reports","href":"/models/reports/reports-gallery"}]},{"group":"Notebooks","pages":[{"title":"Notebooks overview","href":"/models/notebooks"},{"title":"Get started","href":"/models/notebooks/get-started"},{"title":"Reactive execution in notebooks","href":"/models/notebooks/reactive-info"},{"title":"Create and manage notebooks","href":"/models/notebooks/create-notebook"},{"title":"Edit a notebook","href":"/models/notebooks/edit-notebook"},{"title":"Run notebook cells","href":"/models/notebooks/run-notebook-cells"},{"title":"Manage packages","href":"/models/notebooks/manage-packages-environments"},{"title":"Work with data files","href":"/models/notebooks/data-files"},{"title":"Configure a notebook","href":"/models/notebooks/configure-notebook"},{"title":"Developer tools","href":"/models/notebooks/developer-tools"}]},{"group":"Automations","pages":[{"title":"Automations overview","sidebarTitle":"Overview","href":"/models/automations"},{"group":"Create an automation","pages":[{"title":"Overview","href":"/models/automations/create-automations"},{"title":"Create a Slack automation","href":"/models/automations/create-automations/slack"},{"title":"Create a webhook automation","href":"/models/automations/create-automations/webhook"},{"title":"Use automations with ARIA","href":"/models/automations/create-automations/aria"}]},{"group":"Tutorials","pages":[{"title":"Automation tutorial overview","sidebarTitle":"Overview","href":"/models/automations/tutorial"},{"title":"Tutorial: Project run-failure alert automation","href":"/models/automations/project-automation-tutorial"},{"title":"Tutorial: Registry artifact alias automation","href":"/models/automations/registry-automation-tutorial"}]},{"title":"View an automation's history","href":"/models/automations/view-automation-history"},{"title":"Automation events and scopes","href":"/models/automations/automation-events"},{"title":"Manage automations with the API","href":"/models/automations/api"}]},{"group":"W\u0026B App UI","pages":[{"title":"Manage workspace, section, and panel settings","href":"/models/app/features/cascade-settings"},{"group":"Panels","pages":[{"title":"Panels","sidebarTitle":"Overview","href":"/models/app/features/panels"},{"group":"Line plots","pages":[{"title":"Line plots overview","href":"/models/app/features/panels/line-plot"},{"title":"Line plot reference","href":"/models/app/features/panels/line-plot/reference"},{"title":"Point aggregation","href":"/models/app/features/panels/line-plot/sampling"},{"title":"Smooth line plots","href":"/models/app/features/panels/line-plot/smoothing"}]},{"title":"Bar plots","href":"/models/app/features/panels/bar-plot"},{"title":"Parallel coordinates","href":"/models/app/features/panels/parallel-coordinates"},{"title":"Scatter plots","href":"/models/app/features/panels/scatter-plot"},{"title":"Media panels","href":"/models/app/features/panels/media"},{"title":"Save and diff code","href":"/models/app/features/panels/code"},{"title":"Parameter importance","href":"/models/app/features/panels/parameter-importance"},{"title":"Compare run metrics","href":"/models/app/features/panels/run-comparer"},{"group":"Query panels","pages":[{"title":"Query panels overview","href":"/models/app/features/panels/query-panels"},{"title":"Embed objects","href":"/models/app/features/panels/query-panels/embedding-projector"}]}]},{"group":"Custom charts","pages":[{"title":"Custom charts overview","href":"/models/app/features/custom-charts"},{"title":"Tutorial: Use custom charts","href":"/models/app/features/custom-charts/walkthrough"}]},{"title":"LEET terminal UI","href":"/models/app/leet-tui"},{"title":"Console logs","href":"/models/app/console-logs"},{"title":"Keyboard shortcuts","href":"/models/app/keyboard-shortcuts"}]}]},{"group":"Integrations","pages":[{"title":"Integrations overview","href":"/models/integrations"},{"title":"Add W\u0026B to a Python library","href":"/models/integrations/add-wandb-to-any-library"},{"group":"ML Frameworks and Libraries","pages":[{"group":"ML Frameworks","pages":[{"title":"Keras","href":"/models/integrations/keras"},{"title":"PyTorch","href":"/models/integrations/pytorch"},{"title":"PyTorch Lightning","href":"/models/integrations/lightning"},{"title":"PyTorch Ignite","href":"/models/integrations/ignite"},{"title":"TensorFlow","href":"/models/integrations/tensorflow"},{"title":"XGBoost","href":"/models/integrations/xgboost"}]},{"group":"ML Libraries","pages":[{"title":"Hugging Face","href":"/models/integrations/huggingface"},{"title":"Hugging Face Accelerate","href":"/models/integrations/accelerate"},{"title":"Hugging Face Diffusers","href":"/models/integrations/diffusers"},{"title":"Hugging Face Simple Transformers","href":"/models/integrations/simpletransformers"},{"title":"Hugging Face Transformers","href":"/models/integrations/huggingface_transformers"},{"title":"OpenAI Gym","href":"/models/integrations/openai-gym"},{"title":"PyTorch Geometric","href":"/models/integrations/pytorch-geometric"},{"title":"PyTorch torchtune","href":"/models/integrations/torchtune"}]}]},{"group":"Cloud Platforms","pages":[{"title":"Azure OpenAI fine-tuning","href":"/models/integrations/azure-openai-fine-tuning"},{"title":"OpenAI fine-tuning","href":"/models/integrations/openai-fine-tuning"},{"title":"OpenAI API","href":"/models/integrations/openai-api"}]},{"group":"Other","pages":[{"title":"Hydra","href":"/models/integrations/hydra"},{"title":"YOLOX","href":"/models/integrations/yolox"},{"title":"YOLOv5","href":"/models/integrations/yolov5"}]}]},{"group":"Reference","pages":[{"title":"Python SDK","url":"/models/ref/python","href":"/models/ref-link-python"},{"title":"CLI","url":"/models/ref/cli","href":"/models/ref-link-cli"},{"title":"Query Expression Language","url":"/models/ref/query-panel","href":"/models/ref-link-query-panel"},{"title":"Reports and Workspaces API","url":"/models/ref/wandb_workspaces/reports","href":"/models/ref-link-workspaces"}]},{"title":"Support: Models","url":"/support/models","href":"/models/support-models"}]},{"item":"W\u0026B Weave","pages":[{"title":"W\u0026B Weave","href":"/weave"}]},{"item":"Serverless Inference","pages":[{"title":"Serverless Inference","href":"/inference"}]},{"item":"Serverless Training","pages":[{"title":"Serverless Training","href":"/serverless-training"}]},{"item":"Serverless Sandboxes","pages":[{"title":"Serverless Sandboxes","href":"/sandboxes"}]}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/get-started"}]},{"tab":"Reference","pages":[{"title":"Reference","href":"/reference"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes"}]},{"tab":"Support","menu":[{"item":"Support Home","pages":[{"title":"Support Home","href":"/support"}]},{"item":"W\u0026B Models","pages":[{"title":"W\u0026B Models","href":"/support/models"}]},{"item":"W\u0026B Weave","pages":[{"title":"W\u0026B Weave","href":"/support/weave"}]},{"item":"Serverless Inference","pages":[{"title":"Serverless Inference","href":"/support/inference"}]}],"pages":[{"title":"Support","href":"/support"}]},{"tab":"W\u0026B Launch","hidden":true,"pages":[{"title":"W\u0026B Launch","href":"/platform/launch"}]},{"tab":"Support: W\u0026B Models","hidden":true,"pages":[{"title":"Support: W\u0026B Models","href":"/support/models"}]},{"tab":"Support: W\u0026B Weave","hidden":true,"pages":[{"title":"Support: W\u0026B Weave","href":"/support/weave"}]},{"tab":"Support: W\u0026B Inference","hidden":true,"pages":[{"title":"Support: W\u0026B Inference","href":"/support/inference"}]}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/models/sweeps/local-controller"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/models/sweeps/local-controller"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/models/sweeps/local-controller"}]}]},"basePath":"","title":"Manage algorithms locally - Weights \u0026 Biases Documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["10e4515597"],"chunks":["BannerMarkdown-CVKwuln2.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}