Buckets:

rtrm's picture
download
raw
55.1 kB
import{s as Ca,n as La,o as ka}from"../chunks/scheduler.7da89386.js";import{S as wa,i as Ta,g as r,s as o,r as i,A as Na,h as s,f as n,c as a,j as v,u as d,x as _,k as f,y as t,a as h,v as m,d as g,t as p,w as c}from"../chunks/index.0b7befd3.js";import{D as u}from"../chunks/Docstring.80026b50.js";import{H as M,E as Da}from"../chunks/EditOnGithub.0cb2bc8e.js";function Ia(Uo){let N,At,Pt,Gt,ee,Ut,te,Ht,ne,Wt,b,oe,Rn,z,ae,Yn,it,Ho="Clean up operations if needed, such as closing an endpoint.",jn,O,le,Jn,dt,Wo="Generates responses using a greedy decoding strategy until certain ending conditions are met.",Kn,V,re,Qn,mt,So="Generates responses using a greedy decoding strategy until certain ending conditions are met.",Xn,B,se,Zn,gt,Ro=`Tokenize the context and continuation and compute the log likelihood of those
tokenized sequences.`,eo,P,ie,to,pt,Yo="This function is used to compute the log likelihood of the context for perplexity metrics.",no,F,de,oo,ct,jo=`Tokenize the context and continuation and compute the log likelihood of those
tokenized sequences.`,ao,w,me,lo,ht,Jo="Encodes a context, continuation pair by taking care of the spaces in between.",ro,vt,Ko=`The advantage of pairwise is:
1) It better aligns with how LLM predicts tokens
2) Works in case len(tok(context,cont)) != len(tok(context)) + len(tok(continuation)).
E.g this can happen for chinese if no space is used between context/continuation`,St,ge,Rt,pe,Yt,k,ce,so,ft,Qo="Base configuration class for models.",io,ut,Xo=`Methods:
<strong>post_init</strong>(): Performs post-initialization checks on the configuration.
_init_configs(model_name, env_config): Initializes the model configuration.
init_configs(env_config): Initializes the model configuration using the environment configuration.
get_model_sha(): Retrieves the SHA of the model.`,jt,$,he,mo,A,ve,go,_t,Zo="Generates responses using a greedy decoding strategy until certain ending conditions are met.",po,G,fe,co,bt,ea="Compute all the parameters related to model_parallel",ho,U,ue,vo,$t,ta=`Tokenize the context and continuation and compute the log likelihood of those
tokenized sequences.`,fo,H,_e,uo,xt,na=`Tokenize the context and continuation and compute the log likelihood of those
tokenized sequences.`,_o,W,be,bo,yt,oa="Pads the <code>output_tensor</code> to the maximum length and gathers the lengths across processes.",$o,S,$e,xo,Mt,aa=`Tokenize a batch of inputs and return also the length, truncations and padding.
This step is done manually since we tokenize log probability inputs together with their continuation,
to manage possible extra spaces added at the start by tokenizers, see tok_encode_pair.`,Jt,xe,Kt,ye,Me,Qt,Ce,Le,Xt,ke,Zt,we,Te,en,Ne,De,tn,Ie,nn,Ee,on,D,qe,yo,R,ze,Mo,Ct,la="Load configuration for inference endpoint model from YAML file path.",an,Oe,Ve,ln,I,Be,Co,Lt,ra=`InferenceEndpointModels can be used both with the free inference client, or with inference
endpoints, which will use text-generation-inference to deploy your model for the duration of the evaluation.`,rn,Pe,sn,E,Fe,Lo,Y,Ae,ko,kt,sa="Load configuration for TGI endpoint model from YAML file path.",dn,Ge,Ue,mn,He,gn,We,Se,pn,Re,cn,Ye,hn,x,je,wo,j,Je,To,wt,ia="Gather together tensors of (possibly) various size spread on separate GPUs (first exchange the lengths and then pad and gather)",No,J,Ke,Do,Tt,da="Greedy generation until a stop token is generated.",Io,K,Qe,Eo,Nt,ma=`Ending conditions are submitted in several possible formats.
By default in lighteval we pass them as tuples (stop sequence, max number of items).
In the harness they sometimes are passed as dicts {“until”: .., “max_length”: …} or
as only ending conditions, either lists or strings.
Here, we convert all these formats to a tuple containing a list of ending conditions,
and a float for the max length allowed.`,qo,Q,Xe,zo,Dt,ga=`Tokenize the context and continuation and compute the log likelihood of those
tokenized sequences.`,Oo,X,Ze,Vo,It,pa="Gather together tensors of (possibly) various size spread on separate GPUs (first exchange the lengths and then pad and gather)",Bo,T,et,Po,Et,ca="Tokenize a batch of inputs and return also the length, truncations and padding",Fo,qt,ha=`We truncate to keep only at most <code>max_context</code> tokens
We pad to <code>padding_length</code> tokens`,vn,tt,fn,nt,un,ot,at,_n,q,lt,Ao,Z,rt,Go,zt,va="Generates responses using a greedy decoding strategy until certain ending conditions are met.",bn,st,$n,Ft,xn;return ee=new M({props:{title:"Models",local:"models",headingTag:"h1"}}),te=new M({props:{title:"Model",local:"model",headingTag:"h2"}}),ne=new M({props:{title:"LightevalModel",local:"lighteval.models.abstract_model.LightevalModel",headingTag:"h3"}}),oe=new u({props:{name:"class lighteval.models.abstract_model.LightevalModel",anchor:"lighteval.models.abstract_model.LightevalModel",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L57"}}),ae=new u({props:{name:"cleanup",anchor:"lighteval.models.abstract_model.LightevalModel.cleanup",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L62"}}),le=new u({props:{name:"greedy_until",anchor:"lighteval.models.abstract_model.LightevalModel.greedy_until",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"lighteval.models.abstract_model.LightevalModel.greedy_until.requests",description:"<strong>requests</strong> (list[Request]) &#x2014; list of requests containing the context and ending conditions.",name:"requests"},{anchor:"lighteval.models.abstract_model.LightevalModel.greedy_until.disable_tqdm",description:"<strong>disable_tqdm</strong> (bool, optional) &#x2014; Whether to disable the progress bar. Defaults to False.",name:"disable_tqdm"},{anchor:"lighteval.models.abstract_model.LightevalModel.greedy_until.override_bs",description:"<strong>override_bs</strong> (int, optional) &#x2014; Override the batch size for generation. Defaults to None.",name:"override_bs"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L105",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list of generated responses.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list[GenerativeResponse]</p>
`}}),re=new u({props:{name:"greedy_until_multi_turn",anchor:"lighteval.models.abstract_model.LightevalModel.greedy_until_multi_turn",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L99"}}),se=new u({props:{name:"loglikelihood",anchor:"lighteval.models.abstract_model.LightevalModel.loglikelihood",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L124"}}),ie=new u({props:{name:"loglikelihood_rolling",anchor:"lighteval.models.abstract_model.LightevalModel.loglikelihood_rolling",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L133"}}),de=new u({props:{name:"loglikelihood_single_token",anchor:"lighteval.models.abstract_model.LightevalModel.loglikelihood_single_token",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L140"}}),me=new u({props:{name:"tok_encode_pair",anchor:"lighteval.models.abstract_model.LightevalModel.tok_encode_pair",parameters:[{name:"context",val:""},{name:"continuation",val:""},{name:"pairwise",val:": bool = False"}],parametersDescription:[{anchor:"lighteval.models.abstract_model.LightevalModel.tok_encode_pair.context",description:"<strong>context</strong> (str) &#x2014; The context string to be encoded.",name:"context"},{anchor:"lighteval.models.abstract_model.LightevalModel.tok_encode_pair.continuation",description:"<strong>continuation</strong> (str) &#x2014; The continuation string to be encoded.",name:"continuation"},{anchor:"lighteval.models.abstract_model.LightevalModel.tok_encode_pair.pairwise",description:`<strong>pairwise</strong> (bool) &#x2014;
If True, encode context and continuation separately.
If False, encode them together and then split.`,name:"pairwise"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/abstract_model.py#L162",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>A tuple containing the encoded context and continuation.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Tuple[TokenSequence, TokenSequence]</p>
`}}),ge=new M({props:{title:"Accelerate and Transformers Models",local:"accelerate-and-transformers-models",headingTag:"h2"}}),pe=new M({props:{title:"BaseModel",local:"lighteval.models.transformers.base_model.BaseModelConfig",headingTag:"h3"}}),ce=new u({props:{name:"class lighteval.models.transformers.base_model.BaseModelConfig",anchor:"lighteval.models.transformers.base_model.BaseModelConfig",parameters:[{name:"pretrained",val:": str"},{name:"accelerator",val:": Accelerator = None"},{name:"tokenizer",val:": typing.Optional[str] = None"},{name:"multichoice_continuations_start_space",val:": typing.Optional[bool] = None"},{name:"pairwise_tokenization",val:": bool = False"},{name:"subfolder",val:": typing.Optional[str] = None"},{name:"revision",val:": str = 'main'"},{name:"batch_size",val:": int = -1"},{name:"max_gen_toks",val:": typing.Optional[int] = 256"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"add_special_tokens",val:": bool = True"},{name:"model_parallel",val:": typing.Optional[bool] = None"},{name:"dtype",val:": typing.Union[str, torch.dtype, NoneType] = None"},{name:"device",val:": typing.Union[int, str] = 'cuda'"},{name:"quantization_config",val:": typing.Optional[transformers.utils.quantization_config.BitsAndBytesConfig] = None"},{name:"trust_remote_code",val:": bool = False"},{name:"use_chat_template",val:": bool = False"},{name:"compile",val:": bool = False"}],parametersDescription:[{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.pretrained",description:`<strong>pretrained</strong> (str) &#x2014;
HuggingFace Hub model ID name or the path to a pre-trained
model to load. This is effectively the <code>pretrained_model_name_or_path</code>
argument of <code>from_pretrained</code> in the HuggingFace <code>transformers</code> API.`,name:"pretrained"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.accelerator",description:"<strong>accelerator</strong> (Accelerator) &#x2014; accelerator to use for model training.",name:"accelerator"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.tokenizer",description:`<strong>tokenizer</strong> (Optional[str]) &#x2014; HuggingFace Hub tokenizer ID that will be
used for tokenization.`,name:"tokenizer"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.multichoice_continuations_start_space",description:`<strong>multichoice_continuations_start_space</strong> (Optional[bool]) &#x2014; Whether to add a
space at the start of each continuation in multichoice generation.
For example, context: &#x201C;What is the capital of France?&#x201D; and choices: &#x201C;Paris&#x201D;, &#x201C;London&#x201D;.
Will be tokenized as: &#x201C;What is the capital of France? Paris&#x201D; and &#x201C;What is the capital of France? London&#x201D;.
True adds a space, False strips a space, None does nothing`,name:"multichoice_continuations_start_space"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.pairwise_tokenization",description:"<strong>pairwise_tokenization</strong> (bool) &#x2014; Whether to tokenize the context and continuation as separately or together.",name:"pairwise_tokenization"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.subfolder",description:"<strong>subfolder</strong> (Optional[str]) &#x2014; The subfolder within the model repository.",name:"subfolder"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.revision",description:"<strong>revision</strong> (str) &#x2014; The revision of the model.",name:"revision"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.batch_size",description:"<strong>batch_size</strong> (int) &#x2014; The batch size for model training.",name:"batch_size"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.max_gen_toks",description:"<strong>max_gen_toks</strong> (Optional[int]) &#x2014; The maximum number of tokens to generate.",name:"max_gen_toks"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.max_length",description:"<strong>max_length</strong> (Optional[int]) &#x2014; The maximum length of the generated output.",name:"max_length"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.add_special_tokens",description:`<strong>add_special_tokens</strong> (bool, optional, defaults to True) &#x2014; Whether to add special tokens to the input sequences.
If <code>None</code>, the default value will be set to <code>True</code> for seq2seq models (e.g. T5) and
<code>False</code> for causal models.`,name:"add_special_tokens"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.model_parallel",description:`<strong>model_parallel</strong> (bool, optional, defaults to False) &#x2014;
True/False: force to use or not the <code>accelerate</code> library to load a large
model across multiple devices.
Default: None which corresponds to comparing the number of processes with
the number of GPUs. If it&#x2019;s smaller =&gt; model-parallelism, else not.`,name:"model_parallel"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.dtype",description:`<strong>dtype</strong> (Union[str, torch.dtype], optional, defaults to None) &#x2014;):
Converts the model weights to <code>dtype</code>, if specified. Strings get
converted to <code>torch.dtype</code> objects (e.g. <code>float16</code> -&gt; <code>torch.float16</code>).
Use <code>dtype=&quot;auto&quot;</code> to derive the type from the model&#x2019;s weights.`,name:"dtype"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.device",description:"<strong>device</strong> (Union[int, str]) &#x2014; device to use for model training.",name:"device"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.quantization_config",description:`<strong>quantization_config</strong> (Optional[BitsAndBytesConfig]) &#x2014; quantization
configuration for the model, manually provided to load a normally floating point
model at a quantized precision. Needed for 4-bit and 8-bit precision.`,name:"quantization_config"},{anchor:"lighteval.models.transformers.base_model.BaseModelConfig.trust_remote_code",description:`<strong>trust_remote_code</strong> (bool) &#x2014; Whether to trust remote code during model
loading.`,name:"trust_remote_code"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L85"}}),he=new u({props:{name:"class lighteval.models.transformers.base_model.BaseModel",anchor:"lighteval.models.transformers.base_model.BaseModel",parameters:[{name:"env_config",val:": EnvConfig"},{name:"config",val:": BaseModelConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L224"}}),ve=new u({props:{name:"greedy_until",anchor:"lighteval.models.transformers.base_model.BaseModel.greedy_until",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"lighteval.models.transformers.base_model.BaseModel.greedy_until.requests",description:"<strong>requests</strong> (list[Request]) &#x2014; list of requests containing the context and ending conditions.",name:"requests"},{anchor:"lighteval.models.transformers.base_model.BaseModel.greedy_until.override_bs",description:"<strong>override_bs</strong> (int, optional) &#x2014; Override the batch size for generation. Defaults to None.",name:"override_bs"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L720",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list of generated responses.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list[GenerativeResponse]</p>
`}}),fe=new u({props:{name:"init_model_parallel",anchor:"lighteval.models.transformers.base_model.BaseModel.init_model_parallel",parameters:[{name:"model_parallel",val:": bool | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L352"}}),ue=new u({props:{name:"loglikelihood",anchor:"lighteval.models.transformers.base_model.BaseModel.loglikelihood",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"lighteval.models.transformers.base_model.BaseModel.loglikelihood.requests",description:"<strong>requests</strong> (list[Tuple[str, dict]]) &#x2014; <em>description</em>",name:"requests"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L926",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p><em>description</em></p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list[Tuple[float, bool]]</p>
`}}),_e=new u({props:{name:"loglikelihood_single_token",anchor:"lighteval.models.transformers.base_model.BaseModel.loglikelihood_single_token",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"lighteval.models.transformers.base_model.BaseModel.loglikelihood_single_token.requests",description:"<strong>requests</strong> (list[Tuple[str, dict]]) &#x2014; <em>description</em>",name:"requests"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L1185",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p><em>description</em></p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list[Tuple[float, bool]]</p>
`}}),be=new u({props:{name:"pad_and_gather",anchor:"lighteval.models.transformers.base_model.BaseModel.pad_and_gather",parameters:[{name:"output_tensor",val:": Tensor"},{name:"drop_last_samples",val:": bool = True"},{name:"num_samples",val:": int = None"}],parametersDescription:[{anchor:"lighteval.models.transformers.base_model.BaseModel.pad_and_gather.output_tensor",description:"<strong>output_tensor</strong> (torch.Tensor) &#x2014; The output tensor to be padded.",name:"output_tensor"},{anchor:"lighteval.models.transformers.base_model.BaseModel.pad_and_gather.drop_last_samples",description:"<strong>drop_last_samples</strong> (bool, optional) &#x2014; Whether to drop the last samples during gathering.",name:"drop_last_samples"},{anchor:"lighteval.models.transformers.base_model.BaseModel.pad_and_gather.Last",description:`<strong>Last</strong> samples are dropped when the number of samples is not divisible by the number of processes. &#x2014;
Defaults to True.`,name:"Last"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L1149",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The padded output tensor and the gathered length tensor.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>torch.Tensor</p>
`}}),$e=new u({props:{name:"prepare_batch_logprob",anchor:"lighteval.models.transformers.base_model.BaseModel.prepare_batch_logprob",parameters:[{name:"batch",val:": list"},{name:"padding_length",val:": int"},{name:"max_context",val:": typing.Optional[int] = None"},{name:"single_token",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/base_model.py#L1088"}}),xe=new M({props:{title:"AdapterModel",local:"lighteval.models.transformers.adapter_model.AdapterModelConfig",headingTag:"h3"}}),Me=new u({props:{name:"class lighteval.models.transformers.adapter_model.AdapterModelConfig",anchor:"lighteval.models.transformers.adapter_model.AdapterModelConfig",parameters:[{name:"pretrained",val:": str"},{name:"accelerator",val:": Accelerator = None"},{name:"tokenizer",val:": typing.Optional[str] = None"},{name:"multichoice_continuations_start_space",val:": typing.Optional[bool] = None"},{name:"pairwise_tokenization",val:": bool = False"},{name:"subfolder",val:": typing.Optional[str] = None"},{name:"revision",val:": str = 'main'"},{name:"batch_size",val:": int = -1"},{name:"max_gen_toks",val:": typing.Optional[int] = 256"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"add_special_tokens",val:": bool = True"},{name:"model_parallel",val:": typing.Optional[bool] = None"},{name:"dtype",val:": typing.Union[str, torch.dtype, NoneType] = None"},{name:"device",val:": typing.Union[int, str] = 'cuda'"},{name:"quantization_config",val:": typing.Optional[transformers.utils.quantization_config.BitsAndBytesConfig] = None"},{name:"trust_remote_code",val:": bool = False"},{name:"use_chat_template",val:": bool = False"},{name:"compile",val:": bool = False"},{name:"base_model",val:": str = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/adapter_model.py#L42"}}),Le=new u({props:{name:"class lighteval.models.transformers.adapter_model.AdapterModel",anchor:"lighteval.models.transformers.adapter_model.AdapterModel",parameters:[{name:"env_config",val:": EnvConfig"},{name:"config",val:": BaseModelConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/adapter_model.py#L60"}}),ke=new M({props:{title:"DeltaModel",local:"lighteval.models.transformers.delta_model.DeltaModelConfig",headingTag:"h3"}}),Te=new u({props:{name:"class lighteval.models.transformers.delta_model.DeltaModelConfig",anchor:"lighteval.models.transformers.delta_model.DeltaModelConfig",parameters:[{name:"pretrained",val:": str"},{name:"accelerator",val:": Accelerator = None"},{name:"tokenizer",val:": typing.Optional[str] = None"},{name:"multichoice_continuations_start_space",val:": typing.Optional[bool] = None"},{name:"pairwise_tokenization",val:": bool = False"},{name:"subfolder",val:": typing.Optional[str] = None"},{name:"revision",val:": str = 'main'"},{name:"batch_size",val:": int = -1"},{name:"max_gen_toks",val:": typing.Optional[int] = 256"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"add_special_tokens",val:": bool = True"},{name:"model_parallel",val:": typing.Optional[bool] = None"},{name:"dtype",val:": typing.Union[str, torch.dtype, NoneType] = None"},{name:"device",val:": typing.Union[int, str] = 'cuda'"},{name:"quantization_config",val:": typing.Optional[transformers.utils.quantization_config.BitsAndBytesConfig] = None"},{name:"trust_remote_code",val:": bool = False"},{name:"use_chat_template",val:": bool = False"},{name:"compile",val:": bool = False"},{name:"base_model",val:": str = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/delta_model.py#L39"}}),De=new u({props:{name:"class lighteval.models.transformers.delta_model.DeltaModel",anchor:"lighteval.models.transformers.delta_model.DeltaModel",parameters:[{name:"env_config",val:": EnvConfig"},{name:"config",val:": BaseModelConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/transformers/delta_model.py#L56"}}),Ie=new M({props:{title:"Endpoints-based Models",local:"endpoints-based-models",headingTag:"h2"}}),Ee=new M({props:{title:"InferenceEndpointModel",local:"lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig",headingTag:"h3"}}),qe=new u({props:{name:"class lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig",anchor:"lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig",parameters:[{name:"endpoint_name",val:": str = None"},{name:"model_name",val:": str = None"},{name:"reuse_existing",val:": bool = False"},{name:"accelerator",val:": str = 'gpu'"},{name:"model_dtype",val:": str = None"},{name:"vendor",val:": str = 'aws'"},{name:"region",val:": str = 'us-east-1'"},{name:"instance_size",val:": str = None"},{name:"instance_type",val:": str = None"},{name:"framework",val:": str = 'pytorch'"},{name:"endpoint_type",val:": str = 'protected'"},{name:"add_special_tokens",val:": bool = True"},{name:"revision",val:": str = 'main'"},{name:"namespace",val:": str = None"},{name:"image_url",val:": str = None"},{name:"env_vars",val:": dict = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/endpoint_model.py#L91"}}),ze=new u({props:{name:"from_path",anchor:"lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig.from_path",parameters:[{name:"path",val:": str"}],parametersDescription:[{anchor:"lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig.from_path.path",description:"<strong>path</strong> (<code>str</code>) &#x2014; Path of the model configuration YAML file.",name:"path"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/endpoint_model.py#L120",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Configuration for inference endpoint model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>InferenceEndpointModelConfig</code></p>
`}}),Ve=new u({props:{name:"class lighteval.models.endpoints.endpoint_model.ServerlessEndpointModelConfig",anchor:"lighteval.models.endpoints.endpoint_model.ServerlessEndpointModelConfig",parameters:[{name:"model_name",val:": str"},{name:"add_special_tokens",val:": bool = True"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/endpoint_model.py#L77"}}),Be=new u({props:{name:"class lighteval.models.endpoints.endpoint_model.InferenceEndpointModel",anchor:"lighteval.models.endpoints.endpoint_model.InferenceEndpointModel",parameters:[{name:"config",val:": typing.Union[lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig, lighteval.models.endpoints.endpoint_model.ServerlessEndpointModelConfig]"},{name:"env_config",val:": EnvConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/endpoint_model.py#L155"}}),Pe=new M({props:{title:"TGI ModelClient",local:"lighteval.models.endpoints.tgi_model.TGIModelConfig",headingTag:"h3"}}),Fe=new u({props:{name:"class lighteval.models.endpoints.tgi_model.TGIModelConfig",anchor:"lighteval.models.endpoints.tgi_model.TGIModelConfig",parameters:[{name:"inference_server_address",val:": str"},{name:"inference_server_auth",val:": str"},{name:"model_id",val:": str"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/tgi_model.py#L48"}}),Ae=new u({props:{name:"from_path",anchor:"lighteval.models.endpoints.tgi_model.TGIModelConfig.from_path",parameters:[{name:"path",val:": str"}],parametersDescription:[{anchor:"lighteval.models.endpoints.tgi_model.TGIModelConfig.from_path.path",description:"<strong>path</strong> (<code>str</code>) &#x2014; Path of the model configuration YAML file.",name:"path"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/tgi_model.py#L54",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>Configuration for TGI endpoint model.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>TGIModelConfig</code></p>
`}}),Ue=new u({props:{name:"class lighteval.models.endpoints.tgi_model.ModelClient",anchor:"lighteval.models.endpoints.tgi_model.ModelClient",parameters:[{name:"address",val:""},{name:"auth_token",val:" = None"},{name:"model_id",val:" = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/tgi_model.py#L73"}}),He=new M({props:{title:"Open AI Models",local:"lighteval.models.endpoints.openai_model.OpenAIClient",headingTag:"h3"}}),Se=new u({props:{name:"class lighteval.models.endpoints.openai_model.OpenAIClient",anchor:"lighteval.models.endpoints.openai_model.OpenAIClient",parameters:[{name:"config",val:""},{name:"env_config",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/endpoints/openai_model.py#L67"}}),Re=new M({props:{title:"Nanotron Model",local:"nanotron-model",headingTag:"h2"}}),Ye=new M({props:{title:"NanotronLightevalModel",local:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel",headingTag:"h3"}}),je=new u({props:{name:"class lighteval.models.nanotron.nanotron_model.NanotronLightevalModel",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel",parameters:[{name:"checkpoint_path",val:": str"},{name:"nanotron_config",val:": FullNanotronConfig"},{name:"parallel_context",val:": ParallelContext"},{name:"max_gen_toks",val:": typing.Optional[int] = 256"},{name:"max_length",val:": typing.Optional[int] = None"},{name:"add_special_tokens",val:": typing.Optional[bool] = True"},{name:"dtype",val:": typing.Union[str, torch.dtype, NoneType] = None"},{name:"trust_remote_code",val:": bool = False"},{name:"debug_one_layer_model",val:": bool = False"},{name:"model_class",val:": typing.Optional[typing.Type] = None"},{name:"env_config",val:": EnvConfig = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L87"}}),Je=new u({props:{name:"gather",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.gather",parameters:[{name:"output_tensor",val:": Tensor"},{name:"process_group",val:": dist.ProcessGroup = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L597"}}),Ke=new u({props:{name:"greedy_until",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.greedy_until",parameters:[{name:"requests",val:": typing.List[lighteval.tasks.requests.GreedyUntilRequest]"},{name:"disable_tqdm",val:": bool = False"},{name:"override_bs",val:": int = -1"},{name:"num_dataset_splits",val:": int = 1"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L1098"}}),Qe=new u({props:{name:"homogeneize_ending_conditions",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.homogeneize_ending_conditions",parameters:[{name:"ending_condition",val:": tuple | dict | list | str"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L348"}}),Xe=new u({props:{name:"loglikelihood_single_token",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.loglikelihood_single_token",parameters:[{name:"requests",val:": typing.List[typing.Tuple[str, dict]]"},{name:"override_bs",val:" = 0"}],parametersDescription:[{anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.loglikelihood_single_token.requests",description:"<strong>requests</strong> (List[Tuple[str, dict]]) &#x2014; <em>description</em>",name:"requests"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L402",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p><em>description</em></p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>List[Tuple[float, bool]]</p>
`}}),Ze=new u({props:{name:"pad_and_gather",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.pad_and_gather",parameters:[{name:"output_tensor",val:": Tensor"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L607"}}),et=new u({props:{name:"prepare_batch",anchor:"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel.prepare_batch",parameters:[{name:"batch",val:": typing.List[str]"},{name:"padding_length",val:": int"},{name:"max_context",val:": typing.Optional[int] = None"},{name:"full_attention_masks",val:": bool = False"},{name:"pad_on_left",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/nanotron/nanotron_model.py#L480"}}),tt=new M({props:{title:"VLLM Model",local:"vllm-model",headingTag:"h2"}}),nt=new M({props:{title:"VLLMModel",local:"lighteval.models.vllm.vllm_model.VLLMModelConfig",headingTag:"h3"}}),at=new u({props:{name:"class lighteval.models.vllm.vllm_model.VLLMModelConfig",anchor:"lighteval.models.vllm.vllm_model.VLLMModelConfig",parameters:[{name:"pretrained",val:": str"},{name:"gpu_memory_utilisation",val:": float = 0.9"},{name:"revision",val:": str = 'main'"},{name:"dtype",val:": str | None = None"},{name:"tensor_parallel_size",val:": int = 1"},{name:"pipeline_parallel_size",val:": int = 1"},{name:"data_parallel_size",val:": int = 1"},{name:"max_model_length",val:": int | None = None"},{name:"swap_space",val:": int = 4"},{name:"seed",val:": int = 1234"},{name:"trust_remote_code",val:": bool = False"},{name:"use_chat_template",val:": bool = False"},{name:"add_special_tokens",val:": bool = True"},{name:"multichoice_continuations_start_space",val:": bool = True"},{name:"pairwise_tokenization",val:": bool = False"},{name:"subfolder",val:": typing.Optional[str] = None"},{name:"temperature",val:": float = 0.6"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/vllm/vllm_model.py#L69"}}),lt=new u({props:{name:"class lighteval.models.vllm.vllm_model.VLLMModel",anchor:"lighteval.models.vllm.vllm_model.VLLMModel",parameters:[{name:"config",val:": VLLMModelConfig"},{name:"env_config",val:": EnvConfig"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/vllm/vllm_model.py#L93"}}),rt=new u({props:{name:"greedy_until",anchor:"lighteval.models.vllm.vllm_model.VLLMModel.greedy_until",parameters:[{name:"requests",val:": list"},{name:"override_bs",val:": typing.Optional[int] = None"}],parametersDescription:[{anchor:"lighteval.models.vllm.vllm_model.VLLMModel.greedy_until.requests",description:"<strong>requests</strong> (list[Request]) &#x2014; list of requests containing the context and ending conditions.",name:"requests"},{anchor:"lighteval.models.vllm.vllm_model.VLLMModel.greedy_until.override_bs",description:"<strong>override_bs</strong> (int, optional) &#x2014; Override the batch size for generation. Defaults to None.",name:"override_bs"}],source:"https://github.com/huggingface/lighteval/blob/vr_476/src/lighteval/models/vllm/vllm_model.py#L199",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list of generated responses.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p>list[GenerateReturn]</p>
`}}),st=new Da({props:{source:"https://github.com/huggingface/lighteval/blob/main/docs/source/package_reference/models.mdx"}}),{c(){N=r("meta"),At=o(),Pt=r("p"),Gt=o(),i(ee.$$.fragment),Ut=o(),i(te.$$.fragment),Ht=o(),i(ne.$$.fragment),Wt=o(),b=r("div"),i(oe.$$.fragment),Rn=o(),z=r("div"),i(ae.$$.fragment),Yn=o(),it=r("p"),it.textContent=Ho,jn=o(),O=r("div"),i(le.$$.fragment),Jn=o(),dt=r("p"),dt.textContent=Wo,Kn=o(),V=r("div"),i(re.$$.fragment),Qn=o(),mt=r("p"),mt.textContent=So,Xn=o(),B=r("div"),i(se.$$.fragment),Zn=o(),gt=r("p"),gt.textContent=Ro,eo=o(),P=r("div"),i(ie.$$.fragment),to=o(),pt=r("p"),pt.textContent=Yo,no=o(),F=r("div"),i(de.$$.fragment),oo=o(),ct=r("p"),ct.textContent=jo,ao=o(),w=r("div"),i(me.$$.fragment),lo=o(),ht=r("p"),ht.textContent=Jo,ro=o(),vt=r("p"),vt.textContent=Ko,St=o(),i(ge.$$.fragment),Rt=o(),i(pe.$$.fragment),Yt=o(),k=r("div"),i(ce.$$.fragment),so=o(),ft=r("p"),ft.textContent=Qo,io=o(),ut=r("p"),ut.innerHTML=Xo,jt=o(),$=r("div"),i(he.$$.fragment),mo=o(),A=r("div"),i(ve.$$.fragment),go=o(),_t=r("p"),_t.textContent=Zo,po=o(),G=r("div"),i(fe.$$.fragment),co=o(),bt=r("p"),bt.textContent=ea,ho=o(),U=r("div"),i(ue.$$.fragment),vo=o(),$t=r("p"),$t.textContent=ta,fo=o(),H=r("div"),i(_e.$$.fragment),uo=o(),xt=r("p"),xt.textContent=na,_o=o(),W=r("div"),i(be.$$.fragment),bo=o(),yt=r("p"),yt.innerHTML=oa,$o=o(),S=r("div"),i($e.$$.fragment),xo=o(),Mt=r("p"),Mt.textContent=aa,Jt=o(),i(xe.$$.fragment),Kt=o(),ye=r("div"),i(Me.$$.fragment),Qt=o(),Ce=r("div"),i(Le.$$.fragment),Xt=o(),i(ke.$$.fragment),Zt=o(),we=r("div"),i(Te.$$.fragment),en=o(),Ne=r("div"),i(De.$$.fragment),tn=o(),i(Ie.$$.fragment),nn=o(),i(Ee.$$.fragment),on=o(),D=r("div"),i(qe.$$.fragment),yo=o(),R=r("div"),i(ze.$$.fragment),Mo=o(),Ct=r("p"),Ct.textContent=la,an=o(),Oe=r("div"),i(Ve.$$.fragment),ln=o(),I=r("div"),i(Be.$$.fragment),Co=o(),Lt=r("p"),Lt.textContent=ra,rn=o(),i(Pe.$$.fragment),sn=o(),E=r("div"),i(Fe.$$.fragment),Lo=o(),Y=r("div"),i(Ae.$$.fragment),ko=o(),kt=r("p"),kt.textContent=sa,dn=o(),Ge=r("div"),i(Ue.$$.fragment),mn=o(),i(He.$$.fragment),gn=o(),We=r("div"),i(Se.$$.fragment),pn=o(),i(Re.$$.fragment),cn=o(),i(Ye.$$.fragment),hn=o(),x=r("div"),i(je.$$.fragment),wo=o(),j=r("div"),i(Je.$$.fragment),To=o(),wt=r("p"),wt.textContent=ia,No=o(),J=r("div"),i(Ke.$$.fragment),Do=o(),Tt=r("p"),Tt.textContent=da,Io=o(),K=r("div"),i(Qe.$$.fragment),Eo=o(),Nt=r("p"),Nt.textContent=ma,qo=o(),Q=r("div"),i(Xe.$$.fragment),zo=o(),Dt=r("p"),Dt.textContent=ga,Oo=o(),X=r("div"),i(Ze.$$.fragment),Vo=o(),It=r("p"),It.textContent=pa,Bo=o(),T=r("div"),i(et.$$.fragment),Po=o(),Et=r("p"),Et.textContent=ca,Fo=o(),qt=r("p"),qt.innerHTML=ha,vn=o(),i(tt.$$.fragment),fn=o(),i(nt.$$.fragment),un=o(),ot=r("div"),i(at.$$.fragment),_n=o(),q=r("div"),i(lt.$$.fragment),Ao=o(),Z=r("div"),i(rt.$$.fragment),Go=o(),zt=r("p"),zt.textContent=va,bn=o(),i(st.$$.fragment),$n=o(),Ft=r("p"),this.h()},l(e){const l=Na("svelte-u9bgzb",document.head);N=s(l,"META",{name:!0,content:!0}),l.forEach(n),At=a(e),Pt=s(e,"P",{}),v(Pt).forEach(n),Gt=a(e),d(ee.$$.fragment,e),Ut=a(e),d(te.$$.fragment,e),Ht=a(e),d(ne.$$.fragment,e),Wt=a(e),b=s(e,"DIV",{class:!0});var y=v(b);d(oe.$$.fragment,y),Rn=a(y),z=s(y,"DIV",{class:!0});var yn=v(z);d(ae.$$.fragment,yn),Yn=a(yn),it=s(yn,"P",{"data-svelte-h":!0}),_(it)!=="svelte-l9my6g"&&(it.textContent=Ho),yn.forEach(n),jn=a(y),O=s(y,"DIV",{class:!0});var Mn=v(O);d(le.$$.fragment,Mn),Jn=a(Mn),dt=s(Mn,"P",{"data-svelte-h":!0}),_(dt)!=="svelte-1smaw30"&&(dt.textContent=Wo),Mn.forEach(n),Kn=a(y),V=s(y,"DIV",{class:!0});var Cn=v(V);d(re.$$.fragment,Cn),Qn=a(Cn),mt=s(Cn,"P",{"data-svelte-h":!0}),_(mt)!=="svelte-1smaw30"&&(mt.textContent=So),Cn.forEach(n),Xn=a(y),B=s(y,"DIV",{class:!0});var Ln=v(B);d(se.$$.fragment,Ln),Zn=a(Ln),gt=s(Ln,"P",{"data-svelte-h":!0}),_(gt)!=="svelte-14ip3fh"&&(gt.textContent=Ro),Ln.forEach(n),eo=a(y),P=s(y,"DIV",{class:!0});var kn=v(P);d(ie.$$.fragment,kn),to=a(kn),pt=s(kn,"P",{"data-svelte-h":!0}),_(pt)!=="svelte-1g4mbb"&&(pt.textContent=Yo),kn.forEach(n),no=a(y),F=s(y,"DIV",{class:!0});var wn=v(F);d(de.$$.fragment,wn),oo=a(wn),ct=s(wn,"P",{"data-svelte-h":!0}),_(ct)!=="svelte-14ip3fh"&&(ct.textContent=jo),wn.forEach(n),ao=a(y),w=s(y,"DIV",{class:!0});var Ot=v(w);d(me.$$.fragment,Ot),lo=a(Ot),ht=s(Ot,"P",{"data-svelte-h":!0}),_(ht)!=="svelte-1sddtie"&&(ht.textContent=Jo),ro=a(Ot),vt=s(Ot,"P",{"data-svelte-h":!0}),_(vt)!=="svelte-gax3uy"&&(vt.textContent=Ko),Ot.forEach(n),y.forEach(n),St=a(e),d(ge.$$.fragment,e),Rt=a(e),d(pe.$$.fragment,e),Yt=a(e),k=s(e,"DIV",{class:!0});var Vt=v(k);d(ce.$$.fragment,Vt),so=a(Vt),ft=s(Vt,"P",{"data-svelte-h":!0}),_(ft)!=="svelte-rh03fc"&&(ft.textContent=Qo),io=a(Vt),ut=s(Vt,"P",{"data-svelte-h":!0}),_(ut)!=="svelte-mdcuay"&&(ut.innerHTML=Xo),Vt.forEach(n),jt=a(e),$=s(e,"DIV",{class:!0});var C=v($);d(he.$$.fragment,C),mo=a(C),A=s(C,"DIV",{class:!0});var Tn=v(A);d(ve.$$.fragment,Tn),go=a(Tn),_t=s(Tn,"P",{"data-svelte-h":!0}),_(_t)!=="svelte-1smaw30"&&(_t.textContent=Zo),Tn.forEach(n),po=a(C),G=s(C,"DIV",{class:!0});var Nn=v(G);d(fe.$$.fragment,Nn),co=a(Nn),bt=s(Nn,"P",{"data-svelte-h":!0}),_(bt)!=="svelte-1syquxe"&&(bt.textContent=ea),Nn.forEach(n),ho=a(C),U=s(C,"DIV",{class:!0});var Dn=v(U);d(ue.$$.fragment,Dn),vo=a(Dn),$t=s(Dn,"P",{"data-svelte-h":!0}),_($t)!=="svelte-14ip3fh"&&($t.textContent=ta),Dn.forEach(n),fo=a(C),H=s(C,"DIV",{class:!0});var In=v(H);d(_e.$$.fragment,In),uo=a(In),xt=s(In,"P",{"data-svelte-h":!0}),_(xt)!=="svelte-14ip3fh"&&(xt.textContent=na),In.forEach(n),_o=a(C),W=s(C,"DIV",{class:!0});var En=v(W);d(be.$$.fragment,En),bo=a(En),yt=s(En,"P",{"data-svelte-h":!0}),_(yt)!=="svelte-no3bag"&&(yt.innerHTML=oa),En.forEach(n),$o=a(C),S=s(C,"DIV",{class:!0});var qn=v(S);d($e.$$.fragment,qn),xo=a(qn),Mt=s(qn,"P",{"data-svelte-h":!0}),_(Mt)!=="svelte-bu0ewe"&&(Mt.textContent=aa),qn.forEach(n),C.forEach(n),Jt=a(e),d(xe.$$.fragment,e),Kt=a(e),ye=s(e,"DIV",{class:!0});var fa=v(ye);d(Me.$$.fragment,fa),fa.forEach(n),Qt=a(e),Ce=s(e,"DIV",{class:!0});var ua=v(Ce);d(Le.$$.fragment,ua),ua.forEach(n),Xt=a(e),d(ke.$$.fragment,e),Zt=a(e),we=s(e,"DIV",{class:!0});var _a=v(we);d(Te.$$.fragment,_a),_a.forEach(n),en=a(e),Ne=s(e,"DIV",{class:!0});var ba=v(Ne);d(De.$$.fragment,ba),ba.forEach(n),tn=a(e),d(Ie.$$.fragment,e),nn=a(e),d(Ee.$$.fragment,e),on=a(e),D=s(e,"DIV",{class:!0});var zn=v(D);d(qe.$$.fragment,zn),yo=a(zn),R=s(zn,"DIV",{class:!0});var On=v(R);d(ze.$$.fragment,On),Mo=a(On),Ct=s(On,"P",{"data-svelte-h":!0}),_(Ct)!=="svelte-i7nrhq"&&(Ct.textContent=la),On.forEach(n),zn.forEach(n),an=a(e),Oe=s(e,"DIV",{class:!0});var $a=v(Oe);d(Ve.$$.fragment,$a),$a.forEach(n),ln=a(e),I=s(e,"DIV",{class:!0});var Vn=v(I);d(Be.$$.fragment,Vn),Co=a(Vn),Lt=s(Vn,"P",{"data-svelte-h":!0}),_(Lt)!=="svelte-1nzgk8o"&&(Lt.textContent=ra),Vn.forEach(n),rn=a(e),d(Pe.$$.fragment,e),sn=a(e),E=s(e,"DIV",{class:!0});var Bn=v(E);d(Fe.$$.fragment,Bn),Lo=a(Bn),Y=s(Bn,"DIV",{class:!0});var Pn=v(Y);d(Ae.$$.fragment,Pn),ko=a(Pn),kt=s(Pn,"P",{"data-svelte-h":!0}),_(kt)!=="svelte-18fuger"&&(kt.textContent=sa),Pn.forEach(n),Bn.forEach(n),dn=a(e),Ge=s(e,"DIV",{class:!0});var xa=v(Ge);d(Ue.$$.fragment,xa),xa.forEach(n),mn=a(e),d(He.$$.fragment,e),gn=a(e),We=s(e,"DIV",{class:!0});var ya=v(We);d(Se.$$.fragment,ya),ya.forEach(n),pn=a(e),d(Re.$$.fragment,e),cn=a(e),d(Ye.$$.fragment,e),hn=a(e),x=s(e,"DIV",{class:!0});var L=v(x);d(je.$$.fragment,L),wo=a(L),j=s(L,"DIV",{class:!0});var Fn=v(j);d(Je.$$.fragment,Fn),To=a(Fn),wt=s(Fn,"P",{"data-svelte-h":!0}),_(wt)!=="svelte-1ix7yvr"&&(wt.textContent=ia),Fn.forEach(n),No=a(L),J=s(L,"DIV",{class:!0});var An=v(J);d(Ke.$$.fragment,An),Do=a(An),Tt=s(An,"P",{"data-svelte-h":!0}),_(Tt)!=="svelte-1a65t"&&(Tt.textContent=da),An.forEach(n),Io=a(L),K=s(L,"DIV",{class:!0});var Gn=v(K);d(Qe.$$.fragment,Gn),Eo=a(Gn),Nt=s(Gn,"P",{"data-svelte-h":!0}),_(Nt)!=="svelte-11j6bwf"&&(Nt.textContent=ma),Gn.forEach(n),qo=a(L),Q=s(L,"DIV",{class:!0});var Un=v(Q);d(Xe.$$.fragment,Un),zo=a(Un),Dt=s(Un,"P",{"data-svelte-h":!0}),_(Dt)!=="svelte-14ip3fh"&&(Dt.textContent=ga),Un.forEach(n),Oo=a(L),X=s(L,"DIV",{class:!0});var Hn=v(X);d(Ze.$$.fragment,Hn),Vo=a(Hn),It=s(Hn,"P",{"data-svelte-h":!0}),_(It)!=="svelte-1ix7yvr"&&(It.textContent=pa),Hn.forEach(n),Bo=a(L),T=s(L,"DIV",{class:!0});var Bt=v(T);d(et.$$.fragment,Bt),Po=a(Bt),Et=s(Bt,"P",{"data-svelte-h":!0}),_(Et)!=="svelte-4fdlex"&&(Et.textContent=ca),Fo=a(Bt),qt=s(Bt,"P",{"data-svelte-h":!0}),_(qt)!=="svelte-15k0n2q"&&(qt.innerHTML=ha),Bt.forEach(n),L.forEach(n),vn=a(e),d(tt.$$.fragment,e),fn=a(e),d(nt.$$.fragment,e),un=a(e),ot=s(e,"DIV",{class:!0});var Ma=v(ot);d(at.$$.fragment,Ma),Ma.forEach(n),_n=a(e),q=s(e,"DIV",{class:!0});var Wn=v(q);d(lt.$$.fragment,Wn),Ao=a(Wn),Z=s(Wn,"DIV",{class:!0});var Sn=v(Z);d(rt.$$.fragment,Sn),Go=a(Sn),zt=s(Sn,"P",{"data-svelte-h":!0}),_(zt)!=="svelte-1smaw30"&&(zt.textContent=va),Sn.forEach(n),Wn.forEach(n),bn=a(e),d(st.$$.fragment,e),$n=a(e),Ft=s(e,"P",{}),v(Ft).forEach(n),this.h()},h(){f(N,"name","hf:doc:metadata"),f(N,"content",Ea),f(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f($,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(ot,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),f(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,N),h(e,At,l),h(e,Pt,l),h(e,Gt,l),m(ee,e,l),h(e,Ut,l),m(te,e,l),h(e,Ht,l),m(ne,e,l),h(e,Wt,l),h(e,b,l),m(oe,b,null),t(b,Rn),t(b,z),m(ae,z,null),t(z,Yn),t(z,it),t(b,jn),t(b,O),m(le,O,null),t(O,Jn),t(O,dt),t(b,Kn),t(b,V),m(re,V,null),t(V,Qn),t(V,mt),t(b,Xn),t(b,B),m(se,B,null),t(B,Zn),t(B,gt),t(b,eo),t(b,P),m(ie,P,null),t(P,to),t(P,pt),t(b,no),t(b,F),m(de,F,null),t(F,oo),t(F,ct),t(b,ao),t(b,w),m(me,w,null),t(w,lo),t(w,ht),t(w,ro),t(w,vt),h(e,St,l),m(ge,e,l),h(e,Rt,l),m(pe,e,l),h(e,Yt,l),h(e,k,l),m(ce,k,null),t(k,so),t(k,ft),t(k,io),t(k,ut),h(e,jt,l),h(e,$,l),m(he,$,null),t($,mo),t($,A),m(ve,A,null),t(A,go),t(A,_t),t($,po),t($,G),m(fe,G,null),t(G,co),t(G,bt),t($,ho),t($,U),m(ue,U,null),t(U,vo),t(U,$t),t($,fo),t($,H),m(_e,H,null),t(H,uo),t(H,xt),t($,_o),t($,W),m(be,W,null),t(W,bo),t(W,yt),t($,$o),t($,S),m($e,S,null),t(S,xo),t(S,Mt),h(e,Jt,l),m(xe,e,l),h(e,Kt,l),h(e,ye,l),m(Me,ye,null),h(e,Qt,l),h(e,Ce,l),m(Le,Ce,null),h(e,Xt,l),m(ke,e,l),h(e,Zt,l),h(e,we,l),m(Te,we,null),h(e,en,l),h(e,Ne,l),m(De,Ne,null),h(e,tn,l),m(Ie,e,l),h(e,nn,l),m(Ee,e,l),h(e,on,l),h(e,D,l),m(qe,D,null),t(D,yo),t(D,R),m(ze,R,null),t(R,Mo),t(R,Ct),h(e,an,l),h(e,Oe,l),m(Ve,Oe,null),h(e,ln,l),h(e,I,l),m(Be,I,null),t(I,Co),t(I,Lt),h(e,rn,l),m(Pe,e,l),h(e,sn,l),h(e,E,l),m(Fe,E,null),t(E,Lo),t(E,Y),m(Ae,Y,null),t(Y,ko),t(Y,kt),h(e,dn,l),h(e,Ge,l),m(Ue,Ge,null),h(e,mn,l),m(He,e,l),h(e,gn,l),h(e,We,l),m(Se,We,null),h(e,pn,l),m(Re,e,l),h(e,cn,l),m(Ye,e,l),h(e,hn,l),h(e,x,l),m(je,x,null),t(x,wo),t(x,j),m(Je,j,null),t(j,To),t(j,wt),t(x,No),t(x,J),m(Ke,J,null),t(J,Do),t(J,Tt),t(x,Io),t(x,K),m(Qe,K,null),t(K,Eo),t(K,Nt),t(x,qo),t(x,Q),m(Xe,Q,null),t(Q,zo),t(Q,Dt),t(x,Oo),t(x,X),m(Ze,X,null),t(X,Vo),t(X,It),t(x,Bo),t(x,T),m(et,T,null),t(T,Po),t(T,Et),t(T,Fo),t(T,qt),h(e,vn,l),m(tt,e,l),h(e,fn,l),m(nt,e,l),h(e,un,l),h(e,ot,l),m(at,ot,null),h(e,_n,l),h(e,q,l),m(lt,q,null),t(q,Ao),t(q,Z),m(rt,Z,null),t(Z,Go),t(Z,zt),h(e,bn,l),m(st,e,l),h(e,$n,l),h(e,Ft,l),xn=!0},p:La,i(e){xn||(g(ee.$$.fragment,e),g(te.$$.fragment,e),g(ne.$$.fragment,e),g(oe.$$.fragment,e),g(ae.$$.fragment,e),g(le.$$.fragment,e),g(re.$$.fragment,e),g(se.$$.fragment,e),g(ie.$$.fragment,e),g(de.$$.fragment,e),g(me.$$.fragment,e),g(ge.$$.fragment,e),g(pe.$$.fragment,e),g(ce.$$.fragment,e),g(he.$$.fragment,e),g(ve.$$.fragment,e),g(fe.$$.fragment,e),g(ue.$$.fragment,e),g(_e.$$.fragment,e),g(be.$$.fragment,e),g($e.$$.fragment,e),g(xe.$$.fragment,e),g(Me.$$.fragment,e),g(Le.$$.fragment,e),g(ke.$$.fragment,e),g(Te.$$.fragment,e),g(De.$$.fragment,e),g(Ie.$$.fragment,e),g(Ee.$$.fragment,e),g(qe.$$.fragment,e),g(ze.$$.fragment,e),g(Ve.$$.fragment,e),g(Be.$$.fragment,e),g(Pe.$$.fragment,e),g(Fe.$$.fragment,e),g(Ae.$$.fragment,e),g(Ue.$$.fragment,e),g(He.$$.fragment,e),g(Se.$$.fragment,e),g(Re.$$.fragment,e),g(Ye.$$.fragment,e),g(je.$$.fragment,e),g(Je.$$.fragment,e),g(Ke.$$.fragment,e),g(Qe.$$.fragment,e),g(Xe.$$.fragment,e),g(Ze.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(nt.$$.fragment,e),g(at.$$.fragment,e),g(lt.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),xn=!0)},o(e){p(ee.$$.fragment,e),p(te.$$.fragment,e),p(ne.$$.fragment,e),p(oe.$$.fragment,e),p(ae.$$.fragment,e),p(le.$$.fragment,e),p(re.$$.fragment,e),p(se.$$.fragment,e),p(ie.$$.fragment,e),p(de.$$.fragment,e),p(me.$$.fragment,e),p(ge.$$.fragment,e),p(pe.$$.fragment,e),p(ce.$$.fragment,e),p(he.$$.fragment,e),p(ve.$$.fragment,e),p(fe.$$.fragment,e),p(ue.$$.fragment,e),p(_e.$$.fragment,e),p(be.$$.fragment,e),p($e.$$.fragment,e),p(xe.$$.fragment,e),p(Me.$$.fragment,e),p(Le.$$.fragment,e),p(ke.$$.fragment,e),p(Te.$$.fragment,e),p(De.$$.fragment,e),p(Ie.$$.fragment,e),p(Ee.$$.fragment,e),p(qe.$$.fragment,e),p(ze.$$.fragment,e),p(Ve.$$.fragment,e),p(Be.$$.fragment,e),p(Pe.$$.fragment,e),p(Fe.$$.fragment,e),p(Ae.$$.fragment,e),p(Ue.$$.fragment,e),p(He.$$.fragment,e),p(Se.$$.fragment,e),p(Re.$$.fragment,e),p(Ye.$$.fragment,e),p(je.$$.fragment,e),p(Je.$$.fragment,e),p(Ke.$$.fragment,e),p(Qe.$$.fragment,e),p(Xe.$$.fragment,e),p(Ze.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(nt.$$.fragment,e),p(at.$$.fragment,e),p(lt.$$.fragment,e),p(rt.$$.fragment,e),p(st.$$.fragment,e),xn=!1},d(e){e&&(n(At),n(Pt),n(Gt),n(Ut),n(Ht),n(Wt),n(b),n(St),n(Rt),n(Yt),n(k),n(jt),n($),n(Jt),n(Kt),n(ye),n(Qt),n(Ce),n(Xt),n(Zt),n(we),n(en),n(Ne),n(tn),n(nn),n(on),n(D),n(an),n(Oe),n(ln),n(I),n(rn),n(sn),n(E),n(dn),n(Ge),n(mn),n(gn),n(We),n(pn),n(cn),n(hn),n(x),n(vn),n(fn),n(un),n(ot),n(_n),n(q),n(bn),n($n),n(Ft)),n(N),c(ee,e),c(te,e),c(ne,e),c(oe),c(ae),c(le),c(re),c(se),c(ie),c(de),c(me),c(ge,e),c(pe,e),c(ce),c(he),c(ve),c(fe),c(ue),c(_e),c(be),c($e),c(xe,e),c(Me),c(Le),c(ke,e),c(Te),c(De),c(Ie,e),c(Ee,e),c(qe),c(ze),c(Ve),c(Be),c(Pe,e),c(Fe),c(Ae),c(Ue),c(He,e),c(Se),c(Re,e),c(Ye,e),c(je),c(Je),c(Ke),c(Qe),c(Xe),c(Ze),c(et),c(tt,e),c(nt,e),c(at),c(lt),c(rt),c(st,e)}}}const Ea='{"title":"Models","local":"models","sections":[{"title":"Model","local":"model","sections":[{"title":"LightevalModel","local":"lighteval.models.abstract_model.LightevalModel","sections":[],"depth":3}],"depth":2},{"title":"Accelerate and Transformers Models","local":"accelerate-and-transformers-models","sections":[{"title":"BaseModel","local":"lighteval.models.transformers.base_model.BaseModelConfig","sections":[],"depth":3},{"title":"AdapterModel","local":"lighteval.models.transformers.adapter_model.AdapterModelConfig","sections":[],"depth":3},{"title":"DeltaModel","local":"lighteval.models.transformers.delta_model.DeltaModelConfig","sections":[],"depth":3}],"depth":2},{"title":"Endpoints-based Models","local":"endpoints-based-models","sections":[{"title":"InferenceEndpointModel","local":"lighteval.models.endpoints.endpoint_model.InferenceEndpointModelConfig","sections":[],"depth":3},{"title":"TGI ModelClient","local":"lighteval.models.endpoints.tgi_model.TGIModelConfig","sections":[],"depth":3},{"title":"Open AI Models","local":"lighteval.models.endpoints.openai_model.OpenAIClient","sections":[],"depth":3}],"depth":2},{"title":"Nanotron Model","local":"nanotron-model","sections":[{"title":"NanotronLightevalModel","local":"lighteval.models.nanotron.nanotron_model.NanotronLightevalModel","sections":[],"depth":3}],"depth":2},{"title":"VLLM Model","local":"vllm-model","sections":[{"title":"VLLMModel","local":"lighteval.models.vllm.vllm_model.VLLMModelConfig","sections":[],"depth":3}],"depth":2}],"depth":1}';function qa(Uo){return ka(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pa extends wa{constructor(N){super(),Ta(this,N,qa,Ia,Ca,{})}}export{Pa as component};

Xet Storage Details

Size:
55.1 kB
·
Xet hash:
d2b5918461aacd0bc5df6c18caa4931eac62639ca9c24f6f9a0d3fe6121729c0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.