import{s as Mn,o as Jn,n as ka}from"../chunks/scheduler.3a17fb72.js";import{S as Cn,i as In,e as n,s as a,c as p,h as Dn,a as r,d as l,b as s,f as b,g,j as h,k as y,l as e,m as $,n as c,t as m,o as d,p as u}from"../chunks/index.093f8863.js";import{C as Un,H as rt,E as qn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.27fc3733.js";import{D as k}from"../chunks/Docstring.1db8fe7a.js";import{C as xa}from"../chunks/CodeBlock.55ce9d10.js";import{E as ya}from"../chunks/ExampleCodeBlock.f4e484d4.js";function Nn(j){let f,x;return f=new xa({props:{code:"ZG9jJTIwJTNEJTIwRG9jKCUwQSUyMCUyMCUyMCUyMHF1ZXJ5JTNEJTIyV2hhdCUyMGlzJTIwdGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTNGJTIyJTJDJTBBJTIwJTIwJTIwJTIwY2hvaWNlcyUzRCU1QiUyMkxvbmRvbiUyMiUyQyUyMCUyMlBhcmlzJTIyJTJDJTIwJTIyQmVybGluJTIyJTJDJTIwJTIyTWFkcmlkJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwZ29sZF9pbmRleCUzRDElMkMlMjAlMjAlMjMlMjBQYXJpcyUyMGlzJTIwdGhlJTIwY29ycmVjdCUyMGFuc3dlciUwQSUyMCUyMCUyMCUyMGluc3RydWN0aW9uJTNEJTIyQW5zd2VyJTIwdGhlJTIwZm9sbG93aW5nJTIwZ2VvZ3JhcGh5JTIwcXVlc3Rpb24lM0ElMjIlMkMlMEEp",highlighted:`doc = Doc(
    query=<span class="hljs-string">&quot;What is the capital of France?&quot;</span>,
    choices=[<span class="hljs-string">&quot;London&quot;</span>, <span class="hljs-string">&quot;Paris&quot;</span>, <span class="hljs-string">&quot;Berlin&quot;</span>, <span class="hljs-string">&quot;Madrid&quot;</span>],
    gold_index=<span class="hljs-number">1</span>,  <span class="hljs-comment"># Paris is the correct answer</span>
    instruction=<span class="hljs-string">&quot;Answer the following geography question:&quot;</span>,
)`,wrap:!1}}),{c(){p(f.$$.fragment)},l(i){g(f.$$.fragment,i)},m(i,D){c(f,i,D),x=!0},p:ka,i(i){x||(m(f.$$.fragment,i),x=!0)},o(i){d(f.$$.fragment,i),x=!1},d(i){u(f,i)}}}function jn(j){let f,x;return f=new xa({props:{code:"ZG9jJTIwJTNEJTIwRG9jKCUwQSUyMCUyMCUyMCUyMHF1ZXJ5JTNEJTIyV3JpdGUlMjBhJTIwc2hvcnQlMjBzdG9yeSUyMGFib3V0JTIwYSUyMHJvYm90LiUyMiUyQyUwQSUyMCUyMCUyMCUyMGNob2ljZXMlM0QlNUIlNUQlMkMlMjAlMjAlMjMlMjBObyUyMHByZWRlZmluZWQlMjBjaG9pY2VzJTIwZm9yJTIwZ2VuZXJhdGl2ZSUyMHRhc2tzJTBBJTIwJTIwJTIwJTIwZ29sZF9pbmRleCUzRDAlMkMlMjAlMjAlMjMlMjBOb3QlMjB1c2VkJTIwZm9yJTIwZ2VuZXJhdGl2ZSUyMHRhc2tzJTBBJTIwJTIwJTIwJTIwZ2VuZXJhdGlvbl9zaXplJTNEMTAwJTJDJTBBJTIwJTIwJTIwJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjIlMEElMEFFbmQlMjIlNUQlMkMlMEEp",highlighted:`doc = Doc(
    query=<span class="hljs-string">&quot;Write a short story about a robot.&quot;</span>,
    choices=[],  <span class="hljs-comment"># No predefined choices for generative tasks</span>
    gold_index=<span class="hljs-number">0</span>,  <span class="hljs-comment"># Not used for generative tasks</span>
    generation_size=<span class="hljs-number">100</span>,
    stop_sequences=[<span class="hljs-string">&quot;

End&quot;</span>],
)`,wrap:!1}}),{c(){p(f.$$.fragment)},l(i){g(f.$$.fragment,i)},m(i,D){c(f,i,D),x=!0},p:ka,i(i){x||(m(f.$$.fragment,i),x=!0)},o(i){d(f.$$.fragment,i),x=!1},d(i){u(f,i)}}}function Ln(j){let f,x;return f=new xa({props:{code:"ZG9jJTIwJTNEJTIwRG9jKCUwQSUyMCUyMCUyMCUyMHF1ZXJ5JTNEJTIyVHJhbnNsYXRlJTIwJ0hlbGxvJTIwd29ybGQnJTIwdG8lMjBTcGFuaXNoLiUyMiUyQyUwQSUyMCUyMCUyMCUyMGNob2ljZXMlM0QlNUIlMjJIb2xhJTIwbXVuZG8lMjIlMkMlMjAlMjJCb25qb3VyJTIwbW9uZGUlMjIlMkMlMjAlMjJDaWFvJTIwbW9uZG8lMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBnb2xkX2luZGV4JTNEMCUyQyUwQSUyMCUyMCUyMCUyMGZld3Nob3Rfc2FtcGxlcyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMERvYyhxdWVyeSUzRCUyMlRyYW5zbGF0ZSUyMCdHb29kJTIwbW9ybmluZyclMjB0byUyMFNwYW5pc2guJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY2hvaWNlcyUzRCU1QiUyMkJ1ZW5vcyUyMGQlQzMlQURhcyUyMiUyQyUyMCUyMkJvbmpvdXIlMjIlMkMlMjAlMjJCdW9uZ2lvcm5vJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZ29sZF9pbmRleCUzRDApJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwRG9jKHF1ZXJ5JTNEJTIyVHJhbnNsYXRlJTIwJ1RoYW5rJTIweW91JyUyMHRvJTIwU3BhbmlzaC4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjaG9pY2VzJTNEJTVCJTIyR3JhY2lhcyUyMiUyQyUyMCUyMk1lcmNpJTIyJTJDJTIwJTIyR3JhemllJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZ29sZF9pbmRleCUzRDApJTBBJTIwJTIwJTIwJTIwJTVEJTJDJTBBKQ==",highlighted:`doc = Doc(
    query=<span class="hljs-string">&quot;Translate &#x27;Hello world&#x27; to Spanish.&quot;</span>,
    choices=[<span class="hljs-string">&quot;Hola mundo&quot;</span>, <span class="hljs-string">&quot;Bonjour monde&quot;</span>, <span class="hljs-string">&quot;Ciao mondo&quot;</span>],
    gold_index=<span class="hljs-number">0</span>,
    fewshot_samples=[
        Doc(query=<span class="hljs-string">&quot;Translate &#x27;Good morning&#x27; to Spanish.&quot;</span>,
            choices=[<span class="hljs-string">&quot;Buenos días&quot;</span>, <span class="hljs-string">&quot;Bonjour&quot;</span>, <span class="hljs-string">&quot;Buongiorno&quot;</span>],
            gold_index=<span class="hljs-number">0</span>),
        Doc(query=<span class="hljs-string">&quot;Translate &#x27;Thank you&#x27; to Spanish.&quot;</span>,
            choices=[<span class="hljs-string">&quot;Gracias&quot;</span>, <span class="hljs-string">&quot;Merci&quot;</span>, <span class="hljs-string">&quot;Grazie&quot;</span>],
            gold_index=<span class="hljs-number">0</span>)
    ],
)`,wrap:!1}}),{c(){p(f.$$.fragment)},l(i){g(f.$$.fragment,i)},m(i,D){c(f,i,D),x=!0},p:ka,i(i){x||(m(f.$$.fragment,i),x=!0)},o(i){d(f.$$.fragment,i),x=!1},d(i){u(f,i)}}}function Pn(j){let f,x;return f=new xa({props:{code:"ZG9jJTIwJTNEJTIwRG9jKCUwQSUyMCUyMCUyMCUyMHF1ZXJ5JTNEJTIyV2hhdCUyMGlzJTIwc2hvd24lMjBpbiUyMHRoaXMlMjBpbWFnZSUzRiUyMiUyQyUwQSUyMCUyMCUyMCUyMGNob2ljZXMlM0QlNUIlMjJBJTIwY2F0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwZ29sZF9pbmRleCUzRDAlMkMlMEElMjAlMjAlMjAlMjBpbWFnZXMlM0QlNUJwaWxfaW1hZ2UlNUQlMkMlMjAlMjAlMjMlMjBQSUwlMjBJbWFnZSUyMG9iamVjdCUwQSk=",highlighted:`doc = Doc(
    query=<span class="hljs-string">&quot;What is shown in this image?&quot;</span>,
    choices=[<span class="hljs-string">&quot;A cat&quot;</span>],
    gold_index=<span class="hljs-number">0</span>,
    images=[pil_image],  <span class="hljs-comment"># PIL Image object</span>
)`,wrap:!1}}),{c(){p(f.$$.fragment)},l(i){g(f.$$.fragment,i)},m(i,D){c(f,i,D),x=!0},p:ka,i(i){x||(m(f.$$.fragment,i),x=!0)},o(i){d(f.$$.fragment,i),x=!1},d(i){u(f,i)}}}function En(j){let f,x,i,D,lt,Re,ot,Be,it,Ve,pt,Ze,T,gt,Ta,zt,js="Configuration dataclass for a LightevalTask.",wa,St,Ls=`This class stores all the configuration parameters needed to define and run
an evaluation task, including dataset information, prompt formatting,
evaluation metrics, and generation parameters.`,Ma,Ht,Ps=`Dataset Configuration:
hf_revision (str | None, optional): Specific dataset revision to use.
Defaults to None (latest).
hf_filter (Callable[[dict], bool] | None, optional): Filter function to
apply to dataset items. Defaults to None.
hf_avail_splits (ListLike[str], optional): Available dataset splits.
Defaults to [“train”, “validation”, “test”].`,Ja,Wt,Es=`Evaluation Splits:
evaluation_splits (ListLike[str], optional): Dataset splits to use for
evaluation. Defaults to [“validation”].
few_shots_split (str | None, optional): Split to sample few-shot examples
from. Defaults to None.
few_shots_select (str | None, optional): Method for selecting few-shot
examples. Defaults to None.`,Ca,Xt,Gs=`Generation Parameters:
generation_size (int | None, optional): Maximum token length for generated
text. Defaults to None.
generation_grammar (TextGenerationInputGrammarType | None, optional): Grammar
for structured text generation. Only available for TGI and Inference
Endpoint models. Defaults to None.
stop_sequence (ListLike[str] | None, optional): Sequences that stop text
generation. Defaults to None.
num_samples (list[int] | None, optional): Number of samples to generate
per input. Defaults to None.`,Ia,Yt,Rs=`Task Configuration:
version (int, optional): Task version number. Increment when dataset or
prompt changes. Defaults to 0.
num_fewshots (int, optional): Number of few-shot examples to include.
Defaults to 0.
truncate_fewshots (bool, optional): Whether to truncate few-shot examples.
Defaults to False.
must_remove_duplicate_docs (bool, optional): Whether to remove duplicate
documents. Defaults to False.`,Da,Ot,Bs=`Document Tracking:
original_num_docs (int, optional): Total number of documents in the task.
Defaults to -1.
effective_num_docs (int, optional): Number of documents actually used
in evaluation. Defaults to -1.`,Fe,ct,Qe,w,mt,Ua,V,dt,qa,Kt,Vs=`Return a dict with metric name and its aggregation function for all
metrics`,Na,L,ut,ja,te,Zs="Worker function to download a dataset from the HuggingFace Hub.",La,ee,Fs=`Downloads the dataset specified in the task configuration, optionally
applies a filter if configured, and returns the dataset dictionary.
This method is designed to be used for parallel dataset loading.`,Pa,Z,ht,Ea,ae,Qs="Returns the evaluation documents.",Ga,F,ft,Ra,se,As=`Returns the few shot documents. If the few shot documents are not
available, it gets them from the few shot split or the evaluation split.`,Ba,P,vt,Va,ne,zs="Get evaluation documents with few-shot examples and generation parameters configured.",Za,re,Ss=`Retrieves evaluation documents, optionally limits the number of samples,
shuffles them for reproducibility, and configures each document with
few-shot examples and generation parameters for evaluation.`,Fa,Q,_t,Qa,le,Hs=`Parses the possible fewshot split keys in order: train, then validation
keys and matches them with the available keys.  Returns the first
available.`,Aa,A,$t,za,oe,Ws="Load datasets from the HuggingFace Hub for the given tasks.",Ae,bt,ze,q,yt,Sa,z,kt,Ha,ie,Xs="Prepare a prompt from a document, either using chat template or plain text format.",Wa,S,xt,Xa,pe,Ys=`Prepare a prompt for API calls, using a chat-like format.
Will not tokenize the message because APIs will usually handle this.`,Se,Tt,He,C,wt,Ya,ge,Os="The Registry class is used to manage the task registry and get task classes.",Oa,H,Mt,Ka,ce,Ks="Creates a custom task module to load tasks defined by the user in their own file.",ts,W,Jt,es,me,tn="Get all task names, metadata, and docstrings as a Python object.",as,X,Ct,ss,de,en="Load all LightevalTaskConfig objects from all Python files in the tasks/ directory.",ns,Y,It,rs,ue,an="Print all the tasks in the task registry.",We,Dt,Xe,v,Ut,ls,he,sn="Dataclass representing a single evaluation sample for a benchmark.",os,fe,nn=`This class encapsulates all the information needed to evaluate a model on a single
task instance. It contains the input query, expected outputs, metadata, and
configuration parameters for different types of evaluation tasks.`,is,ve,rn="<strong>Required Fields:</strong>",ps,_e,ln="<li><code>query</code>: The input prompt or question</li> <li><code>choices</code>: Available answer choices (for multiple choice tasks)</li> <li><code>gold_index</code>: Index(es) of the correct answer(s)</li>",gs,$e,on="<strong>Optional Fields:</strong>",cs,be,pn="<li><code>instruction</code>: System prompt, task specific. Will be appended to model specific system prompt.</li> <li><code>images</code>: Visual inputs for multimodal tasks.</li>",ms,ye,gn=`Methods:
get_golds():
Returns the correct answer(s) as strings based on gold_index.
Handles both single and multiple correct answers.`,ds,ke,cn="Usage Examples:",us,xe,mn="<strong>Multiple Choice Question:</strong>",hs,O,fs,Te,dn="<strong>Generative Task:</strong>",vs,K,_s,we,un="<strong>Few-shot Learning:</strong>",$s,tt,bs,Me,hn="<strong>Multimodal Task:</strong>",ys,et,ks,at,qt,xs,Je,fn="Return gold targets extracted from the target dict",Ye,Nt,Oe,N,jt,Ts,st,Lt,ws,Ce,vn="Get the original order of the data.",Ms,nt,Pt,Js,Ie,_n="Iterator that yields the dataset splits based on the split limits.",Ke,Et,Gt,ta,G,Rt,Cs,I,Bt,Is,De,$n=`Initialises the split limits based on generation parameters.
The splits are used to estimate time remaining when evaluating, and in the case of generative evaluations, to group similar samples together.`,Ds,Ue,bn="For generative tasks, self._sorting_criteria outputs:",Us,qe,yn="<li>a boolean (whether the generation task uses logits)</li> <li>a list (the stop sequences)</li> <li>the item length (the actual size sorting factor).</li>",qs,Ne,kn=`In the current function, we create evaluation groups by generation parameters (logits and eos), so that samples with similar properties get batched together afterwards.
The samples will then be further organised by length in each split.`,ea,Vt,Zt,aa,R,Ft,Ns,je,xn=`A distributed sampler that copy the last element only when drop_last is False so we keep a small padding in the batches
as our samples are sorted by length.`,sa,Qt,na,Ge,ra;return lt=new Un({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),ot=new rt({props:{title:"Tasks",local:"tasks",headingTag:"h1"}}),it=new rt({props:{title:"LightevalTask",local:"lightevaltask",headingTag:"h2"}}),pt=new rt({props:{title:"LightevalTaskConfig",local:"lighteval.tasks.lighteval_task.LightevalTaskConfig",headingTag:"h3"}}),gt=new k({props:{name:"class lighteval.tasks.lighteval_task.LightevalTaskConfig",anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig",parameters:[{name:"name",val:": str"},{name:"prompt_function",val:": typing.Callable[[dict, str], lighteval.tasks.requests.Doc]"},{name:"hf_repo",val:": str"},{name:"hf_subset",val:": str"},{name:"metrics",val:": list[lighteval.metrics.utils.metric_utils.Metric | lighteval.metrics.metrics.Metrics] | tuple[lighteval.metrics.utils.metric_utils.Metric | lighteval.metrics.metrics.Metrics, ...]"},{name:"solver",val:": None = None"},{name:"scorer",val:": None = None"},{name:"sample_fields",val:": typing.Optional[typing.Callable[[dict], inspect_ai.dataset._dataset.Sample]] = None"},{name:"sample_to_fewshot",val:": typing.Optional[typing.Callable[[inspect_ai.dataset._dataset.Sample], str]] = None"},{name:"filter",val:": typing.Optional[typing.Callable[[dict], bool]] = None"},{name:"hf_revision",val:": str | None = None"},{name:"hf_filter",val:": typing.Optional[typing.Callable[[dict], bool]] = None"},{name:"hf_avail_splits",val:": list[str] | tuple[str, ...] = <factory>"},{name:"evaluation_splits",val:": list[str] | tuple[str, ...] = <factory>"},{name:"few_shots_split",val:": str | None = None"},{name:"few_shots_select",val:": str | None = None"},{name:"generation_size",val:": int | None = None"},{name:"generation_grammar",val:": huggingface_hub.inference._generated.types.text_generation.TextGenerationInputGrammarType | None = None"},{name:"stop_sequence",val:": list[str] | tuple[str, ...] | None = None"},{name:"num_samples",val:": list[int] | None = None"},{name:"original_num_docs",val:": int = -1"},{name:"effective_num_docs",val:": int = -1"},{name:"must_remove_duplicate_docs",val:": bool = False"},{name:"num_fewshots",val:": int = 0"},{name:"version",val:": int = 0"}],parametersDescription:[{anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig.name",description:"<strong>name</strong> (str) &#x2014; Short name of the evaluation task.",name:"name"},{anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig.prompt_function",description:`<strong>prompt_function</strong> (Callable[[dict, str], Doc]) &#x2014; Function that converts dataset
row to Doc objects for evaluation. Takes a dataset row dict and task
name as input.`,name:"prompt_function"},{anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig.hf_repo",description:"<strong>hf_repo</strong> (str) &#x2014; HuggingFace Hub repository path containing the evaluation dataset.",name:"hf_repo"},{anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig.hf_subset",description:"<strong>hf_subset</strong> (str) &#x2014; Dataset subset/configuration name to use for this task.",name:"hf_subset"},{anchor:"lighteval.tasks.lighteval_task.LightevalTaskConfig.metrics",description:"<strong>metrics</strong> (ListLike[Metric | Metrics]) &#x2014; List of metrics or metric enums to compute for this task.",name:"metrics"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L49"}}),ct=new rt({props:{title:"LightevalTask",local:"lighteval.tasks.lighteval_task.LightevalTask",headingTag:"h3"}}),mt=new k({props:{name:"class lighteval.tasks.lighteval_task.LightevalTask",anchor:"lighteval.tasks.lighteval_task.LightevalTask",parameters:[{name:"config",val:": LightevalTaskConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L202"}}),dt=new k({props:{name:"aggregation",anchor:"lighteval.tasks.lighteval_task.LightevalTask.aggregation",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L405"}}),ut=new k({props:{name:"download_dataset_worker",anchor:"lighteval.tasks.lighteval_task.LightevalTask.download_dataset_worker",parameters:[{name:"task",val:": LightevalTask"}],parametersDescription:[{anchor:"lighteval.tasks.lighteval_task.LightevalTask.download_dataset_worker.task",description:"<strong>task</strong> (LightevalTask) &#x2014; The task object containing dataset configuration.",name:"task"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L437",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The loaded dataset dictionary containing all splits.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>DatasetDict</p>
`}}),ht=new k({props:{name:"eval_docs",anchor:"lighteval.tasks.lighteval_task.LightevalTask.eval_docs",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L348",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Evaluation documents.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[Doc]</p>
`}}),ft=new k({props:{name:"fewshot_docs",anchor:"lighteval.tasks.lighteval_task.LightevalTask.fewshot_docs",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L329",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Documents that will be used for few shot examples. One
document = one few shot example.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[Doc]</p>
`}}),vt=new k({props:{name:"get_docs",anchor:"lighteval.tasks.lighteval_task.LightevalTask.get_docs",parameters:[{name:"max_samples",val:": int | None = None"}],parametersDescription:[{anchor:"lighteval.tasks.lighteval_task.LightevalTask.get_docs.max_samples",description:`<strong>max_samples</strong> (int | None, optional) &#x2014; Maximum number of documents to return.
If None, returns all available documents. Defaults to None.`,name:"max_samples"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L360",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of documents ready for evaluation with few-shot examples
and generation parameters configured.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[Doc]</p>
`,raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> — If no documents are available for evaluation.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),_t=new k({props:{name:"get_first_possible_fewshot_splits",anchor:"lighteval.tasks.lighteval_task.LightevalTask.get_first_possible_fewshot_splits",parameters:[{name:"available_splits",val:": list[str] | tuple[str, ...]"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L255",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>the first available fewshot splits or None if nothing is available</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>str</p>
`}}),$t=new k({props:{name:"load_datasets",anchor:"lighteval.tasks.lighteval_task.LightevalTask.load_datasets",parameters:[{name:"tasks",val:": dict"},{name:"dataset_loading_processes",val:": int = 1"}],parametersDescription:[{anchor:"lighteval.tasks.lighteval_task.LightevalTask.load_datasets.tasks",description:"<strong>tasks</strong> (dict[str, LightevalTask]) &#x2014; Dictionary mapping task names to task objects.",name:"tasks"},{anchor:"lighteval.tasks.lighteval_task.LightevalTask.load_datasets.dataset_loading_processes",description:`<strong>dataset_loading_processes</strong> (int, optional) &#x2014; Number of processes to use for
parallel dataset loading. Defaults to 1 (sequential loading).`,name:"dataset_loading_processes"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/lighteval_task.py#L414"}}),bt=new rt({props:{title:"PromptManager",local:"lighteval.tasks.prompt_manager.PromptManager",headingTag:"h2"}}),yt=new k({props:{name:"class lighteval.tasks.prompt_manager.PromptManager",anchor:"lighteval.tasks.prompt_manager.PromptManager",parameters:[{name:"use_chat_template",val:": bool = False"},{name:"tokenizer",val:" = None"},{name:"system_prompt",val:": str | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/prompt_manager.py#L42"}}),kt=new k({props:{name:"prepare_prompt",anchor:"lighteval.tasks.prompt_manager.PromptManager.prepare_prompt",parameters:[{name:"doc",val:": Doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/prompt_manager.py#L48",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The formatted prompt string</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>str</p>
`}}),xt=new k({props:{name:"prepare_prompt_api",anchor:"lighteval.tasks.prompt_manager.PromptManager.prepare_prompt_api",parameters:[{name:"doc",val:": Doc"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/prompt_manager.py#L88",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of message dictionaries for API calls</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[dict[str, str]]</p>
`}}),Tt=new rt({props:{title:"Registry",local:"lighteval.tasks.registry.Registry",headingTag:"h2"}}),wt=new k({props:{name:"class lighteval.tasks.registry.Registry",anchor:"lighteval.tasks.registry.Registry",parameters:[{name:"tasks",val:": str | pathlib.Path | None = None"},{name:"load_multilingual",val:": bool = False"},{name:"custom_tasks",val:": str | pathlib.Path | module | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/registry.py#L112"}}),Mt=new k({props:{name:"create_custom_tasks_module",anchor:"lighteval.tasks.registry.Registry.create_custom_tasks_module",parameters:[{name:"custom_tasks",val:": str | pathlib.Path | module"}],parametersDescription:[{anchor:"lighteval.tasks.registry.Registry.create_custom_tasks_module.custom_tasks",description:"<strong>custom_tasks</strong> (Optional[Union[str, ModuleType]]) &#x2014; Path to the custom tasks file or name of a module to import containing custom tasks or the module itself",name:"custom_tasks"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/registry.py#L293",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The newly imported/created custom tasks modules</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>ModuleType</p>
`}}),Jt=new k({props:{name:"get_tasks_dump",anchor:"lighteval.tasks.registry.Registry.get_tasks_dump",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/registry.py#L442",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>List of dictionaries, each containing:</p>
<ul>
<li>module: Module name</li>
<li>docstring: Parsed docstring as dict</li>
<li>tasks: List of task configs for this module</li>
</ul>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[dict]</p>
`}}),Ct=new k({props:{name:"load_all_task_configs",anchor:"lighteval.tasks.registry.Registry.load_all_task_configs",parameters:[{name:"custom_tasks",val:": str | pathlib.Path | None = None"},{name:"load_multilingual",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/registry.py#L344"}}),It=new k({props:{name:"print_all_tasks",anchor:"lighteval.tasks.registry.Registry.print_all_tasks",parameters:[{name:"suites",val:": str | None = None"}],parametersDescription:[{anchor:"lighteval.tasks.registry.Registry.print_all_tasks.suites",description:`<strong>suites</strong> &#x2014; Comma-separated list of suites to display. If None, shows core suites only.
Use &#x2018;all&#x2019; to show all available suites (core + optional).
Special handling for &#x2018;multilingual&#x2019; suite with dependency checking.`,name:"suites"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/registry.py#L382"}}),Dt=new rt({props:{title:"Doc",local:"lighteval.tasks.requests.Doc",headingTag:"h2"}}),Ut=new k({props:{name:"class lighteval.tasks.requests.Doc",anchor:"lighteval.tasks.requests.Doc",parameters:[{name:"query",val:": str"},{name:"choices",val:": list"},{name:"gold_index",val:": typing.Union[int, list[int]]"},{name:"instruction",val:": str | None = None"},{name:"images",val:": list['Image'] | None = None"},{name:"specific",val:": dict | None = None"},{name:"unconditioned_query",val:": str | None = None"},{name:"original_query",val:": str | None = None"},{name:"id",val:": str = ''"},{name:"task_name",val:": str = ''"},{name:"fewshot_samples",val:": list = <factory>"},{name:"sampling_methods",val:": list = <factory>"},{name:"fewshot_sorting_class",val:": str | None = None"},{name:"generation_size",val:": int | None = None"},{name:"stop_sequences",val:": list[str] | None = None"},{name:"use_logits",val:": bool = False"},{name:"num_samples",val:": int = 1"},{name:"generation_grammar",val:": None = None"}],parametersDescription:[{anchor:"lighteval.tasks.requests.Doc.query",description:`<strong>query</strong> (str) &#x2014;
The main query, prompt, or question to be sent to the model.`,name:"query"},{anchor:"lighteval.tasks.requests.Doc.choices",description:`<strong>choices</strong> (list[str]) &#x2014;
List of possible answer choices for the query.
For multiple choice tasks, this contains all options (A, B, C, D, etc.).
For generative tasks, this may be empty or contain reference answers.`,name:"choices"},{anchor:"lighteval.tasks.requests.Doc.gold_index",description:`<strong>gold_index</strong> (Union[int, list[int]]) &#x2014;
Index or indices of the correct answer(s) in the choices list.
For single correct answers,(e.g., 0 for first choice).
For multiple correct answers, use a list (e.g., [0, 2] for first and third).`,name:"gold_index"},{anchor:"lighteval.tasks.requests.Doc.instruction",description:`<strong>instruction</strong> (str | None) &#x2014;
System prompt or task-specific instructions to guide the model.
This is typically prepended to the query to set context or behavior.`,name:"instruction"},{anchor:"lighteval.tasks.requests.Doc.images",description:`<strong>images</strong> (list[&#x201C;Image&#x201D;] | None) &#x2014;
List of PIL Image objects for multimodal tasks.`,name:"images"},{anchor:"lighteval.tasks.requests.Doc.specific",description:`<strong>specific</strong> (dict | None) &#x2014;
Task-specific information or metadata.
Can contain any additional data needed for evaluation.`,name:"specific"},{anchor:"lighteval.tasks.requests.Doc.unconditioned_query",description:`<strong>unconditioned_query</strong> (Optional[str]) &#x2014;
Query without task-specific context for PMI normalization.
Used to calculate: log P(choice | Query) - log P(choice | Unconditioned Query).`,name:"unconditioned_query"},{anchor:"lighteval.tasks.requests.Doc.original_query",description:`<strong>original_query</strong> (str | None) &#x2014;
The query before any preprocessing or modification.`,name:"original_query"},{anchor:"lighteval.tasks.requests.Doc.#",description:"<strong>#</strong> Set by task parameters &#x2014;",name:"#"},{anchor:"lighteval.tasks.requests.Doc.id",description:`<strong>id</strong> (str) &#x2014;
Unique identifier for this evaluation instance.
Set by the task and not the user.`,name:"id"},{anchor:"lighteval.tasks.requests.Doc.task_name",description:`<strong>task_name</strong> (str) &#x2014;
Name of the task or benchmark this Doc belongs to.`,name:"task_name"},{anchor:"lighteval.tasks.requests.Doc.##",description:"<strong>##</strong> Few-shot Learning Parameters &#x2014;",name:"##"},{anchor:"lighteval.tasks.requests.Doc.fewshot_samples",description:`<strong>fewshot_samples</strong> (list) &#x2014;
List of Doc objects representing few-shot examples.
These examples are prepended to the main query to provide context.`,name:"fewshot_samples"},{anchor:"lighteval.tasks.requests.Doc.sampling_methods",description:`<strong>sampling_methods</strong> (list[SamplingMethod]) &#x2014;
List of sampling methods to use for this instance.
Options: GENERATIVE, LOGPROBS, PERPLEXITY.`,name:"sampling_methods"},{anchor:"lighteval.tasks.requests.Doc.fewshot_sorting_class",description:`<strong>fewshot_sorting_class</strong> (Optional[str]) &#x2014;
Class label for balanced few-shot example selection.
Used to ensure diverse representation in few-shot examples.`,name:"fewshot_sorting_class"},{anchor:"lighteval.tasks.requests.Doc.##",description:"<strong>##</strong> Generation Control Parameters &#x2014;",name:"##"},{anchor:"lighteval.tasks.requests.Doc.generation_size",description:`<strong>generation_size</strong> (int | None) &#x2014;
Maximum number of tokens to generate for this instance.`,name:"generation_size"},{anchor:"lighteval.tasks.requests.Doc.stop_sequences",description:`<strong>stop_sequences</strong> (list[str] | None) &#x2014;
List of strings that should stop generation when encountered.
<strong>Used for</strong>: Controlled generation, preventing unwanted continuations.`,name:"stop_sequences"},{anchor:"lighteval.tasks.requests.Doc.use_logits",description:`<strong>use_logits</strong> (bool) &#x2014;
Whether to return logits (raw model outputs) in addition to text.
<strong>Used for</strong>: Probability analysis, confidence scoring, detailed evaluation.`,name:"use_logits"},{anchor:"lighteval.tasks.requests.Doc.num_samples",description:`<strong>num_samples</strong> (int) &#x2014;
Number of different samples to generate for this instance.
<strong>Used for</strong>: Diversity analysis, uncertainty estimation, ensemble methods.`,name:"num_samples"},{anchor:"lighteval.tasks.requests.Doc.generation_grammar",description:`<strong>generation_grammar</strong> (None) &#x2014;
Grammar constraints for generation (currently not implemented).
<strong>Reserved for</strong>: Future structured generation features.`,name:"generation_grammar"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/requests.py#L44"}}),O=new ya({props:{anchor:"lighteval.tasks.requests.Doc.example",$$slots:{default:[Nn]},$$scope:{ctx:j}}}),K=new ya({props:{anchor:"lighteval.tasks.requests.Doc.example-2",$$slots:{default:[jn]},$$scope:{ctx:j}}}),tt=new ya({props:{anchor:"lighteval.tasks.requests.Doc.example-3",$$slots:{default:[Ln]},$$scope:{ctx:j}}}),et=new ya({props:{anchor:"lighteval.tasks.requests.Doc.example-4",$$slots:{default:[Pn]},$$scope:{ctx:j}}}),qt=new k({props:{name:"get_golds",anchor:"lighteval.tasks.requests.Doc.get_golds",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/tasks/requests.py#L217"}}),Nt=new rt({props:{title:"Datasets",local:"lighteval.data.DynamicBatchDataset",headingTag:"h2"}}),jt=new k({props:{name:"class lighteval.data.DynamicBatchDataset",anchor:"lighteval.data.DynamicBatchDataset",parameters:[{name:"requests",val:": list"},{name:"num_dataset_splits",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L44"}}),Lt=new k({props:{name:"get_original_order",anchor:"lighteval.data.DynamicBatchDataset.get_original_order",parameters:[{name:"new_arr",val:": list"}],parametersDescription:[{anchor:"lighteval.data.DynamicBatchDataset.get_original_order.new_arr",description:`<strong>new_arr</strong> (list) &#x2014; Array containing any kind of data that needs to be
reset in the original order.`,name:"new_arr"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L88",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>new_arr in the original order.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list</p>
`}}),Pt=new k({props:{name:"splits_iterator",anchor:"lighteval.data.DynamicBatchDataset.splits_iterator",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L110",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Subset</p>
`,isYield:!0}}),Gt=new k({props:{name:"class lighteval.data.LoglikelihoodDataset",anchor:"lighteval.data.LoglikelihoodDataset",parameters:[{name:"requests",val:": list"},{name:"num_dataset_splits",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L161"}}),Rt=new k({props:{name:"class lighteval.data.GenerativeTaskDataset",anchor:"lighteval.data.GenerativeTaskDataset",parameters:[{name:"requests",val:": list"},{name:"num_dataset_splits",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L186"}}),Bt=new k({props:{name:"init_split_limits",anchor:"lighteval.data.GenerativeTaskDataset.init_split_limits",parameters:[{name:"num_dataset_splits",val:""}],parametersDescription:[{anchor:"lighteval.data.GenerativeTaskDataset.init_split_limits.num_dataset_splits",description:"<strong>num_dataset_splits</strong> (<em>type</em>) &#x2014; <em>description</em>",name:"num_dataset_splits"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L187",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p><em>description</em></p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><em>type</em></p>
`}}),Zt=new k({props:{name:"class lighteval.data.GenerativeTaskDatasetNanotron",anchor:"lighteval.data.GenerativeTaskDatasetNanotron",parameters:[{name:"requests",val:": list"},{name:"num_dataset_splits",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L254"}}),Ft=new k({props:{name:"class lighteval.data.GenDistributedSampler",anchor:"lighteval.data.GenDistributedSampler",parameters:[{name:"dataset",val:": Dataset"},{name:"num_replicas",val:": typing.Optional[int] = None"},{name:"rank",val:": typing.Optional[int] = None"},{name:"shuffle",val:": bool = True"},{name:"seed",val:": int = 0"},{name:"drop_last",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1070/src/lighteval/data.py#L270"}}),Qt=new qn({props:{source:"https://github.com/huggingface/lighteval/blob/main/docs/source/package_reference/tasks.mdx"}}),{c(){f=n("meta"),x=a(),i=n("p"),D=a(),p(lt.$$.fragment),Re=a(),p(ot.$$.fragment),Be=a(),p(it.$$.fragment),Ve=a(),p(pt.$$.fragment),Ze=a(),T=n("div"),p(gt.$$.fragment),Ta=a(),zt=n("p"),zt.textContent=js,wa=a(),St=n("p"),St.textContent=Ls,Ma=a(),Ht=n("p"),Ht.textContent=Ps,Ja=a(),Wt=n("p"),Wt.textContent=Es,Ca=a(),Xt=n("p"),Xt.textContent=Gs,Ia=a(),Yt=n("p"),Yt.textContent=Rs,Da=a(),Ot=n("p"),Ot.textContent=Bs,Fe=a(),p(ct.$$.fragment),Qe=a(),w=n("div"),p(mt.$$.fragment),Ua=a(),V=n("div"),p(dt.$$.fragment),qa=a(),Kt=n("p"),Kt.textContent=Vs,Na=a(),L=n("div"),p(ut.$$.fragment),ja=a(),te=n("p"),te.textContent=Zs,La=a(),ee=n("p"),ee.textContent=Fs,Pa=a(),Z=n("div"),p(ht.$$.fragment),Ea=a(),ae=n("p"),ae.textContent=Qs,Ga=a(),F=n("div"),p(ft.$$.fragment),Ra=a(),se=n("p"),se.textContent=As,Ba=a(),P=n("div"),p(vt.$$.fragment),Va=a(),ne=n("p"),ne.textContent=zs,Za=a(),re=n("p"),re.textContent=Ss,Fa=a(),Q=n("div"),p(_t.$$.fragment),Qa=a(),le=n("p"),le.textContent=Hs,Aa=a(),A=n("div"),p($t.$$.fragment),za=a(),oe=n("p"),oe.textContent=Ws,Ae=a(),p(bt.$$.fragment),ze=a(),q=n("div"),p(yt.$$.fragment),Sa=a(),z=n("div"),p(kt.$$.fragment),Ha=a(),ie=n("p"),ie.textContent=Xs,Wa=a(),S=n("div"),p(xt.$$.fragment),Xa=a(),pe=n("p"),pe.textContent=Ys,Se=a(),p(Tt.$$.fragment),He=a(),C=n("div"),p(wt.$$.fragment),Ya=a(),ge=n("p"),ge.textContent=Os,Oa=a(),H=n("div"),p(Mt.$$.fragment),Ka=a(),ce=n("p"),ce.textContent=Ks,ts=a(),W=n("div"),p(Jt.$$.fragment),es=a(),me=n("p"),me.textContent=tn,as=a(),X=n("div"),p(Ct.$$.fragment),ss=a(),de=n("p"),de.textContent=en,ns=a(),Y=n("div"),p(It.$$.fragment),rs=a(),ue=n("p"),ue.textContent=an,We=a(),p(Dt.$$.fragment),Xe=a(),v=n("div"),p(Ut.$$.fragment),ls=a(),he=n("p"),he.textContent=sn,os=a(),fe=n("p"),fe.textContent=nn,is=a(),ve=n("p"),ve.innerHTML=rn,ps=a(),_e=n("ul"),_e.innerHTML=ln,gs=a(),$e=n("p"),$e.innerHTML=on,cs=a(),be=n("ul"),be.innerHTML=pn,ms=a(),ye=n("p"),ye.textContent=gn,ds=a(),ke=n("p"),ke.textContent=cn,us=a(),xe=n("p"),xe.innerHTML=mn,hs=a(),p(O.$$.fragment),fs=a(),Te=n("p"),Te.innerHTML=dn,vs=a(),p(K.$$.fragment),_s=a(),we=n("p"),we.innerHTML=un,$s=a(),p(tt.$$.fragment),bs=a(),Me=n("p"),Me.innerHTML=hn,ys=a(),p(et.$$.fragment),ks=a(),at=n("div"),p(qt.$$.fragment),xs=a(),Je=n("p"),Je.textContent=fn,Ye=a(),p(Nt.$$.fragment),Oe=a(),N=n("div"),p(jt.$$.fragment),Ts=a(),st=n("div"),p(Lt.$$.fragment),ws=a(),Ce=n("p"),Ce.textContent=vn,Ms=a(),nt=n("div"),p(Pt.$$.fragment),Js=a(),Ie=n("p"),Ie.textContent=_n,Ke=a(),Et=n("div"),p(Gt.$$.fragment),ta=a(),G=n("div"),p(Rt.$$.fragment),Cs=a(),I=n("div"),p(Bt.$$.fragment),Is=a(),De=n("p"),De.textContent=$n,Ds=a(),Ue=n("p"),Ue.textContent=bn,Us=a(),qe=n("ul"),qe.innerHTML=yn,qs=a(),Ne=n("p"),Ne.textContent=kn,ea=a(),Vt=n("div"),p(Zt.$$.fragment),aa=a(),R=n("div"),p(Ft.$$.fragment),Ns=a(),je=n("p"),je.textContent=xn,sa=a(),p(Qt.$$.fragment),na=a(),Ge=n("p"),this.h()},l(t){const o=Dn("svelte-u9bgzb",document.head);f=r(o,"META",{name:!0,content:!0}),o.forEach(l),x=s(t),i=r(t,"P",{}),b(i).forEach(l),D=s(t),g(lt.$$.fragment,t),Re=s(t),g(ot.$$.fragment,t),Be=s(t),g(it.$$.fragment,t),Ve=s(t),g(pt.$$.fragment,t),Ze=s(t),T=r(t,"DIV",{class:!0});var M=b(T);g(gt.$$.fragment,M),Ta=s(M),zt=r(M,"P",{"data-svelte-h":!0}),h(zt)!=="svelte-stmfsf"&&(zt.textContent=js),wa=s(M),St=r(M,"P",{"data-svelte-h":!0}),h(St)!=="svelte-1wprphn"&&(St.textContent=Ls),Ma=s(M),Ht=r(M,"P",{"data-svelte-h":!0}),h(Ht)!=="svelte-1y7wfzb"&&(Ht.textContent=Ps),Ja=s(M),Wt=r(M,"P",{"data-svelte-h":!0}),h(Wt)!=="svelte-p0lesm"&&(Wt.textContent=Es),Ca=s(M),Xt=r(M,"P",{"data-svelte-h":!0}),h(Xt)!=="svelte-18lh4ux"&&(Xt.textContent=Gs),Ia=s(M),Yt=r(M,"P",{"data-svelte-h":!0}),h(Yt)!=="svelte-1vvpj5a"&&(Yt.textContent=Rs),Da=s(M),Ot=r(M,"P",{"data-svelte-h":!0}),h(Ot)!=="svelte-lb2xyc"&&(Ot.textContent=Bs),M.forEach(l),Fe=s(t),g(ct.$$.fragment,t),Qe=s(t),w=r(t,"DIV",{class:!0});var J=b(w);g(mt.$$.fragment,J),Ua=s(J),V=r(J,"DIV",{class:!0});var At=b(V);g(dt.$$.fragment,At),qa=s(At),Kt=r(At,"P",{"data-svelte-h":!0}),h(Kt)!=="svelte-e3kmxq"&&(Kt.textContent=Vs),At.forEach(l),Na=s(J),L=r(J,"DIV",{class:!0});var B=b(L);g(ut.$$.fragment,B),ja=s(B),te=r(B,"P",{"data-svelte-h":!0}),h(te)!=="svelte-vbykr6"&&(te.textContent=Zs),La=s(B),ee=r(B,"P",{"data-svelte-h":!0}),h(ee)!=="svelte-1yjy9hy"&&(ee.textContent=Fs),B.forEach(l),Pa=s(J),Z=r(J,"DIV",{class:!0});var la=b(Z);g(ht.$$.fragment,la),Ea=s(la),ae=r(la,"P",{"data-svelte-h":!0}),h(ae)!=="svelte-qytfqy"&&(ae.textContent=Qs),la.forEach(l),Ga=s(J),F=r(J,"DIV",{class:!0});var oa=b(F);g(ft.$$.fragment,oa),Ra=s(oa),se=r(oa,"P",{"data-svelte-h":!0}),h(se)!=="svelte-1y4eieh"&&(se.textContent=As),oa.forEach(l),Ba=s(J),P=r(J,"DIV",{class:!0});var Le=b(P);g(vt.$$.fragment,Le),Va=s(Le),ne=r(Le,"P",{"data-svelte-h":!0}),h(ne)!=="svelte-19ponm9"&&(ne.textContent=zs),Za=s(Le),re=r(Le,"P",{"data-svelte-h":!0}),h(re)!=="svelte-tler3x"&&(re.textContent=Ss),Le.forEach(l),Fa=s(J),Q=r(J,"DIV",{class:!0});var ia=b(Q);g(_t.$$.fragment,ia),Qa=s(ia),le=r(ia,"P",{"data-svelte-h":!0}),h(le)!=="svelte-1283lse"&&(le.textContent=Hs),ia.forEach(l),Aa=s(J),A=r(J,"DIV",{class:!0});var pa=b(A);g($t.$$.fragment,pa),za=s(pa),oe=r(pa,"P",{"data-svelte-h":!0}),h(oe)!=="svelte-sf66t8"&&(oe.textContent=Ws),pa.forEach(l),J.forEach(l),Ae=s(t),g(bt.$$.fragment,t),ze=s(t),q=r(t,"DIV",{class:!0});var Pe=b(q);g(yt.$$.fragment,Pe),Sa=s(Pe),z=r(Pe,"DIV",{class:!0});var ga=b(z);g(kt.$$.fragment,ga),Ha=s(ga),ie=r(ga,"P",{"data-svelte-h":!0}),h(ie)!=="svelte-1ttqjjc"&&(ie.textContent=Xs),ga.forEach(l),Wa=s(Pe),S=r(Pe,"DIV",{class:!0});var ca=b(S);g(xt.$$.fragment,ca),Xa=s(ca),pe=r(ca,"P",{"data-svelte-h":!0}),h(pe)!=="svelte-ky83kg"&&(pe.textContent=Ys),ca.forEach(l),Pe.forEach(l),Se=s(t),g(Tt.$$.fragment,t),He=s(t),C=r(t,"DIV",{class:!0});var U=b(C);g(wt.$$.fragment,U),Ya=s(U),ge=r(U,"P",{"data-svelte-h":!0}),h(ge)!=="svelte-2fh3bo"&&(ge.textContent=Os),Oa=s(U),H=r(U,"DIV",{class:!0});var ma=b(H);g(Mt.$$.fragment,ma),Ka=s(ma),ce=r(ma,"P",{"data-svelte-h":!0}),h(ce)!=="svelte-m08mne"&&(ce.textContent=Ks),ma.forEach(l),ts=s(U),W=r(U,"DIV",{class:!0});var da=b(W);g(Jt.$$.fragment,da),es=s(da),me=r(da,"P",{"data-svelte-h":!0}),h(me)!=="svelte-r1ca6m"&&(me.textContent=tn),da.forEach(l),as=s(U),X=r(U,"DIV",{class:!0});var ua=b(X);g(Ct.$$.fragment,ua),ss=s(ua),de=r(ua,"P",{"data-svelte-h":!0}),h(de)!=="svelte-3f8tkc"&&(de.textContent=en),ua.forEach(l),ns=s(U),Y=r(U,"DIV",{class:!0});var ha=b(Y);g(It.$$.fragment,ha),rs=s(ha),ue=r(ha,"P",{"data-svelte-h":!0}),h(ue)!=="svelte-x1foin"&&(ue.textContent=an),ha.forEach(l),U.forEach(l),We=s(t),g(Dt.$$.fragment,t),Xe=s(t),v=r(t,"DIV",{class:!0});var _=b(v);g(Ut.$$.fragment,_),ls=s(_),he=r(_,"P",{"data-svelte-h":!0}),h(he)!=="svelte-ekxass"&&(he.textContent=sn),os=s(_),fe=r(_,"P",{"data-svelte-h":!0}),h(fe)!=="svelte-mg9ows"&&(fe.textContent=nn),is=s(_),ve=r(_,"P",{"data-svelte-h":!0}),h(ve)!=="svelte-tguus5"&&(ve.innerHTML=rn),ps=s(_),_e=r(_,"UL",{"data-svelte-h":!0}),h(_e)!=="svelte-upt8y4"&&(_e.innerHTML=ln),gs=s(_),$e=r(_,"P",{"data-svelte-h":!0}),h($e)!=="svelte-1opiqf6"&&($e.innerHTML=on),cs=s(_),be=r(_,"UL",{"data-svelte-h":!0}),h(be)!=="svelte-1tfzood"&&(be.innerHTML=pn),ms=s(_),ye=r(_,"P",{"data-svelte-h":!0}),h(ye)!=="svelte-a0ub3g"&&(ye.textContent=gn),ds=s(_),ke=r(_,"P",{"data-svelte-h":!0}),h(ke)!=="svelte-93h1jg"&&(ke.textContent=cn),us=s(_),xe=r(_,"P",{"data-svelte-h":!0}),h(xe)!=="svelte-1tze8ns"&&(xe.innerHTML=mn),hs=s(_),g(O.$$.fragment,_),fs=s(_),Te=r(_,"P",{"data-svelte-h":!0}),h(Te)!=="svelte-ydqksw"&&(Te.innerHTML=dn),vs=s(_),g(K.$$.fragment,_),_s=s(_),we=r(_,"P",{"data-svelte-h":!0}),h(we)!=="svelte-t0g8ra"&&(we.innerHTML=un),$s=s(_),g(tt.$$.fragment,_),bs=s(_),Me=r(_,"P",{"data-svelte-h":!0}),h(Me)!=="svelte-fraz6o"&&(Me.innerHTML=hn),ys=s(_),g(et.$$.fragment,_),ks=s(_),at=r(_,"DIV",{class:!0});var fa=b(at);g(qt.$$.fragment,fa),xs=s(fa),Je=r(fa,"P",{"data-svelte-h":!0}),h(Je)!=="svelte-motf0a"&&(Je.textContent=fn),fa.forEach(l),_.forEach(l),Ye=s(t),g(Nt.$$.fragment,t),Oe=s(t),N=r(t,"DIV",{class:!0});var Ee=b(N);g(jt.$$.fragment,Ee),Ts=s(Ee),st=r(Ee,"DIV",{class:!0});var va=b(st);g(Lt.$$.fragment,va),ws=s(va),Ce=r(va,"P",{"data-svelte-h":!0}),h(Ce)!=="svelte-17n3dve"&&(Ce.textContent=vn),va.forEach(l),Ms=s(Ee),nt=r(Ee,"DIV",{class:!0});var _a=b(nt);g(Pt.$$.fragment,_a),Js=s(_a),Ie=r(_a,"P",{"data-svelte-h":!0}),h(Ie)!=="svelte-udia6y"&&(Ie.textContent=_n),_a.forEach(l),Ee.forEach(l),Ke=s(t),Et=r(t,"DIV",{class:!0});var Tn=b(Et);g(Gt.$$.fragment,Tn),Tn.forEach(l),ta=s(t),G=r(t,"DIV",{class:!0});var $a=b(G);g(Rt.$$.fragment,$a),Cs=s($a),I=r($a,"DIV",{class:!0});var E=b(I);g(Bt.$$.fragment,E),Is=s(E),De=r(E,"P",{"data-svelte-h":!0}),h(De)!=="svelte-1akk4jf"&&(De.textContent=$n),Ds=s(E),Ue=r(E,"P",{"data-svelte-h":!0}),h(Ue)!=="svelte-1jovh48"&&(Ue.textContent=bn),Us=s(E),qe=r(E,"UL",{"data-svelte-h":!0}),h(qe)!=="svelte-62kt3p"&&(qe.innerHTML=yn),qs=s(E),Ne=r(E,"P",{"data-svelte-h":!0}),h(Ne)!=="svelte-1oovzw"&&(Ne.textContent=kn),E.forEach(l),$a.forEach(l),ea=s(t),Vt=r(t,"DIV",{class:!0});var wn=b(Vt);g(Zt.$$.fragment,wn),wn.forEach(l),aa=s(t),R=r(t,"DIV",{class:!0});var ba=b(R);g(Ft.$$.fragment,ba),Ns=s(ba),je=r(ba,"P",{"data-svelte-h":!0}),h(je)!=="svelte-1xq59t"&&(je.textContent=xn),ba.forEach(l),sa=s(t),g(Qt.$$.fragment,t),na=s(t),Ge=r(t,"P",{}),b(Ge).forEach(l),this.h()},h(){y(f,"name","hf:doc:metadata"),y(f,"content",Gn),y(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(at,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(st,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(nt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Et,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Vt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(t,o){e(document.head,f),$(t,x,o),$(t,i,o),$(t,D,o),c(lt,t,o),$(t,Re,o),c(ot,t,o),$(t,Be,o),c(it,t,o),$(t,Ve,o),c(pt,t,o),$(t,Ze,o),$(t,T,o),c(gt,T,null),e(T,Ta),e(T,zt),e(T,wa),e(T,St),e(T,Ma),e(T,Ht),e(T,Ja),e(T,Wt),e(T,Ca),e(T,Xt),e(T,Ia),e(T,Yt),e(T,Da),e(T,Ot),$(t,Fe,o),c(ct,t,o),$(t,Qe,o),$(t,w,o),c(mt,w,null),e(w,Ua),e(w,V),c(dt,V,null),e(V,qa),e(V,Kt),e(w,Na),e(w,L),c(ut,L,null),e(L,ja),e(L,te),e(L,La),e(L,ee),e(w,Pa),e(w,Z),c(ht,Z,null),e(Z,Ea),e(Z,ae),e(w,Ga),e(w,F),c(ft,F,null),e(F,Ra),e(F,se),e(w,Ba),e(w,P),c(vt,P,null),e(P,Va),e(P,ne),e(P,Za),e(P,re),e(w,Fa),e(w,Q),c(_t,Q,null),e(Q,Qa),e(Q,le),e(w,Aa),e(w,A),c($t,A,null),e(A,za),e(A,oe),$(t,Ae,o),c(bt,t,o),$(t,ze,o),$(t,q,o),c(yt,q,null),e(q,Sa),e(q,z),c(kt,z,null),e(z,Ha),e(z,ie),e(q,Wa),e(q,S),c(xt,S,null),e(S,Xa),e(S,pe),$(t,Se,o),c(Tt,t,o),$(t,He,o),$(t,C,o),c(wt,C,null),e(C,Ya),e(C,ge),e(C,Oa),e(C,H),c(Mt,H,null),e(H,Ka),e(H,ce),e(C,ts),e(C,W),c(Jt,W,null),e(W,es),e(W,me),e(C,as),e(C,X),c(Ct,X,null),e(X,ss),e(X,de),e(C,ns),e(C,Y),c(It,Y,null),e(Y,rs),e(Y,ue),$(t,We,o),c(Dt,t,o),$(t,Xe,o),$(t,v,o),c(Ut,v,null),e(v,ls),e(v,he),e(v,os),e(v,fe),e(v,is),e(v,ve),e(v,ps),e(v,_e),e(v,gs),e(v,$e),e(v,cs),e(v,be),e(v,ms),e(v,ye),e(v,ds),e(v,ke),e(v,us),e(v,xe),e(v,hs),c(O,v,null),e(v,fs),e(v,Te),e(v,vs),c(K,v,null),e(v,_s),e(v,we),e(v,$s),c(tt,v,null),e(v,bs),e(v,Me),e(v,ys),c(et,v,null),e(v,ks),e(v,at),c(qt,at,null),e(at,xs),e(at,Je),$(t,Ye,o),c(Nt,t,o),$(t,Oe,o),$(t,N,o),c(jt,N,null),e(N,Ts),e(N,st),c(Lt,st,null),e(st,ws),e(st,Ce),e(N,Ms),e(N,nt),c(Pt,nt,null),e(nt,Js),e(nt,Ie),$(t,Ke,o),$(t,Et,o),c(Gt,Et,null),$(t,ta,o),$(t,G,o),c(Rt,G,null),e(G,Cs),e(G,I),c(Bt,I,null),e(I,Is),e(I,De),e(I,Ds),e(I,Ue),e(I,Us),e(I,qe),e(I,qs),e(I,Ne),$(t,ea,o),$(t,Vt,o),c(Zt,Vt,null),$(t,aa,o),$(t,R,o),c(Ft,R,null),e(R,Ns),e(R,je),$(t,sa,o),c(Qt,t,o),$(t,na,o),$(t,Ge,o),ra=!0},p(t,[o]){const M={};o&2&&(M.$$scope={dirty:o,ctx:t}),O.$set(M);const J={};o&2&&(J.$$scope={dirty:o,ctx:t}),K.$set(J);const At={};o&2&&(At.$$scope={dirty:o,ctx:t}),tt.$set(At);const B={};o&2&&(B.$$scope={dirty:o,ctx:t}),et.$set(B)},i(t){ra||(m(lt.$$.fragment,t),m(ot.$$.fragment,t),m(it.$$.fragment,t),m(pt.$$.fragment,t),m(gt.$$.fragment,t),m(ct.$$.fragment,t),m(mt.$$.fragment,t),m(dt.$$.fragment,t),m(ut.$$.fragment,t),m(ht.$$.fragment,t),m(ft.$$.fragment,t),m(vt.$$.fragment,t),m(_t.$$.fragment,t),m($t.$$.fragment,t),m(bt.$$.fragment,t),m(yt.$$.fragment,t),m(kt.$$.fragment,t),m(xt.$$.fragment,t),m(Tt.$$.fragment,t),m(wt.$$.fragment,t),m(Mt.$$.fragment,t),m(Jt.$$.fragment,t),m(Ct.$$.fragment,t),m(It.$$.fragment,t),m(Dt.$$.fragment,t),m(Ut.$$.fragment,t),m(O.$$.fragment,t),m(K.$$.fragment,t),m(tt.$$.fragment,t),m(et.$$.fragment,t),m(qt.$$.fragment,t),m(Nt.$$.fragment,t),m(jt.$$.fragment,t),m(Lt.$$.fragment,t),m(Pt.$$.fragment,t),m(Gt.$$.fragment,t),m(Rt.$$.fragment,t),m(Bt.$$.fragment,t),m(Zt.$$.fragment,t),m(Ft.$$.fragment,t),m(Qt.$$.fragment,t),ra=!0)},o(t){d(lt.$$.fragment,t),d(ot.$$.fragment,t),d(it.$$.fragment,t),d(pt.$$.fragment,t),d(gt.$$.fragment,t),d(ct.$$.fragment,t),d(mt.$$.fragment,t),d(dt.$$.fragment,t),d(ut.$$.fragment,t),d(ht.$$.fragment,t),d(ft.$$.fragment,t),d(vt.$$.fragment,t),d(_t.$$.fragment,t),d($t.$$.fragment,t),d(bt.$$.fragment,t),d(yt.$$.fragment,t),d(kt.$$.fragment,t),d(xt.$$.fragment,t),d(Tt.$$.fragment,t),d(wt.$$.fragment,t),d(Mt.$$.fragment,t),d(Jt.$$.fragment,t),d(Ct.$$.fragment,t),d(It.$$.fragment,t),d(Dt.$$.fragment,t),d(Ut.$$.fragment,t),d(O.$$.fragment,t),d(K.$$.fragment,t),d(tt.$$.fragment,t),d(et.$$.fragment,t),d(qt.$$.fragment,t),d(Nt.$$.fragment,t),d(jt.$$.fragment,t),d(Lt.$$.fragment,t),d(Pt.$$.fragment,t),d(Gt.$$.fragment,t),d(Rt.$$.fragment,t),d(Bt.$$.fragment,t),d(Zt.$$.fragment,t),d(Ft.$$.fragment,t),d(Qt.$$.fragment,t),ra=!1},d(t){t&&(l(x),l(i),l(D),l(Re),l(Be),l(Ve),l(Ze),l(T),l(Fe),l(Qe),l(w),l(Ae),l(ze),l(q),l(Se),l(He),l(C),l(We),l(Xe),l(v),l(Ye),l(Oe),l(N),l(Ke),l(Et),l(ta),l(G),l(ea),l(Vt),l(aa),l(R),l(sa),l(na),l(Ge)),l(f),u(lt,t),u(ot,t),u(it,t),u(pt,t),u(gt),u(ct,t),u(mt),u(dt),u(ut),u(ht),u(ft),u(vt),u(_t),u($t),u(bt,t),u(yt),u(kt),u(xt),u(Tt,t),u(wt),u(Mt),u(Jt),u(Ct),u(It),u(Dt,t),u(Ut),u(O),u(K),u(tt),u(et),u(qt),u(Nt,t),u(jt),u(Lt),u(Pt),u(Gt),u(Rt),u(Bt),u(Zt),u(Ft),u(Qt,t)}}}const Gn='{"title":"Tasks","local":"tasks","sections":[{"title":"LightevalTask","local":"lightevaltask","sections":[{"title":"LightevalTaskConfig","local":"lighteval.tasks.lighteval_task.LightevalTaskConfig","sections":[],"depth":3},{"title":"LightevalTask","local":"lighteval.tasks.lighteval_task.LightevalTask","sections":[],"depth":3}],"depth":2},{"title":"PromptManager","local":"lighteval.tasks.prompt_manager.PromptManager","sections":[],"depth":2},{"title":"Registry","local":"lighteval.tasks.registry.Registry","sections":[],"depth":2},{"title":"Doc","local":"lighteval.tasks.requests.Doc","sections":[],"depth":2},{"title":"Datasets","local":"lighteval.data.DynamicBatchDataset","sections":[],"depth":2}],"depth":1}';function Rn(j){return Jn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class zn extends Cn{constructor(f){super(),In(this,f,Rn,En,Mn,{})}}export{zn as component};
