import{s as Ys,n as Vs,o as As}from"../chunks/scheduler.56730f09.js";import{S as Qs,i as ks,g as p,s as e,r as y,A as Rs,h as M,f as l,c as n,j as Bs,u as r,x as i,k as vs,y as xs,a as t,v as J,d as m,t as c,w as T}from"../chunks/index.1f144517.js";import{C as U}from"../chunks/CodeBlock.738eeccb.js";import{H as hs}from"../chunks/Heading.57d46534.js";function Gs(ws){let o,H,G,S,j,z,h,us="🤗 Transformers에서는 🤗 Transformers 모델을 학습시키는데 최적화된 <code>Trainer</code> 클래스를 제공하기 때문에, 사용자는 직접 훈련 루프를 작성할 필요 없이 더욱 간편하게 학습을 시킬 수 있습니다. 또한, <code>Trainer</code>는 하이퍼파라미터 탐색을 위한 API를 제공합니다. 이 문서에서 이 API를 활용하는 방법을 예시와 함께 보여드리겠습니다.",F,w,E,u,Is=`<code>Trainer</code>는 현재 아래 4가지 하이퍼파라미터 탐색 백엔드를 지원합니다:
<a href="https://optuna.org/" rel="nofollow">optuna</a>와 <a href="https://sigopt.com/" rel="nofollow">sigopt</a>, <a href="https://docs.ray.io/en/latest/tune/index.html" rel="nofollow">raytune</a>, <a href="https://wandb.ai/site/sweeps" rel="nofollow">wandb</a> 입니다.`,D,I,ds="하이퍼파라미터 탐색 백엔드로 사용하기 전에 아래의 명령어를 사용하여 라이브러리들을 설치하세요.",L,d,P,C,K,f,Cs="하이퍼파라미터 탐색 공간을 정의하세요. 하이퍼파라미터 탐색 백엔드마다 서로 다른 형식이 필요합니다.",O,b,fs='sigopt의 경우, 해당 <a href="https://docs.sigopt.com/ai-module-api-references/api_reference/objects/object_parameter" rel="nofollow">object_parameter</a> 문서를 참조하여 아래와 같이 작성하세요:',ss,g,as,_,bs='optuna의 경우, 해당 <a href="https://optuna.readthedocs.io/en/stable/tutorial/10_key_features/002_configurations.html#sphx-glr-tutorial-10-key-features-002-configurations-py" rel="nofollow">object_parameter</a> 문서를 참조하여 아래와 같이 작성하세요:',ls,q,ts,$,gs='raytune의 경우, 해당 <a href="https://docs.ray.io/en/latest/tune/api/search_space.html" rel="nofollow">object_parameter</a> 문서를 참조하여 아래와 같이 작성하세요:',es,W,ns,X,_s='wandb의 경우, 해당 <a href="https://docs.wandb.ai/guides/sweeps/configuration" rel="nofollow">object_parameter</a> 문서를 참조하여 아래와 같이 작성하세요:',ps,Z,Ms,B,qs="<code>model_init</code> 함수를 정의하고 이를 <code>Trainer</code>에 전달하세요. 아래는 그 예시입니다.",is,v,ys,Y,$s="아래와 같이 <code>model_init</code> 함수, 훈련 인수, 훈련 및 테스트 데이터셋, 그리고 평가 함수를 사용하여 <code>Trainer</code>를 생성하세요:",rs,V,Js,A,Ws="하이퍼파라미터 탐색을 호출하고, 최적의 시험 매개변수를 가져오세요. 백엔드는 <code>&quot;optuna&quot;</code>/<code>&quot;sigopt&quot;</code>/<code>&quot;wandb&quot;</code>/<code>&quot;ray&quot;</code> 중에서 선택할 수 있습니다. 방향은 <code>&quot;minimize&quot;</code> 또는 <code>&quot;maximize&quot;</code> 중 선택하며, 목표를 최소화할 것인지 최대화할 것인지를 결정합니다.",ms,Q,Xs="자신만의 compute_objective 함수를 정의할 수 있습니다. 만약 이 함수를 정의하지 않으면, 기본 compute_objective가 호출되고, f1과 같은 평가 지표의 합이 목푯값으로 반환됩니다.",cs,k,Ts,R,os,x,Zs="현재, DDP(Distributed Data Parallelism; 분산 데이터 병렬처리)를 위한 하이퍼파라미터 탐색은 optuna와 sigopt에서 가능합니다. 최상위 프로세스가 하이퍼파라미터 탐색 과정을 시작하고 그 결과를 다른 프로세스에 전달합니다.",Us,N,js;return j=new hs({props:{title:"Trainer API를 사용한 하이퍼파라미터 탐색",local:"hyperparameter-search-using-trainer-api",headingTag:"h1"}}),w=new hs({props:{title:"하이퍼파라미터 탐색 백엔드",local:"hyperparameter-search-backend",headingTag:"h2"}}),d=new U({props:{code:"cGlwJTIwaW5zdGFsbCUyMG9wdHVuYSUyRnNpZ29wdCUyRndhbmRiJTJGcmF5JTVCdHVuZSU1RCUyMA==",highlighted:"pip install optuna/sigopt/wandb/ray[tune] ",wrap:!1}}),C=new hs({props:{title:"예제에서 하이퍼파라미터 탐색을 활성화하는 방법",local:"how-to-enable-hyperparameter-search-in-example",headingTag:"h2"}}),g=new U({props:{code:"ZGVmJTIwc2lnb3B0X2hwX3NwYWNlKHRyaWFsKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3QiUyMmJvdW5kcyUyMiUzQSUyMCU3QiUyMm1pbiUyMiUzQSUyMDFlLTYlMkMlMjAlMjJtYXglMjIlM0ElMjAxZS00JTdEJTJDJTIwJTIybmFtZSUyMiUzQSUyMCUyMmxlYXJuaW5nX3JhdGUlMjIlMkMlMjAlMjJ0eXBlJTIyJTNBJTIwJTIyZG91YmxlJTIyJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyY2F0ZWdvcmljYWxfdmFsdWVzJTIyJTNBJTIwJTVCJTIyMTYlMjIlMkMlMjAlMjIzMiUyMiUyQyUyMCUyMjY0JTIyJTJDJTIwJTIyMTI4JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybmFtZSUyMiUzQSUyMCUyMnBlcl9kZXZpY2VfdHJhaW5fYmF0Y2hfc2l6ZSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnR5cGUlMjIlM0ElMjAlMjJjYXRlZ29yaWNhbCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUyQyUwQSUyMCUyMCUyMCUyMCU1RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">sigopt_hp_space</span>(<span class="hljs-params">trial</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> [
<span class="hljs-meta">... </span>        {<span class="hljs-string">&quot;bounds&quot;</span>: {<span class="hljs-string">&quot;min&quot;</span>: <span class="hljs-number">1e-6</span>, <span class="hljs-string">&quot;max&quot;</span>: <span class="hljs-number">1e-4</span>}, <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;learning_rate&quot;</span>, <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;double&quot;</span>},
<span class="hljs-meta">... </span>        {
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;categorical_values&quot;</span>: [<span class="hljs-string">&quot;16&quot;</span>, <span class="hljs-string">&quot;32&quot;</span>, <span class="hljs-string">&quot;64&quot;</span>, <span class="hljs-string">&quot;128&quot;</span>],
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;per_device_train_batch_size&quot;</span>,
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;categorical&quot;</span>,
<span class="hljs-meta">... </span>        },
<span class="hljs-meta">... </span>    ]`,wrap:!1}}),q=new U({props:{code:"ZGVmJTIwb3B0dW5hX2hwX3NwYWNlKHRyaWFsKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxlYXJuaW5nX3JhdGUlMjIlM0ElMjB0cmlhbC5zdWdnZXN0X2Zsb2F0KCUyMmxlYXJuaW5nX3JhdGUlMjIlMkMlMjAxZS02JTJDJTIwMWUtNCUyQyUyMGxvZyUzRFRydWUpJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIycGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIyJTNBJTIwdHJpYWwuc3VnZ2VzdF9jYXRlZ29yaWNhbCglMjJwZXJfZGV2aWNlX3RyYWluX2JhdGNoX3NpemUlMjIlMkMlMjAlNUIxNiUyQyUyMDMyJTJDJTIwNjQlMkMlMjAxMjglNUQpJTJDJTBBJTIwJTIwJTIwJTIwJTdE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">optuna_hp_space</span>(<span class="hljs-params">trial</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;learning_rate&quot;</span>: trial.suggest_float(<span class="hljs-string">&quot;learning_rate&quot;</span>, <span class="hljs-number">1e-6</span>, <span class="hljs-number">1e-4</span>, log=<span class="hljs-literal">True</span>),
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;per_device_train_batch_size&quot;</span>: trial.suggest_categorical(<span class="hljs-string">&quot;per_device_train_batch_size&quot;</span>, [<span class="hljs-number">16</span>, <span class="hljs-number">32</span>, <span class="hljs-number">64</span>, <span class="hljs-number">128</span>]),
<span class="hljs-meta">... </span>    }`,wrap:!1}}),W=new U({props:{code:"ZGVmJTIwcmF5X2hwX3NwYWNlKHRyaWFsKSUzQSUwQSUyMCUyMCUyMCUyMHJldHVybiUyMCU3QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMmxlYXJuaW5nX3JhdGUlMjIlM0ElMjB0dW5lLmxvZ3VuaWZvcm0oMWUtNiUyQyUyMDFlLTQpJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIycGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIyJTNBJTIwdHVuZS5jaG9pY2UoJTVCMTYlMkMlMjAzMiUyQyUyMDY0JTJDJTIwMTI4JTVEKSUyQyUwQSUyMCUyMCUyMCUyMCU3RA==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">ray_hp_space</span>(<span class="hljs-params">trial</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;learning_rate&quot;</span>: tune.loguniform(<span class="hljs-number">1e-6</span>, <span class="hljs-number">1e-4</span>),
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;per_device_train_batch_size&quot;</span>: tune.choice([<span class="hljs-number">16</span>, <span class="hljs-number">32</span>, <span class="hljs-number">64</span>, <span class="hljs-number">128</span>]),
<span class="hljs-meta">... </span>    }`,wrap:!1}}),Z=new U({props:{code:"ZGVmJTIwd2FuZGJfaHBfc3BhY2UodHJpYWwpJTNBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybWV0aG9kJTIyJTNBJTIwJTIycmFuZG9tJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIybWV0cmljJTIyJTNBJTIwJTdCJTIybmFtZSUyMiUzQSUyMCUyMm9iamVjdGl2ZSUyMiUyQyUyMCUyMmdvYWwlMjIlM0ElMjAlMjJtaW5pbWl6ZSUyMiU3RCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnBhcmFtZXRlcnMlMjIlM0ElMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJsZWFybmluZ19yYXRlJTIyJTNBJTIwJTdCJTIyZGlzdHJpYnV0aW9uJTIyJTNBJTIwJTIydW5pZm9ybSUyMiUyQyUyMCUyMm1pbiUyMiUzQSUyMDFlLTYlMkMlMjAlMjJtYXglMjIlM0ElMjAxZS00JTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIycGVyX2RldmljZV90cmFpbl9iYXRjaF9zaXplJTIyJTNBJTIwJTdCJTIydmFsdWVzJTIyJTNBJTIwJTVCMTYlMkMlMjAzMiUyQyUyMDY0JTJDJTIwMTI4JTVEJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTIwJTIwJTdE",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">wandb_hp_space</span>(<span class="hljs-params">trial</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> {
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;method&quot;</span>: <span class="hljs-string">&quot;random&quot;</span>,
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;metric&quot;</span>: {<span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;objective&quot;</span>, <span class="hljs-string">&quot;goal&quot;</span>: <span class="hljs-string">&quot;minimize&quot;</span>},
<span class="hljs-meta">... </span>        <span class="hljs-string">&quot;parameters&quot;</span>: {
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;learning_rate&quot;</span>: {<span class="hljs-string">&quot;distribution&quot;</span>: <span class="hljs-string">&quot;uniform&quot;</span>, <span class="hljs-string">&quot;min&quot;</span>: <span class="hljs-number">1e-6</span>, <span class="hljs-string">&quot;max&quot;</span>: <span class="hljs-number">1e-4</span>},
<span class="hljs-meta">... </span>            <span class="hljs-string">&quot;per_device_train_batch_size&quot;</span>: {<span class="hljs-string">&quot;values&quot;</span>: [<span class="hljs-number">16</span>, <span class="hljs-number">32</span>, <span class="hljs-number">64</span>, <span class="hljs-number">128</span>]},
<span class="hljs-meta">... </span>        },
<span class="hljs-meta">... </span>    }`,wrap:!1}}),v=new U({props:{code:"ZGVmJTIwbW9kZWxfaW5pdCh0cmlhbCklM0ElMEElMjAlMjAlMjAlMjByZXR1cm4lMjBBdXRvTW9kZWxGb3JTZXF1ZW5jZUNsYXNzaWZpY2F0aW9uLmZyb21fcHJldHJhaW5lZCglMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBtb2RlbF9hcmdzLm1vZGVsX25hbWVfb3JfcGF0aCUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGZyb21fdGYlM0Rib29sKCUyMi5ja3B0JTIyJTIwaW4lMjBtb2RlbF9hcmdzLm1vZGVsX25hbWVfb3JfcGF0aCklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjb25maWclM0Rjb25maWclMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjYWNoZV9kaXIlM0Rtb2RlbF9hcmdzLmNhY2hlX2RpciUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHJldmlzaW9uJTNEbW9kZWxfYXJncy5tb2RlbF9yZXZpc2lvbiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMHRva2VuJTNEVHJ1ZSUyMGlmJTIwbW9kZWxfYXJncy51c2VfYXV0aF90b2tlbiUyMGVsc2UlMjBOb25lJTJDJTBBJTIwJTIwJTIwJTIwKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">def</span> <span class="hljs-title function_">model_init</span>(<span class="hljs-params">trial</span>):
<span class="hljs-meta">... </span>    <span class="hljs-keyword">return</span> AutoModelForSequenceClassification.from_pretrained(
<span class="hljs-meta">... </span>        model_args.model_name_or_path,
<span class="hljs-meta">... </span>        from_tf=<span class="hljs-built_in">bool</span>(<span class="hljs-string">&quot;.ckpt&quot;</span> <span class="hljs-keyword">in</span> model_args.model_name_or_path),
<span class="hljs-meta">... </span>        config=config,
<span class="hljs-meta">... </span>        cache_dir=model_args.cache_dir,
<span class="hljs-meta">... </span>        revision=model_args.model_revision,
<span class="hljs-meta">... </span>        token=<span class="hljs-literal">True</span> <span class="hljs-keyword">if</span> model_args.use_auth_token <span class="hljs-keyword">else</span> <span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>    )`,wrap:!1}}),V=new U({props:{code:"dHJhaW5lciUyMCUzRCUyMFRyYWluZXIoJTBBJTIwJTIwJTIwJTIwbW9kZWwlM0ROb25lJTJDJTBBJTIwJTIwJTIwJTIwYXJncyUzRHRyYWluaW5nX2FyZ3MlMkMlMEElMjAlMjAlMjAlMjB0cmFpbl9kYXRhc2V0JTNEc21hbGxfdHJhaW5fZGF0YXNldCUyQyUwQSUyMCUyMCUyMCUyMGV2YWxfZGF0YXNldCUzRHNtYWxsX2V2YWxfZGF0YXNldCUyQyUwQSUyMCUyMCUyMCUyMGNvbXB1dGVfbWV0cmljcyUzRGNvbXB1dGVfbWV0cmljcyUyQyUwQSUyMCUyMCUyMCUyMHRva2VuaXplciUzRHRva2VuaXplciUyQyUwQSUyMCUyMCUyMCUyMG1vZGVsX2luaXQlM0Rtb2RlbF9pbml0JTJDJTBBJTIwJTIwJTIwJTIwZGF0YV9jb2xsYXRvciUzRGRhdGFfY29sbGF0b3IlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>trainer = Trainer(
<span class="hljs-meta">... </span>    model=<span class="hljs-literal">None</span>,
<span class="hljs-meta">... </span>    args=training_args,
<span class="hljs-meta">... </span>    train_dataset=small_train_dataset,
<span class="hljs-meta">... </span>    eval_dataset=small_eval_dataset,
<span class="hljs-meta">... </span>    compute_metrics=compute_metrics,
<span class="hljs-meta">... </span>    tokenizer=tokenizer,
<span class="hljs-meta">... </span>    model_init=model_init,
<span class="hljs-meta">... </span>    data_collator=data_collator,
<span class="hljs-meta">... </span>)`,wrap:!1}}),k=new U({props:{code:"YmVzdF90cmlhbCUyMCUzRCUyMHRyYWluZXIuaHlwZXJwYXJhbWV0ZXJfc2VhcmNoKCUwQSUyMCUyMCUyMCUyMGRpcmVjdGlvbiUzRCUyMm1heGltaXplJTIyJTJDJTBBJTIwJTIwJTIwJTIwYmFja2VuZCUzRCUyMm9wdHVuYSUyMiUyQyUwQSUyMCUyMCUyMCUyMGhwX3NwYWNlJTNEb3B0dW5hX2hwX3NwYWNlJTJDJTBBJTIwJTIwJTIwJTIwbl90cmlhbHMlM0QyMCUyQyUwQSUyMCUyMCUyMCUyMGNvbXB1dGVfb2JqZWN0aXZlJTNEY29tcHV0ZV9vYmplY3RpdmUlMkMlMEEp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>best_trial = trainer.hyperparameter_search(
<span class="hljs-meta">... </span>    direction=<span class="hljs-string">&quot;maximize&quot;</span>,
<span class="hljs-meta">... </span>    backend=<span class="hljs-string">&quot;optuna&quot;</span>,
<span class="hljs-meta">... </span>    hp_space=optuna_hp_space,
<span class="hljs-meta">... </span>    n_trials=<span class="hljs-number">20</span>,
<span class="hljs-meta">... </span>    compute_objective=compute_objective,
<span class="hljs-meta">... </span>)`,wrap:!1}}),R=new hs({props:{title:"DDP 미세 조정을 위한 하이퍼파라미터 탐색",local:"hyperparameter-search-for-ddp-finetune",headingTag:"h2"}}),{c(){o=p("meta"),H=e(),G=p("p"),S=e(),y(j.$$.fragment),z=e(),h=p("p"),h.innerHTML=us,F=e(),y(w.$$.fragment),E=e(),u=p("p"),u.innerHTML=Is,D=e(),I=p("p"),I.textContent=ds,L=e(),y(d.$$.fragment),P=e(),y(C.$$.fragment),K=e(),f=p("p"),f.textContent=Cs,O=e(),b=p("p"),b.innerHTML=fs,ss=e(),y(g.$$.fragment),as=e(),_=p("p"),_.innerHTML=bs,ls=e(),y(q.$$.fragment),ts=e(),$=p("p"),$.innerHTML=gs,es=e(),y(W.$$.fragment),ns=e(),X=p("p"),X.innerHTML=_s,ps=e(),y(Z.$$.fragment),Ms=e(),B=p("p"),B.innerHTML=qs,is=e(),y(v.$$.fragment),ys=e(),Y=p("p"),Y.innerHTML=$s,rs=e(),y(V.$$.fragment),Js=e(),A=p("p"),A.innerHTML=Ws,ms=e(),Q=p("p"),Q.textContent=Xs,cs=e(),y(k.$$.fragment),Ts=e(),y(R.$$.fragment),os=e(),x=p("p"),x.textContent=Zs,Us=e(),N=p("p"),this.h()},l(s){const a=Rs("svelte-u9bgzb",document.head);o=M(a,"META",{name:!0,content:!0}),a.forEach(l),H=n(s),G=M(s,"P",{}),Bs(G).forEach(l),S=n(s),r(j.$$.fragment,s),z=n(s),h=M(s,"P",{"data-svelte-h":!0}),i(h)!=="svelte-1wpadea"&&(h.innerHTML=us),F=n(s),r(w.$$.fragment,s),E=n(s),u=M(s,"P",{"data-svelte-h":!0}),i(u)!=="svelte-14yr5bp"&&(u.innerHTML=Is),D=n(s),I=M(s,"P",{"data-svelte-h":!0}),i(I)!=="svelte-1n3obee"&&(I.textContent=ds),L=n(s),r(d.$$.fragment,s),P=n(s),r(C.$$.fragment,s),K=n(s),f=M(s,"P",{"data-svelte-h":!0}),i(f)!=="svelte-1aiezuq"&&(f.textContent=Cs),O=n(s),b=M(s,"P",{"data-svelte-h":!0}),i(b)!=="svelte-wifdo4"&&(b.innerHTML=fs),ss=n(s),r(g.$$.fragment,s),as=n(s),_=M(s,"P",{"data-svelte-h":!0}),i(_)!=="svelte-15tcz6x"&&(_.innerHTML=bs),ls=n(s),r(q.$$.fragment,s),ts=n(s),$=M(s,"P",{"data-svelte-h":!0}),i($)!=="svelte-1q8ydvq"&&($.innerHTML=gs),es=n(s),r(W.$$.fragment,s),ns=n(s),X=M(s,"P",{"data-svelte-h":!0}),i(X)!=="svelte-1a9peeq"&&(X.innerHTML=_s),ps=n(s),r(Z.$$.fragment,s),Ms=n(s),B=M(s,"P",{"data-svelte-h":!0}),i(B)!=="svelte-1q7kvtf"&&(B.innerHTML=qs),is=n(s),r(v.$$.fragment,s),ys=n(s),Y=M(s,"P",{"data-svelte-h":!0}),i(Y)!=="svelte-17wxp1q"&&(Y.innerHTML=$s),rs=n(s),r(V.$$.fragment,s),Js=n(s),A=M(s,"P",{"data-svelte-h":!0}),i(A)!=="svelte-ikq9mj"&&(A.innerHTML=Ws),ms=n(s),Q=M(s,"P",{"data-svelte-h":!0}),i(Q)!=="svelte-1k38imx"&&(Q.textContent=Xs),cs=n(s),r(k.$$.fragment,s),Ts=n(s),r(R.$$.fragment,s),os=n(s),x=M(s,"P",{"data-svelte-h":!0}),i(x)!=="svelte-13bo63v"&&(x.textContent=Zs),Us=n(s),N=M(s,"P",{}),Bs(N).forEach(l),this.h()},h(){vs(o,"name","hf:doc:metadata"),vs(o,"content",Ns)},m(s,a){xs(document.head,o),t(s,H,a),t(s,G,a),t(s,S,a),J(j,s,a),t(s,z,a),t(s,h,a),t(s,F,a),J(w,s,a),t(s,E,a),t(s,u,a),t(s,D,a),t(s,I,a),t(s,L,a),J(d,s,a),t(s,P,a),J(C,s,a),t(s,K,a),t(s,f,a),t(s,O,a),t(s,b,a),t(s,ss,a),J(g,s,a),t(s,as,a),t(s,_,a),t(s,ls,a),J(q,s,a),t(s,ts,a),t(s,$,a),t(s,es,a),J(W,s,a),t(s,ns,a),t(s,X,a),t(s,ps,a),J(Z,s,a),t(s,Ms,a),t(s,B,a),t(s,is,a),J(v,s,a),t(s,ys,a),t(s,Y,a),t(s,rs,a),J(V,s,a),t(s,Js,a),t(s,A,a),t(s,ms,a),t(s,Q,a),t(s,cs,a),J(k,s,a),t(s,Ts,a),J(R,s,a),t(s,os,a),t(s,x,a),t(s,Us,a),t(s,N,a),js=!0},p:Vs,i(s){js||(m(j.$$.fragment,s),m(w.$$.fragment,s),m(d.$$.fragment,s),m(C.$$.fragment,s),m(g.$$.fragment,s),m(q.$$.fragment,s),m(W.$$.fragment,s),m(Z.$$.fragment,s),m(v.$$.fragment,s),m(V.$$.fragment,s),m(k.$$.fragment,s),m(R.$$.fragment,s),js=!0)},o(s){c(j.$$.fragment,s),c(w.$$.fragment,s),c(d.$$.fragment,s),c(C.$$.fragment,s),c(g.$$.fragment,s),c(q.$$.fragment,s),c(W.$$.fragment,s),c(Z.$$.fragment,s),c(v.$$.fragment,s),c(V.$$.fragment,s),c(k.$$.fragment,s),c(R.$$.fragment,s),js=!1},d(s){s&&(l(H),l(G),l(S),l(z),l(h),l(F),l(E),l(u),l(D),l(I),l(L),l(P),l(K),l(f),l(O),l(b),l(ss),l(as),l(_),l(ls),l(ts),l($),l(es),l(ns),l(X),l(ps),l(Ms),l(B),l(is),l(ys),l(Y),l(rs),l(Js),l(A),l(ms),l(Q),l(cs),l(Ts),l(os),l(x),l(Us),l(N)),l(o),T(j,s),T(w,s),T(d,s),T(C,s),T(g,s),T(q,s),T(W,s),T(Z,s),T(v,s),T(V,s),T(k,s),T(R,s)}}}const Ns='{"title":"Trainer API를 사용한 하이퍼파라미터 탐색","local":"hyperparameter-search-using-trainer-api","sections":[{"title":"하이퍼파라미터 탐색 백엔드","local":"hyperparameter-search-backend","sections":[],"depth":2},{"title":"예제에서 하이퍼파라미터 탐색을 활성화하는 방법","local":"how-to-enable-hyperparameter-search-in-example","sections":[],"depth":2},{"title":"DDP 미세 조정을 위한 하이퍼파라미터 탐색","local":"hyperparameter-search-for-ddp-finetune","sections":[],"depth":2}],"depth":1}';function Hs(ws){return As(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ds extends Qs{constructor(o){super(),ks(this,o,Hs,Gs,Ys,{})}}export{Ds as component};
