Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Janus-Pro-7B no output #103

Open
Artrender opened this issue Jan 30, 2025 · 2 comments
Open

Janus-Pro-7B no output #103

Artrender opened this issue Jan 30, 2025 · 2 comments

Comments

@Artrender
Copy link

Janus-Pro-7B not working locally

pip install -e .[gradio] gives

...
Image

...

Image

I did conda install -c conda-forge sentencepiece

then python demo/app_januspro.py

I get

(janusenv) P:\Janus>python demo/app_januspro.py
Python version is above 3.10, patching the collections module.
C:\Users\artre\anaconda3\envs\janusenv\Lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead
  warnings.warn(
Loading checkpoint shards: 100%|█████████████████████████████████████████████████| 2/2 [00:06<00:00,  3.03s/it]
Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.48, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.
You are using the default legacy behaviour of the <class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565 - if you loaded a llama tokenizer from a GGUF file you can ignore this message.
Some kwargs in processor config are unused and will not have any effect: mask_prompt, add_special_token, num_image_tokens, ignore_id, image_tag, sft_format.
* Running on local URL:  http://127.0.0.1:7860

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.

I can see the page on http://127.0.0.1:7860 but it does not generate anything

Complete logs here

(janusenv) P:\Janus>pip install -e .[gradio]
Obtaining file:///P:/Janus
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: torch>=2.0.1 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (2.6.0)
Requirement already satisfied: transformers>=4.38.2 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (4.48.1)
Requirement already satisfied: timm>=0.9.16 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (1.0.14)
Requirement already satisfied: accelerate in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (1.3.0)
Requirement already satisfied: sentencepiece in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (0.2.0)
Requirement already satisfied: attrdict in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (2.0.1)
Requirement already satisfied: einops in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from janus==1.0.0) (0.8.0)
Collecting gradio==3.48.0 (from janus==1.0.0)
  Using cached gradio-3.48.0-py3-none-any.whl.metadata (17 kB)
Collecting gradio-client==0.6.1 (from janus==1.0.0)
  Using cached gradio_client-0.6.1-py3-none-any.whl.metadata (7.1 kB)
Collecting mdtex2html==1.3.0 (from janus==1.0.0)
  Using cached mdtex2html-1.3.0-py3-none-any.whl.metadata (4.1 kB)
Collecting pypinyin==0.50.0 (from janus==1.0.0)
  Using cached pypinyin-0.50.0-py2.py3-none-any.whl.metadata (12 kB)
Collecting tiktoken==0.5.2 (from janus==1.0.0)
  Using cached tiktoken-0.5.2-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting tqdm==4.64.0 (from janus==1.0.0)
  Using cached tqdm-4.64.0-py2.py3-none-any.whl.metadata (57 kB)
Collecting colorama==0.4.5 (from janus==1.0.0)
  Using cached colorama-0.4.5-py2.py3-none-any.whl.metadata (15 kB)
Collecting Pygments==2.12.0 (from janus==1.0.0)
  Using cached Pygments-2.12.0-py3-none-any.whl.metadata (1.5 kB)
Collecting markdown==3.4.1 (from janus==1.0.0)
  Using cached Markdown-3.4.1-py3-none-any.whl.metadata (4.6 kB)
Collecting sentencepiece (from janus==1.0.0)
  Using cached sentencepiece-0.1.96.tar.gz (508 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: aiofiles<24.0,>=22.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (23.2.1)
Collecting altair<6.0,>=4.2.0 (from gradio==3.48.0->janus==1.0.0)
  Using cached altair-5.5.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: fastapi in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.115.7)
Requirement already satisfied: ffmpy in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.5.0)
Requirement already satisfied: httpx in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.28.1)
Requirement already satisfied: huggingface-hub>=0.14.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.28.0)
Collecting importlib-resources<7.0,>=1.3 (from gradio==3.48.0->janus==1.0.0)
  Using cached importlib_resources-6.5.2-py3-none-any.whl.metadata (3.9 kB)
Requirement already satisfied: jinja2<4.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (3.1.5)
Requirement already satisfied: markupsafe~=2.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (2.1.5)
Collecting matplotlib~=3.0 (from gradio==3.48.0->janus==1.0.0)
  Using cached matplotlib-3.10.0-cp311-cp311-win_amd64.whl.metadata (11 kB)
Collecting numpy~=1.0 (from gradio==3.48.0->janus==1.0.0)
  Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl.metadata (61 kB)
Requirement already satisfied: orjson~=3.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (3.10.15)
Requirement already satisfied: packaging in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (24.2)
Requirement already satisfied: pandas<3.0,>=1.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (2.2.3)
Collecting pillow<11.0,>=8.0 (from gradio==3.48.0->janus==1.0.0)
  Using cached pillow-10.4.0-cp311-cp311-win_amd64.whl.metadata (9.3 kB)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (2.10.6)
Requirement already satisfied: pydub in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.25.1)
Requirement already satisfied: python-multipart in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.0.20)
Requirement already satisfied: pyyaml<7.0,>=5.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (6.0.2)
Requirement already satisfied: requests~=2.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (2.32.3)
Requirement already satisfied: semantic-version~=2.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (2.10.0)
Requirement already satisfied: typing-extensions~=4.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (4.12.2)
Requirement already satisfied: uvicorn>=0.14.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio==3.48.0->janus==1.0.0) (0.34.0)
Collecting websockets<12.0,>=10.0 (from gradio==3.48.0->janus==1.0.0)
  Using cached websockets-11.0.3-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Requirement already satisfied: fsspec in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from gradio-client==0.6.1->janus==1.0.0) (2024.12.0)
Collecting latex2mathml (from mdtex2html==1.3.0->janus==1.0.0)
  Using cached latex2mathml-3.77.0-py3-none-any.whl.metadata (14 kB)
Requirement already satisfied: regex>=2022.1.18 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from tiktoken==0.5.2->janus==1.0.0) (2024.11.6)
Requirement already satisfied: torchvision in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from timm>=0.9.16->janus==1.0.0) (0.21.0)
Requirement already satisfied: safetensors in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from timm>=0.9.16->janus==1.0.0) (0.5.2)
Requirement already satisfied: filelock in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from torch>=2.0.1->janus==1.0.0) (3.17.0)
Requirement already satisfied: networkx in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from torch>=2.0.1->janus==1.0.0) (3.4.2)
Requirement already satisfied: sympy==1.13.1 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from torch>=2.0.1->janus==1.0.0) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from sympy==1.13.1->torch>=2.0.1->janus==1.0.0) (1.3.0)
Requirement already satisfied: tokenizers<0.22,>=0.21 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from transformers>=4.38.2->janus==1.0.0) (0.21.0)
Requirement already satisfied: psutil in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from accelerate->janus==1.0.0) (6.1.1)
Requirement already satisfied: six in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from attrdict->janus==1.0.0) (1.17.0)
Collecting jsonschema>=3.0 (from altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Collecting narwhals>=1.14.2 (from altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached narwhals-1.24.1-py3-none-any.whl.metadata (10.0 kB)
Collecting contourpy>=1.0.1 (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0)
  Using cached contourpy-1.3.1-cp311-cp311-win_amd64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0)
  Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0)
  Using cached fonttools-4.55.8-cp311-cp311-win_amd64.whl.metadata (103 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0)
  Using cached kiwisolver-1.4.8-cp311-cp311-win_amd64.whl.metadata (6.3 kB)
Collecting pyparsing>=2.3.1 (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0)
  Using cached pyparsing-3.2.1-py3-none-any.whl.metadata (5.0 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from matplotlib~=3.0->gradio==3.48.0->janus==1.0.0) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.48.0->janus==1.0.0) (2024.2)
Requirement already satisfied: tzdata>=2022.7 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.48.0->janus==1.0.0) (2025.1)
Requirement already satisfied: annotated-types>=0.6.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.48.0->janus==1.0.0) (0.7.0)
Requirement already satisfied: pydantic-core==2.27.2 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.48.0->janus==1.0.0) (2.27.2)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from requests~=2.0->gradio==3.48.0->janus==1.0.0) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from requests~=2.0->gradio==3.48.0->janus==1.0.0) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from requests~=2.0->gradio==3.48.0->janus==1.0.0) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from requests~=2.0->gradio==3.48.0->janus==1.0.0) (2024.12.14)
Requirement already satisfied: click>=7.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from uvicorn>=0.14.0->gradio==3.48.0->janus==1.0.0) (8.1.8)
Requirement already satisfied: h11>=0.8 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from uvicorn>=0.14.0->gradio==3.48.0->janus==1.0.0) (0.14.0)
Requirement already satisfied: starlette<0.46.0,>=0.40.0 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from fastapi->gradio==3.48.0->janus==1.0.0) (0.45.3)
Requirement already satisfied: anyio in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from httpx->gradio==3.48.0->janus==1.0.0) (4.8.0)
Requirement already satisfied: httpcore==1.* in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from httpx->gradio==3.48.0->janus==1.0.0) (1.0.7)
Collecting attrs>=22.2.0 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached attrs-25.1.0-py3-none-any.whl.metadata (10 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached jsonschema_specifications-2024.10.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.48.0->janus==1.0.0)
  Using cached rpds_py-0.22.3-cp311-cp311-win_amd64.whl.metadata (4.2 kB)
Requirement already satisfied: sniffio>=1.1 in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (from anyio->httpx->gradio==3.48.0->janus==1.0.0) (1.3.1)
Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Using cached gradio-3.48.0-py3-none-any.whl (20.3 MB)
Using cached gradio_client-0.6.1-py3-none-any.whl (299 kB)
Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
Using cached mdtex2html-1.3.0-py3-none-any.whl (13 kB)
Using cached Pygments-2.12.0-py3-none-any.whl (1.1 MB)
Using cached pypinyin-0.50.0-py2.py3-none-any.whl (1.4 MB)
Using cached tiktoken-0.5.2-cp311-cp311-win_amd64.whl (786 kB)
Using cached tqdm-4.64.0-py2.py3-none-any.whl (78 kB)
Using cached altair-5.5.0-py3-none-any.whl (731 kB)
Using cached importlib_resources-6.5.2-py3-none-any.whl (37 kB)
Using cached matplotlib-3.10.0-cp311-cp311-win_amd64.whl (8.0 MB)
Using cached numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)
Using cached pillow-10.4.0-cp311-cp311-win_amd64.whl (2.6 MB)
Using cached websockets-11.0.3-cp311-cp311-win_amd64.whl (124 kB)
Using cached latex2mathml-3.77.0-py3-none-any.whl (73 kB)
Using cached contourpy-1.3.1-cp311-cp311-win_amd64.whl (219 kB)
Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB)
Using cached fonttools-4.55.8-cp311-cp311-win_amd64.whl (2.2 MB)
Using cached jsonschema-4.23.0-py3-none-any.whl (88 kB)
Using cached kiwisolver-1.4.8-cp311-cp311-win_amd64.whl (71 kB)
Using cached narwhals-1.24.1-py3-none-any.whl (309 kB)
Using cached pyparsing-3.2.1-py3-none-any.whl (107 kB)
Using cached attrs-25.1.0-py3-none-any.whl (63 kB)
Using cached jsonschema_specifications-2024.10.1-py3-none-any.whl (18 kB)
Using cached referencing-0.36.2-py3-none-any.whl (26 kB)
Using cached rpds_py-0.22.3-cp311-cp311-win_amd64.whl (231 kB)
Building wheels for collected packages: janus, sentencepiece
  Building editable for janus (pyproject.toml) ... done
  Created wheel for janus: filename=janus-1.0.0-0.editable-py3-none-any.whl size=15979 sha256=b94e37650e0c73c2fce034b25c778b8321303946af2f9d4876d04a270f4b29d0
  Stored in directory: C:\Users\artre\AppData\Local\Temp\pip-ephem-wheel-cache-nrj2f3gi\wheels\5f\7d\a2\e3b43759d5b014d1e017aab22db6206e2fa756028e844c6b66
  Building wheel for sentencepiece (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      C:\Users\artre\anaconda3\envs\janusenv\Lib\site-packages\setuptools\dist.py:493: SetuptoolsDeprecationWarning: Invalid dash-separated options
      !!

              ********************************************************************************
              Usage of dash-separated 'description-file' will not be supported in future
              versions. Please use the underscore name 'description_file' instead.

              By 2025-Mar-03, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        opt = self.warn_dash_deprecation(opt, section)
      C:\Users\artre\anaconda3\envs\janusenv\Lib\site-packages\setuptools\_distutils\dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-311\sentencepiece
      copying src\sentencepiece/__init__.py -> build\lib.win-amd64-cpython-311\sentencepiece
      copying src\sentencepiece/sentencepiece_model_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
      copying src\sentencepiece/sentencepiece_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
      running build_ext
      building 'sentencepiece._sentencepiece' extension
      creating build\temp.win-amd64-cpython-311\Release\src\sentencepiece
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\artre\anaconda3\envs\janusenv\include -IC:\Users\artre\anaconda3\envs\janusenv\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/sentencepiece/sentencepiece_wrap.cxx /Fobuild\temp.win-amd64-cpython-311\Release\src\sentencepiece\sentencepiece_wrap.obj /MT /I..\build\root\include
      cl : Command line warning D9025 : overriding '/MD' with '/MT'
      sentencepiece_wrap.cxx
      src/sentencepiece/sentencepiece_wrap.cxx(2809): fatal error C1083: Cannot open include file: 'sentencepiece_processor.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for sentencepiece
  Running setup.py clean for sentencepiece
Successfully built janus
Failed to build sentencepiece
ERROR: Failed to build installable wheels for some pyproject.toml based projects (sentencepiece)

(janusenv) P:\Janus>python -m ensurepip --upgrade
Looking in links: c:\Users\artre\AppData\Local\Temp\tmpfjxr3an6
Requirement already satisfied: setuptools in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (75.8.0)
Requirement already satisfied: pip in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (25.0)

(janusenv) P:\Janus>python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\artre\anaconda3\envs\janusenv\lib\site-packages (25.0)

(janusenv) P:\Janus>python -V
Python 3.11.11

(janusenv) P:\Janus>conda install -c conda-forge sentencepiece
Channels:
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

# All requested packages already installed.


(janusenv) P:\Janus>python demo/app_januspro.py
Python version is above 3.10, patching the collections module.
C:\Users\artre\anaconda3\envs\janusenv\Lib\site-packages\transformers\models\auto\image_processing_auto.py:590: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead
  warnings.warn(
Loading checkpoint shards: 100%|█████████████████████████████████████████████████| 2/2 [00:06<00:00,  3.03s/it]
Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.48, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.
You are using the default legacy behaviour of the <class 'transformers.models.llama.tokenization_llama_fast.LlamaTokenizerFast'>. This is expected, and simply means that the `legacy` (previous) behavior will be used so nothing changes for you. If you want to use the new behaviour, set `legacy=False`. This should only be set if you understand what it means, and thoroughly read the reason why this was added as explained in https://github.com/huggingface/transformers/pull/24565 - if you loaded a llama tokenizer from a GGUF file you can ignore this message.
Some kwargs in processor config are unused and will not have any effect: mask_prompt, add_special_token, num_image_tokens, ignore_id, image_tag, sft_format.
* Running on local URL:  http://127.0.0.1:7860

Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.



@Artrender
Copy link
Author

did that

#62 (comment)

Now I get:

    Successfully uninstalled gradio-5.13.2
**ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rich 13.9.4 requires pygments<3.0.0,>=2.13.0, but you have pygments 2.12.0 which is incompatible.**
Successfully installed Pygments-2.12.0 altair-5.5.0 attrs-25.1.0 colorama-0.4.5 contourpy-1.3.1 cycler-0.12.1 fonttools-4.55.8 gradio-3.48.0 gradio-client-0.6.1 importlib-resources-6.5.2 janus-1.0.0 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 kiwisolver-1.4.8 latex2mathml-3.77.0 markdown-3.4.1 matplotlib-3.10.0 mdtex2html-1.3.0 narwhals-1.24.1 numpy-1.26.4 pillow-10.4.0 pyparsing-3.2.1 pypinyin-0.50.0 referencing-0.36.2 rpds-py-0.22.3 tiktoken-0.5.2 tqdm-4.64.0 websockets-11.0.3

@yadavnikhil03
Copy link

Use Conda’s sentencepiece and prevent pip from re-installing it. Run:

conda install -c conda-forge sentencepiece (already done), then

pip install -e .[gradio] --no-deps (the --no-deps skips reinstalling dependencies like sentencepiece).
This fixes the conflict. Ignore the Gradio “share link” warning—it’s just a connectivity issue, not an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants