import{s as it,n as st,o as pt}from"../chunks/scheduler.defa9a21.js";import{S as ct,i as dt,g as i,s as r,r as p,A as mt,h as s,f as t,c as n,j as _,u as c,x as v,k as h,y as o,a as l,v as d,d as m,t as g,w as u}from"../chunks/index.fe795e71.js";import{D as b}from"../chunks/Docstring.04de659d.js";import{H as N,E as gt}from"../chunks/getInferenceSnippets.32954405.js";function ut(Ue){let D,ce,se,de,W,me,T,ge,k,ue,S,I,Me,K,Ke="Returns the currently active DeepSpeedPlugin.",fe,f,L,Ve,X,Xe="This plugin is used to integrate DeepSpeed.",Re,P,M,Ae,Y,Ye="Process the DeepSpeed config with the values from the kwargs.",qe,O,V,Fe,ee,et="Sets the HfDeepSpeedWeakref to use the current deepspeed plugin configuration",_e,x,R,Ze,te,tt=`Dummy scheduler presents model parameters or param groups, this is primarily used to follow conventional training loop when scheduler config is specified in the deepspeed config file.`,he,A,$e,$,q,je,ae,at="Internal wrapper for deepspeed.runtime.engine.DeepSpeedEngine. This is used to follow conventional training loop.",He,C,F,Be,re,rt="Get the global gradient norm from DeepSpeed engine.",ve,Z,be,w,j,Ge,ne,nt="Internal wrapper around a deepspeed optimizer.",De,H,Se,y,B,Je,oe,ot="Internal wrapper around a deepspeed scheduler.",xe,G,we,z,J,Qe,le,lt=`Dummy optimizer presents model parameters or param groups, this is primarily used to follow conventional training loop when optimizer config is specified in the deepspeed config file.`,ye,Q,ze,U,Pe,pe,Oe;return W=new N({props:{title:"DeepSpeed utilities",local:"deepspeed-utilities",headingTag:"h1"}}),T=new N({props:{title:"DeepSpeedPlugin",local:"deepspeedplugin",headingTag:"h2"}}),k=new N({props:{title:"get_active_deepspeed_plugin",local:"accelerate.utils.get_active_deepspeed_plugin",headingTag:"h2"}}),I=new b({props:{name:"accelerate.utils.get_active_deepspeed_plugin",anchor:"accelerate.utils.get_active_deepspeed_plugin",parameters:[{name:"state",val:""}],source:"https://github.com/huggingface/accelerate/blob/main/src/accelerate/utils/deepspeed.py#L100",raiseDescription:`