GithubHelp home page GithubHelp logo

Comments (3)

aojunzz avatar aojunzz commented on June 16, 2024 1

@reddiamond1234 we don't support the windows platform now.

from llama-adapter.

randerzander avatar randerzander commented on June 16, 2024

This problem isn't limited to Windows. On Ubuntu w/ a CUDA 12 driver:

(llama_adapter) dev@desktop:~/projects/LLaMA-Adapter$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy
(llama_adapter) dev@desktop:~/projects/LLaMA-Adapter$ torchrun --nproc_per_node 1 example.py \
         --ckpt_dir $TARGET_FOLDER/model_size\
         --tokenizer_path $TARGET_FOLDER/tokenizer.model \
         --adapter_path $ADAPTER_PATH
Traceback (most recent call last):
  File "example.py", line 114, in <module>                                                                                                                            
    fire.Fire(main)                                                                
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "example.py", line 88, in main
    local_rank, world_size = setup_model_parallel()
  File "example.py", line 35, in setup_model_parallel
    torch.distributed.init_process_group("nccl")
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 907, in init_process_group
    default_pg = _new_process_group_helper(
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 1013, in _new_process_group_helper
    raise RuntimeError("Distributed package doesn't have NCCL " "built in")
RuntimeError: Distributed package doesn't have NCCL built in
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 2214009) of binary: /home/dev/miniconda/envs/llama_adapter/bin/python
Traceback (most recent call last):
  File "/home/dev/miniconda/envs/llama_adapter/bin/torchrun", line 33, in <module>
    sys.exit(load_entry_point('torch==2.0.1', 'console_scripts', 'torchrun')())
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 346, in wrapper
    return f(*args, **kwargs)
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/run.py", line 794, in main
    run(args)
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/run.py", line 785, in run
    elastic_launch(
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/home/dev/miniconda/envs/llama_adapter/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError: 
============================================================
example.py FAILED
------------------------------------------------------------
Failures:
  <NO_OTHER_FAILURES>
------------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-05-12_11:56:32
  host      : desktop
  rank      : 0 (local_rank: 0)
  exitcode  : 1 (pid: 2214009)
  error_file: <N/A>
  traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
============================================================

from llama-adapter.

randerzander avatar randerzander commented on June 16, 2024

In case it helps others, I worked around this problem by:

  1. Recreating the llama_adapter conda env
  2. first installing the appropriate torch build for my machine (install command picked from here)
  3. Remove the torch entry from requirements.txt
  4. pip install -r requirements.txt

from llama-adapter.

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.