-
Notifications
You must be signed in to change notification settings - Fork 412
Add docstring docs #413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add docstring docs #413
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
df27a43
Add Reference docs with Pipeline docs
albertvillanova afb0ce2
Pin numpy<2
albertvillanova 696416f
Add Tasks docs
albertvillanova 89b2581
Add more Tasks docs
albertvillanova 77f779a
Add Models docs
albertvillanova aaeee7b
Fix Models docs
albertvillanova e46b1d3
Remove AdapterModel that requires peft
albertvillanova 17c8088
Remove NanotronLightevalModel and VLLMModel that require nanotron and…
albertvillanova ee937bb
Fix markdown comment syntax
albertvillanova 6ad6a2f
Add Metrics docs
albertvillanova 7874f1b
Fix typo
albertvillanova bb1a20a
Remove Main classes section
albertvillanova d281f10
Add Datasets docs
albertvillanova 812ef35
Create Main classes section with Pipeline
albertvillanova 632e89b
Add EvaluationTracker docs
albertvillanova 3e53ddb
Add ModelConfig docs
albertvillanova ea6af22
Add ParallelismManager to Pipeline docs
albertvillanova 7a413ac
Add inter-links from using-the-python-api
albertvillanova 4e9c80b
Fix inter-links
albertvillanova 9955186
Add more Metrics docs
albertvillanova 82a8fcb
Comment Metrics enum
albertvillanova 6a08f01
Fix typo
albertvillanova 95ac6d5
Add explanation and GH issue to comment in Metrics enum
albertvillanova 5962be6
Add inter-link to Metrics
albertvillanova 6eb2348
Add subsection titles to LightevalTask
albertvillanova bb4c95c
Add inter-link to LightevalTaskConfig
albertvillanova 7153bfe
Add inter-link to section heading anchor
albertvillanova ae8ce62
Add more Metrics docs
albertvillanova 9849a96
Add inter-link to SampleLevelMetric and Grouping
albertvillanova c5250e7
Add inter-link to LightevalTaskConfig
albertvillanova f2ead25
Fix section title with trailing colon
albertvillanova b2d82e3
Add sections to Models docs
albertvillanova c4ea699
Move Models docs to Main classes section
albertvillanova 39e145b
Document you can pass either model or model config to Pipeline
albertvillanova 83043b3
Move Datasets docs to Tasks docs
albertvillanova 0893e55
Add logging docs
albertvillanova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.