1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1653],{84886(e,t,r){r.r(t),r.d(t,{assets:()=>a,contentTitle:()=>d,default:()=>u,frontMatter:()=>o,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"upgrades/1.0_to_1.1/defaults_list_override","title":"Defaults List Overrides","description":"Hydra versions prior to 1.1 supported overriding of Hydra config groups via the Defaults List in this manner:","source":"@site/docs/upgrades/1.0_to_1.1/defaults_list_override.md","sourceDirName":"upgrades/1.0_to_1.1","slug":"/upgrades/1.0_to_1.1/defaults_list_override","permalink":"/docs/upgrades/1.0_to_1.1/defaults_list_override","draft":false,"unlisted":false,"editUrl":"https://github.com/hydra-ecosystem/hydra/edit/main/website/docs/upgrades/1.0_to_1.1/defaults_list_override.md","tags":[],"version":"current","frontMatter":{"id":"defaults_list_override","title":"Defaults List Overrides"},"sidebar":"docs","previous":{"title":"Changes to default composition order","permalink":"/docs/upgrades/1.0_to_1.1/default_composition_order"},"next":{"title":"Defaults List interpolation","permalink":"/docs/upgrades/1.0_to_1.1/defaults_list_interpolation"}}');var i=r(11684),n=r(32435);const o={id:"defaults_list_override",title:"Defaults List Overrides"},d=void 0,a={},l=[];function c(e){const t={a:"a",admonition:"admonition",code:"code",p:"p",pre:"pre",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.p,{children:"Hydra versions prior to 1.1 supported overriding of Hydra config groups via the Defaults List in this manner:"}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-yaml",metastring:"{3}",children:"defaults:\n - model: resnet50\n - hydra/launcher: submitit\n"})}),"\n",(0,i.jsxs)(t.p,{children:["As of Hydra 1.1, Config group overrides must be marked explicitly with the ",(0,i.jsx)(t.code,{children:"override"})," keyword:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-yaml",metastring:"{3}",children:"defaults:\n - model: resnet50\n - override hydra/launcher: submitit\n"})}),"\n",(0,i.jsxs)(t.p,{children:["The Defaults List is described ",(0,i.jsx)(t.a,{href:"/docs/advanced/defaults_list",children:"here"}),"."]}),"\n",(0,i.jsx)(t.admonition,{type:"warning",children:(0,i.jsxs)(t.p,{children:["Omitting the ",(0,i.jsx)(t.code,{children:"override"})," keyword when overriding Hydra's config groups will result in an error in Hydra 1.2"]}
1)})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(c,{...e})}):c(e)}},32435(e,t,r){r.d(t,{R:()=>o,x:()=>d});var s=r(12888);const i={},n=s.createContext(i);function o(e){const t=s.useContext(n);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(n.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.