Taksh Kothari

Results issues of Taksh Kothari

## Bug `fewshot_examples` calls `rnd.sample(self._training_docs, k)` unconditionally: ```python def fewshot_examples(self, k, rnd): if self._training_docs is None: self._training_docs = list(self.training_docs()) return rnd.sample(self._training_docs, k) ``` `random.sample(population, k)` raises `ValueError: Sample larger than...

## Bug The `ter` metric is registered with `higher_is_better=True` in `lm_eval/api/metrics.py`: ```python @register_metric( metric="ter", higher_is_better=True, # wrong ... ) ``` ## Root cause TER (Translation Edit Rate) is an *error*...

## Bug The `while True` retry loops in `vt_utils.py` and `cwe_utils.py` share the same defect already fixed in `qa_utils.py` (PR #3713): the loop spins forever when `max_seq_length` is smaller than...

## Bug When running distributed evaluation with `world_size > num_docs`, ranks with index ≥ num_docs receive an empty doc iterator from `islice(raw_iterator, rank, limit, world_size)`. These ranks legitimately have zero...

## Bug The retry loop in `lm_eval/tasks/ruler/qa_utils.py:173` spins forever whenever `used_docs` lands at or below `incremental` and a sample still fails to satisfy `length

## Bug \`acc_all_stderr\` in \`lm_eval/api/metrics.py\` silently merges MultiRC questions from **different paragraphs** into a single bucket, so the stderr it produces disagrees with the point estimate that \`acc_all\` computes for...

## Summary - Fixes answer extraction in `hendrycks_math` `process_results` to handle `\[...\]` and `\(...\)` LaTeX math delimiters in addition to `$...$` - Previously, model outputs like `Thus the answer is...

## Summary - Replace deprecated `typing` module imports (`List`, `Dict`, `Tuple`, `Optional`, `Union`, `Callable`) with modern Python 3.10+ equivalents in the core `lm_eval/api/` module - Use built-in generics (`list`, `dict`,...

## Summary - Fix missing spaces in `_bootstrap_internal` and `_bootstrap_internal_no_mp` docstrings (e.g., `` `f(xs)`using `` -> `` `f(xs)` using ``) - Fix missing closing bracket in `_sacreformat` comment: `List[List[str])` ->...

## Summary - The Contributing section's code block was closed with 4 backticks (``````) instead of 3 (` ``` `), which breaks markdown rendering - Single character deletion ## Test...