← All tasks
pythonhuggingface/accelerate #3591Not a task: already works

Bad requirements.txt in examples

envgap__huggingface__accelerate-3591

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
524e5f9828b106b054ffd20d5b007008ab427544
Manifest
examples/requirements.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

huggingface/accelerate #3591 · read the original issue
### System Info

```Shell
Accelerate 1.7.0
Platform: macOS-15.4-arm64-arm-64bit
Python 3.10.16
Numpy 2.2.6
Pytorch 2.7.0
Ram 64GB
```

### Information

- [x] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] One of the scripts in the examples/ folder of Accelerate or an officially supported `no_trainer` script in the `examples` folder of the `transformers` repo (such as `run_no_trainer_glue.py`)
- [ ] My own task or dataset (give details below)

### Reproduction

Clone github repository 
Create new python env with python==3.10
Install requirements.txt with pip
pip install transformers scipy sklearn

Try running nlp_example.py

### Expected behavior

The current requirements.txt does not work with numpy>=2.x because of the old datasets version. I got the example running on my machine with

```
evaluate==0.4.3
datasets==3.6.0
```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]