GithubHelp home page GithubHelp logo

problem run pre-treatment about fl-bench HOT 7 CLOSED

karhoutam avatar karhoutam commented on July 17, 2024
problem run pre-treatment

from fl-bench.

Comments (7)

KarhouTam avatar KarhouTam commented on July 17, 2024

Seems Dockerfile has some problems. I would fix it later and please stay tuned.

from fl-bench.

aasaid0168 avatar aasaid0168 commented on July 17, 2024

ok thanks

from fl-bench.

KarhouTam avatar KarhouTam commented on July 17, 2024

If you still work on the env stuffs, try using pip or miniconda instead.

from fl-bench.

aasaid0168 avatar aasaid0168 commented on July 17, 2024

I chaged the old foder and I download it an other time but It's still the same problem

using pip or miniconda at wath step please ?

from fl-bench.

aasaid0168 avatar aasaid0168 commented on July 17, 2024

Cannot install nvidia-cublas-cu12.

• Installing nvidia-cusparse-cu12 (12.1.0.106)
The command '/bin/sh -c poetry install' returned a non-zero code: 1
(base) alami@alami-Latitude-7390:~/FL-bench-master$ # partition the CIFAR-10 according to Dir(0.1) for 100 clients
python generate_data.py -d cifar10 -a 0.1 -cn 100

run FedAvg on CIFAR-10 with default settings.

Use main.py like python main.py [args ...]

❗ Method name should be identical to the .py file name in src/server.

python main.py fedavg -d cifar10
Traceback (most recent call last):
File "/home/alami/FL-bench-master/generate_data.py", line 10, in
from src.utils.tools import fix_random_seed
File "/home/alami/FL-bench-master/src/utils/tools.py", line 10, in
import torch
ModuleNotFoundError: No module named 'torch'
Traceback (most recent call last):
File "/home/alami/FL-bench-master/main.py", line 17, in
module = importlib.import_module(method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alami/anaconda/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/alami/FL-bench-master/src/server/fedavg.py", line 13, in
import torch
ModuleNotFoundError: No module named 'torch'
(base) alami@alami-Latitude-7390:/FL-bench-master$ python -m visdom.server
/home/alami/anaconda/bin/python: Error while finding module specification for 'visdom.server' (ModuleNotFoundError: No module named 'visdom')
(base) alami@alami-Latitude-7390:
/FL-bench-master$ cd data
(base) alami@alami-Latitude-7390:/FL-bench-master/data$ python generate_data.py -d cifar10 -a 0.1 -cn 100
python: can't open file '/home/alami/FL-bench-master/data/generate_data.py': [Errno 2] No such file or directory
(base) alami@alami-Latitude-7390:
/FL-bench-master/data$ cd ../
(base) alami@alami-Latitude-7390:/FL-bench-master$ cd src/server
(base) alami@alami-Latitude-7390:
/FL-bench-master/src/server$ python fedavg.py -d cifar10
Traceback (most recent call last):
File "/home/alami/FL-bench-master/src/server/fedavg.py", line 13, in
import torch
ModuleNotFoundError: No module named 'torch'
(base) alami@alami-Latitude-7390:/FL-bench-master/src/server$ python -m visdom.server
/home/alami/anaconda/bin/python: Error while finding module specification for 'visdom.server' (ModuleNotFoundError: No module named 'visdom')
(base) alami@alami-Latitude-7390:
/FL-bench-master/src/server$ ^C
(base) alami@alami-Latitude-7390:~/FL-bench-master/src/server$

from fl-bench.

KarhouTam avatar KarhouTam commented on July 17, 2024

I have tested the poetry scheme on my WSL2 and it ran well. Maybe there is some incompatible problems.

My wsl2 info:
os: ubuntu 22.04
python: 3.10.13
gpu: 3070 laptop
gpu driver version: 546.33
cuda version: 12.3

Maybe you need to check your os and hardware.
Or try to install nvidia-cublas-cu12 manually?
image

from fl-bench.

KarhouTam avatar KarhouTam commented on July 17, 2024

This issue is closed due to long time no response.

from fl-bench.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.