kyegomez / BitNet

Implementation of "BitNet: Scaling 1-bit Transformers for Large Language Models" in pytorch
https://discord.gg/qUtxnK2NMf
MIT License
1.56k stars 145 forks source link

[BUG] Can't install with pipenv, pip #18

Closed calliope-pro closed 7 months ago

calliope-pro commented 7 months ago

Describe the bug Installation does not work with pipenv install bitnet, pipenv run pip install bitnet.

To Reproduce Apple M2, MacOS: 14.3.1, Python(in pipenv environment): 3.12.1 Run pipenv install bitnet, pipenv run pip.

Expected behavior The error occurs.

Screenshots

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Collecting bitnet
  Downloading bitnet-0.0.8-py3-none-any.whl.metadata (4.3 kB)
Collecting einops (from bitnet)
  Downloading einops-0.7.0-py3-none-any.whl.metadata (13 kB)
Collecting torch (from bitnet)
  Downloading torch-2.2.0-cp312-none-macosx_11_0_arm64.whl.metadata (25 kB)
Collecting zetascale (from bitnet)
  Downloading zetascale-2.1.1-py3-none-any.whl.metadata (20 kB)
Collecting filelock (from torch->bitnet)
  Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)
Collecting typing-extensions>=4.8.0 (from torch->bitnet)
  Downloading typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB)
Collecting sympy (from torch->bitnet)
  Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 9.6 MB/s eta 0:00:00
Collecting networkx (from torch->bitnet)
  Downloading networkx-3.2.1-py3-none-any.whl.metadata (5.2 kB)
Collecting jinja2 (from torch->bitnet)
  Downloading Jinja2-3.1.3-py3-none-any.whl.metadata (3.3 kB)
Collecting fsspec (from torch->bitnet)
  Downloading fsspec-2024.2.0-py3-none-any.whl.metadata (6.8 kB)
Collecting accelerate==0.26.1 (from zetascale->bitnet)
  Downloading accelerate-0.26.1-py3-none-any.whl.metadata (18 kB)
Collecting argparse<2.0.0,>=1.4.0 (from zetascale->bitnet)
  Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
Collecting beartype==0.17.0 (from zetascale->bitnet)
  Downloading beartype-0.17.0-py3-none-any.whl.metadata (29 kB)
Collecting bitsandbytes==0.42.0 (from zetascale->bitnet)
  Downloading bitsandbytes-0.42.0-py3-none-any.whl.metadata (9.9 kB)
Collecting colt5-attention==0.10.19 (from zetascale->bitnet)
  Downloading CoLT5_attention-0.10.19-py3-none-any.whl.metadata (738 bytes)
Collecting datasets (from zetascale->bitnet)
  Downloading datasets-2.17.0-py3-none-any.whl.metadata (20 kB)
Collecting einops-exts==0.0.4 (from zetascale->bitnet)
  Downloading einops_exts-0.0.4-py3-none-any.whl (3.9 kB)
Collecting jax (from zetascale->bitnet)
  Downloading jax-0.4.24-py3-none-any.whl.metadata (24 kB)
Collecting jaxlib (from zetascale->bitnet)
  Downloading jaxlib-0.4.24-cp312-cp312-macosx_11_0_arm64.whl.metadata (2.1 kB)
Collecting lion-pytorch==0.0.7 (from zetascale->bitnet)
  Downloading lion_pytorch-0.0.7-py3-none-any.whl (4.3 kB)
Collecting numexpr (from zetascale->bitnet)
  Downloading numexpr-2.9.0-cp312-cp312-macosx_11_0_arm64.whl.metadata (7.9 kB)
Collecting pytest==7.4.2 (from zetascale->bitnet)
  Downloading pytest-7.4.2-py3-none-any.whl.metadata (7.9 kB)
Collecting rich==13.7.0 (from zetascale->bitnet)
  Downloading rich-13.7.0-py3-none-any.whl.metadata (18 kB)
Collecting scipy==1.9.3 (from zetascale->bitnet)
  Downloading scipy-1.9.3.tar.gz (42.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 MB 8.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      + meson setup /private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617 /private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617/.mesonpy-fnlud_2t -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617/.mesonpy-fnlud_2t/meson-python-native-file.ini
      The Meson build system
      Version: 1.3.1
      Source dir: /private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617
      Build dir: /private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617/.mesonpy-fnlud_2t
      Build type: native build
      Project name: SciPy
      Project version: 1.9.3

      ../meson.build:1:0: ERROR: Unknown compiler(s): [['cc'], ['gcc'], ['clang'], ['nvc'], ['pgcc'], ['icc'], ['icx']]
      The following exception(s) were encountered:
      Running `nvc --version` gave "[Errno 2] No such file or directory: 'nvc'"
      Running `pgcc --version` gave "[Errno 2] No such file or directory: 'pgcc'"
      Running `icc --version` gave "[Errno 2] No such file or directory: 'icc'"
      Running `icx --version` gave "[Errno 2] No such file or directory: 'icx'"

      A full log can be found at /private/var/folders/sm/jc08s6093j5648np4b1t51zm0000gn/T/pip-install-6nkf0lnf/scipy_e72ed8b1dedc47308309bba88221c617/.mesonpy-fnlud_2t/meson-logs/meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Additional context Add any other context about the problem here.

Upvote & Fund

Fund with Polar

kyegomez commented 7 months ago

@calliope-pro try again please!