-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Reference docs with Pipeline docs * Pin numpy<2 * Add Tasks docs * Add more Tasks docs * Add Models docs * Fix Models docs * Remove AdapterModel that requires peft * Remove NanotronLightevalModel and VLLMModel that require nanotron and vllm * Fix markdown comment syntax * Add Metrics docs * Fix typo * Remove Main classes section * Add Datasets docs * Create Main classes section with Pipeline * Add EvaluationTracker docs * Add ModelConfig docs * Add ParallelismManager to Pipeline docs * Add inter-links from using-the-python-api * Fix inter-links * Add more Metrics docs * Comment Metrics enum * Fix typo * Add explanation and GH issue to comment in Metrics enum * Add inter-link to Metrics * Add subsection titles to LightevalTask * Add inter-link to LightevalTaskConfig * Add inter-link to section heading anchor * Add more Metrics docs * Add inter-link to SampleLevelMetric and Grouping * Add inter-link to LightevalTaskConfig * Fix section title with trailing colon * Add sections to Models docs * Move Models docs to Main classes section * Document you can pass either model or model config to Pipeline * Move Datasets docs to Tasks docs * Add logging docs
- Loading branch information
1 parent
0c80801
commit 9bfa1ea
Showing
14 changed files
with
216 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# EvaluationTracker | ||
|
||
[[autodoc]] logging.evaluation_tracker.EvaluationTracker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Loggers | ||
|
||
## GeneralConfigLogger | ||
[[autodoc]] logging.info_loggers.GeneralConfigLogger | ||
## DetailsLogger | ||
[[autodoc]] logging.info_loggers.DetailsLogger | ||
## MetricsLogger | ||
[[autodoc]] logging.info_loggers.MetricsLogger | ||
## VersionsLogger | ||
[[autodoc]] logging.info_loggers.VersionsLogger | ||
## TaskConfigLogger | ||
[[autodoc]] logging.info_loggers.TaskConfigLogger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Metrics | ||
|
||
## Metrics | ||
[//]: # (TODO: aenum.Enum raises error when generating docs: not supported by inspect.signature. See: https://github.com/ethanfurman/aenum/issues/44) | ||
[//]: # (### Metrics) | ||
[//]: # ([[autodoc]] metrics.metrics.Metrics) | ||
### Metric | ||
[[autodoc]] metrics.utils.metric_utils.Metric | ||
### CorpusLevelMetric | ||
[[autodoc]] metrics.utils.metric_utils.CorpusLevelMetric | ||
### SampleLevelMetric | ||
[[autodoc]] metrics.utils.metric_utils.SampleLevelMetric | ||
### MetricGrouping | ||
[[autodoc]] metrics.utils.metric_utils.MetricGrouping | ||
### CorpusLevelMetricGrouping | ||
[[autodoc]] metrics.utils.metric_utils.CorpusLevelMetricGrouping | ||
### SampleLevelMetricGrouping | ||
[[autodoc]] metrics.utils.metric_utils.SampleLevelMetricGrouping | ||
|
||
## Corpus Metrics | ||
### CorpusLevelF1Score | ||
[[autodoc]] metrics.metrics_corpus.CorpusLevelF1Score | ||
### CorpusLevelPerplexityMetric | ||
[[autodoc]] metrics.metrics_corpus.CorpusLevelPerplexityMetric | ||
### CorpusLevelTranslationMetric | ||
[[autodoc]] metrics.metrics_corpus.CorpusLevelTranslationMetric | ||
### matthews_corrcoef | ||
[[autodoc]] metrics.metrics_corpus.matthews_corrcoef | ||
|
||
## Sample Metrics | ||
### ExactMatches | ||
[[autodoc]] metrics.metrics_sample.ExactMatches | ||
### F1_score | ||
[[autodoc]] metrics.metrics_sample.F1_score | ||
### LoglikelihoodAcc | ||
[[autodoc]] metrics.metrics_sample.LoglikelihoodAcc | ||
### NormalizedMultiChoiceProbability | ||
[[autodoc]] metrics.metrics_sample.NormalizedMultiChoiceProbability | ||
### Probability | ||
[[autodoc]] metrics.metrics_sample.Probability | ||
### Recall | ||
[[autodoc]] metrics.metrics_sample.Recall | ||
### MRR | ||
[[autodoc]] metrics.metrics_sample.MRR | ||
### ROUGE | ||
[[autodoc]] metrics.metrics_sample.ROUGE | ||
### BertScore | ||
[[autodoc]] metrics.metrics_sample.BertScore | ||
### Extractiveness | ||
[[autodoc]] metrics.metrics_sample.Extractiveness | ||
### Faithfulness | ||
[[autodoc]] metrics.metrics_sample.Faithfulness | ||
### BLEURT | ||
[[autodoc]] metrics.metrics_sample.BLEURT | ||
### BLEU | ||
[[autodoc]] metrics.metrics_sample.BLEU | ||
### StringDistance | ||
[[autodoc]] metrics.metrics_sample.StringDistance | ||
### JudgeLLM | ||
[[autodoc]] metrics.metrics_sample.JudgeLLM | ||
### JudgeLLMMTBench | ||
[[autodoc]] metrics.metrics_sample.JudgeLLMMTBench | ||
### JudgeLLMMixEval | ||
[[autodoc]] metrics.metrics_sample.JudgeLLMMixEval | ||
### MajAtK | ||
[[autodoc]] metrics.metrics_sample.MajAtK | ||
|
||
## LLM-as-a-Judge | ||
### JudgeLM | ||
[[autodoc]] metrics.llm_as_judge.JudgeLM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ModelConfig | ||
|
||
[[autodoc]] models.model_config.BaseModelConfig | ||
|
||
[[autodoc]] models.model_config.AdapterModelConfig | ||
[[autodoc]] models.model_config.DeltaModelConfig | ||
[[autodoc]] models.model_config.InferenceEndpointModelConfig | ||
[[autodoc]] models.model_config.InferenceModelConfig | ||
[[autodoc]] models.model_config.TGIModelConfig | ||
[[autodoc]] models.model_config.VLLMModelConfig | ||
|
||
[[autodoc]] models.model_config.create_model_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Models | ||
|
||
## Model | ||
### LightevalModel | ||
[[autodoc]] models.abstract_model.LightevalModel | ||
|
||
## Accelerate and Transformers Models | ||
### BaseModel | ||
[[autodoc]] models.base_model.BaseModel | ||
[//]: # (TODO: Fix import error) | ||
[//]: # (### AdapterModel) | ||
[//]: # ([[autodoc]] models.adapter_model.AdapterModel) | ||
### DeltaModel | ||
[[autodoc]] models.delta_model.DeltaModel | ||
|
||
## Inference Endpoints and TGI Models | ||
### InferenceEndpointModel | ||
[[autodoc]] models.endpoint_model.InferenceEndpointModel | ||
### ModelClient | ||
[[autodoc]] models.tgi_model.ModelClient | ||
|
||
[//]: # (TODO: Fix import error) | ||
[//]: # (## Nanotron Model) | ||
[//]: # (### NanotronLightevalModel) | ||
[//]: # ([[autodoc]] models.nanotron_model.NanotronLightevalModel) | ||
|
||
[//]: # (TODO: Fix import error) | ||
[//]: # (## VLLM Model) | ||
[//]: # (### VLLMModel) | ||
[//]: # ([[autodoc]] models.vllm_model.VLLMModel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Pipeline | ||
|
||
## Pipeline | ||
|
||
[[autodoc]] pipeline.Pipeline | ||
|
||
## PipelineParameters | ||
|
||
[[autodoc]] pipeline.PipelineParameters | ||
|
||
## ParallelismManager | ||
|
||
[[autodoc]] pipeline.ParallelismManager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Tasks | ||
|
||
## LightevalTask | ||
### LightevalTaskConfig | ||
[[autodoc]] tasks.lighteval_task.LightevalTaskConfig | ||
### LightevalTask | ||
[[autodoc]] tasks.lighteval_task.LightevalTask | ||
|
||
## PromptManager | ||
|
||
[[autodoc]] tasks.prompt_manager.PromptManager | ||
|
||
## Registry | ||
|
||
[[autodoc]] tasks.registry.Registry | ||
|
||
## Requests | ||
|
||
[[autodoc]] tasks.requests.Request | ||
|
||
[[autodoc]] tasks.requests.LoglikelihoodRequest | ||
|
||
[[autodoc]] tasks.requests.LoglikelihoodSingleTokenRequest | ||
|
||
[[autodoc]] tasks.requests.LoglikelihoodRollingRequest | ||
|
||
[[autodoc]] tasks.requests.GreedyUntilRequest | ||
|
||
[[autodoc]] tasks.requests.GreedyUntilMultiTurnRequest | ||
|
||
## Datasets | ||
|
||
[[autodoc]] data.DynamicBatchDataset | ||
[[autodoc]] data.LoglikelihoodDataset | ||
[[autodoc]] data.LoglikelihoodSingleTokenDataset | ||
[[autodoc]] data.GenerativeTaskDataset | ||
[[autodoc]] data.GenerativeTaskDatasetNanotron | ||
[[autodoc]] data.GenDistributedSampler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters