FreedomIntelligence / LongLLaVA

LongLLaVA: Scaling Multi-modal LLMs to 1000 Images Efficiently via Hybrid Architecture
178 stars 11 forks source link

There are many bugs when pip the requirement.txt as follows, making the code hard to run, can you provide more details? #4

Closed Messi2013 closed 1 month ago

Messi2013 commented 1 month ago
  [64/64] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
    File "/media/data1/meiling/miniconda3/envs/mamba/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/media/data1/meiling/miniconda3/envs/mamba/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
      return hook(metadata_directory, config_settings)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-u7l5l2o0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel
      self.run_setup()
    File "/tmp/pip-build-env-u7l5l2o0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-u7l5l2o0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 669, in <module>
    File "<string>", line 663, in setup_package
    File "<string>", line 597, in configure_extension_modules
    File "/tmp/pip-install-edz_u5ki/scikit-learn_df60fc4cc3fc41f7bfe121173e5421a0/sklearn/_build_utils/__init__.py", line 98, in cythonize_extensions
      return cythonize(
             ^^^^^^^^^^
    File "/tmp/pip-build-env-u7l5l2o0/overlay/lib/python3.12/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
      result.get(99999)  # seconds
      ^^^^^^^^^^^^^^^^^
    File "/media/data1/meiling/miniconda3/envs/mamba/lib/python3.12/multiprocessing/pool.py", line 774, in get
      raise self._value
  Cython.Compiler.Errors.CompileError: sklearn/_loss/_loss.pyx
  [end of output]

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

wangxidong06 commented 1 month ago

Thank you for your feedback. I have reduced the environment required to reproduce to the minimum, please see here. If you have any questions, please feel free to contact me.