# Cannot run local eval for fl solutions, fincrime

**URL:** <https://community.drivendata.org/t/cannot-run-local-eval-for-fl-solutions-fincrime/8492>\
**Category:** PETs Prize Challenge\
**Created:** [January 23, 2023, 2:32am UTC](https://community.drivendata.org/t/cannot-run-local-eval-for-fl-solutions-fincrime/8492 "2023-01-23T02:32:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![panheng](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@panheng](https://community.drivendata.org/u/panheng)\
**Post date:** [January 23, 2023, 2:32am UTC](https://community.drivendata.org/t/cannot-run-local-eval-for-fl-solutions-fincrime/8492/1 "2023-01-23T02:32:25Z")

</div>

I was using the following command.

```auto
SUBMISSION_TRACK=fincrime SUBMISSION_TYPE=federated GITHUB_ACTIONS_NO_TTY=true make test-submission

```

The tested submission was the example source code. But after configure\_fit completed, it was stuck at " fit\_round 1: strategy sampled 5 clients (out of 5)". And then it threw ray errors after dozens of minutes.

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/drivendata1/original/2X/a/a5c744aa51f050422bb791acc7dedd3303ff527e.jpeg)

How can I fix this? I am using a windows 10 machine and running make commands in git bash.

---

<div class="post-metadata">

**Author:** ![jayqi](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.drivendata.org/jayqi/32/924_2.png) [@jayqi](https://community.drivendata.org/u/jayqi)\
**Post date:** [January 23, 2023, 3:09am UTC](https://community.drivendata.org/t/cannot-run-local-eval-for-fl-solutions-fincrime/8492/2 "2023-01-23T03:09:28Z")

</div>

Hi @panheng,

Taking the error messages at face value, it seems like Ray is unable to find the requested client resources to spawn the client processes.

Earlier in the logs, at the start of federated training, you should see some logs that look something like this:

```auto
INFO flower 2023-01-23 02:56:31,321 | app.py:140 | Starting Flower simulation, config: ServerConfig(num_rounds=2, round_timeout=None)
2023-01-23 02:56:33,139 INFO worker.py:1518 -- Started a local Ray instance.
INFO flower 2023-01-23 02:56:34,302 | app.py:174 | Flower VCE: Ray initialized with resources: {'memory': 3547435008.0, 'node:127.0.0.1': 1.0, 'CPU': 4.0, 'object_store_memory': 1773717504.0}

```

What does it say there for how many CPU and GPU resources that Ray is starting with on your machine?

For reference, [here](https://github.com/drivendataorg/pets-prize-challenge-runtime/blob/f735539e6e2ac97ef45b3b6ce13ea69a3acc2805/runtime/main_federated_train.py#L77-L81) is the relevant source code that sets the resource requirements for clients. This is set to (available - 1) CPUs for your system, and 1 GPU if you are running the GPU version of the image. It seems like you’ve allocated 16 cores to the Docker container, and you have a GPU on your system?

If you don’t need a GPU for your code, and if it’s the case that Ray is having trouble finding your GPU, then you can try using the CPU version of the image by setting the variable `CPU_OR_GPU=cpu` when running all Makefile commands (pull, build, test-submission, etc.).

Unfortunately, I’m not all that familiar with Windows, and I’m not sure if anything here involves any specific Windows gotchas.
