Repository: huggingface/lighteval
Issue: cannot import name 'EnvConfig' from 'lighteval.utils.utils'
Root cause: Documentation Deficiency

## Describe the bug
A clear and concise description of what the bug is.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-2-3a23d573499e>](https://localhost:8080/#) in <cell line: 0>()
      7 from lighteval.models.vllm.vllm_model import VLLMModelConfig
      8 from lighteval.pipeline import ParallelismManager, Pipeline, PipelineParameters
----> 9 from lighteval.utils.utils import EnvConfig
     10 from lighteval.utils.imports import is_accelerate_available
     11 

ImportError: cannot import name 'EnvConfig' from 'lighteval.utils.utils' (/usr/local/lib/python3.11/dist-packages/lighteval/utils/utils.py)

The error message indicates that the module lighteval.utils.utils no longer contains the name EnvConfig, likely because of changes in the latest version of the lighteval library. Here's a detailed

## To Reproduce
Please provide all the steps needed to reproduce the behavior, or provide a minimal working example if needed. We will ignore issues missing this section.


!pip install accelerate
!pip install lighteval
!pip install 'lighteval[accelerate]'
!pip install 'lighteval[tgi]'
!pip install 'lighteval[vllm]'
!pip install 'lighteval[math]'
---------------------------------------------------------------------------------
import lighteval
import numpy as np

from lighteval.logging.evaluation_tracker import EvaluationTracker
# from lighteval.models import model_config

from lighteval.models.vllm.vllm_model import VLLMModelConfig
from lighteval.pipeline import ParallelismManager, Pipeline, PipelineParameters
from lighteval.utils.utils import EnvConfig
from lighteval.utils.imports import is_accelerate_available



## Expected behavior
A clear and concise description of what you expected to happen.

Expecting the EnvConfig class or function to be successfully imported from lighteval.utils.utils without any errors. 

## Version info
Please provide your operating system, lighteval version or commit if you installed from main, and pip/conda environment if your problem concerns dependencies.

lighteval 0.9.0

[Environment.txt](https://github.com/user-attachments/files/20071381/Environment.txt)

hi ! pls better describe the issue, what's the command you are using ?
Are you referencing the python API doc ?

look at stable version, [python api](https://huggingface.co/docs/lighteval/v0.9.2/en/using-the-python-api)
`from lighteval.utils.utils import EnvConfig`
`EnvConfig` is not there.

> look at stable version, [python api](https://huggingface.co/docs/lighteval/v0.9.2/en/using-the-python-api)
> `from lighteval.utils.utils import EnvConfig`
> `EnvConfig` is not there.


Yes I am using python API, it was working fine till day before yesterday 

Since the new release it's not working 

Yes it's still working on the older version  it's working fine in the older one


> hi ! pls better describe the issue, what's the command you are using ?
> Are you referencing the python API doc ?

Yes I'm referring to the python API doc

I've tried to run the exact command 

import lighteval
from lighteval.logging.evaluation_tracker import EvaluationTracker
from lighteval.models.vllm.vllm_model import VLLMModelConfig
from lighteval.pipeline import ParallelismManager, Pipeline, PipelineParameters
from lighteval.utils.utils import EnvConfig
from lighteval.utils.imports import is_accelerate_available

if is_accelerate_available():
    from datetime import timedelta
    from accelerate import Accelerator, InitProcessGroupKwargs
    accelerator = Accelerator(kwargs_handlers=[InitProcessGroupKwargs(timeout=timedelta(seconds=3000))])
else:
    accelerator = None


Which was working in the last version 
But stopped working in the newest release 


Hi ! yeah you are right we overlocked this in the doc, it should be fixed in version `0.9.2` :)

Hi @NathanHB - I'm still finding this issue in the latest docs in main. Could you share a suggested fix in the meantime please?

simply remove EnvConfig entirely as it is not used anymore

Same issue. Appreciate the work but better documents should be provided.

same issue - deprecation notice is appreciated