Skip to content

Conversation

@saiarthiraguram
Copy link
Contributor

@saiarthiraguram saiarthiraguram commented Aug 1, 2025

Ticket

Fixes: Link to Github Issue

Problem description

  • Add requirements.txt for all models in path

What's changed

  • Include requirements.txt for pytorch audio, atomic, multimodal models.

Checklist

  • New/Existing tests provide coverage for changes

@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from 6b57f9e to 9ce7b71 Compare August 1, 2025 10:51
audio, atomic, multimodal models
@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from 9ce7b71 to 82047ac Compare August 1, 2025 11:12
@codecov-commenter
Copy link

codecov-commenter commented Aug 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.06%. Comparing base (9801976) to head (4ab17ae).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2714   +/-   ##
=======================================
  Coverage   63.06%   63.06%           
=======================================
  Files         156      156           
  Lines       13190    13190           
=======================================
  Hits         8318     8318           
  Misses       4872     4872           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from 8859dc0 to e800544 Compare August 18, 2025 12:12
@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch 2 times, most recently from 459b5c9 to afd8d32 Compare August 19, 2025 07:04
@saiarthiraguram
Copy link
Contributor Author

run-tests fail with
To Do: Fix this issue

==================================== ERRORS ====================================
_ ERROR collecting forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py _
ImportError while importing test module '/__w/tt-forge-fe/tt-forge-fe/forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/python.py:578: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/pathlib.py:524: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py:11: in <module>
    from surya.detection import DetectionPredictor
E   ModuleNotFoundError: No module named 'surya'
=============================== warnings summary ===============================
../../../opt/ttforge-toolchain/venv/lib/python3.10/site-packages/hippynn/custom_kernels/__init__.py:38
  /opt/ttforge-toolchain/venv/lib/python3.10/site-packages/hippynn/custom_kernels/__init__.py:38: UserWarning: Numba or cupy not available: Custom Kernels will be disabled.
    warnings.warn("Numba or cupy not available: Custom Kernels will be disabled.")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======= 706/52447 tests collected (51741 deselected), 1 error in 17.98s ========

@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from afd8d32 to 00af17d Compare August 19, 2025 12:24
@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch 2 times, most recently from 3eb14ef to b922adc Compare August 26, 2025 07:07
- Adds http instead of https in Dockerfile.ird to solve below issue
ERROR: failed to build: failed to solve: process "/bin/bash -c apt install libmpfr-dev -y &&     wget https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.gz &&     tar -xvf gdb-14.2.tar.gz &&     cd gdb-14.2 &&     ./configure &&     make -j$(nproc) &&     make install &&     cd ..  &&     rm -rf gdb-14.2 gdb-14.2.tar.gz  &&     gdb --version" did not complete successfully: exit code: 4
@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from b922adc to 2ae5766 Compare August 26, 2025 07:09
@saiarthiraguram saiarthiraguram force-pushed the sai_arthi_raguram/model_deps_split branch from 5e9addc to 837fd4b Compare August 26, 2025 08:03
@saiarthiraguram
Copy link
Contributor Author

run-tests fail with To Do: Fix this issue

==================================== ERRORS ====================================
_ ERROR collecting forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py _
ImportError while importing test module '/__w/tt-forge-fe/tt-forge-fe/forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/python.py:578: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/pathlib.py:524: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/ttforge-toolchain/venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:170: in exec_module
    exec(co, module.__dict__)
forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py:11: in <module>
    from surya.detection import DetectionPredictor
E   ModuleNotFoundError: No module named 'surya'
=============================== warnings summary ===============================
../../../opt/ttforge-toolchain/venv/lib/python3.10/site-packages/hippynn/custom_kernels/__init__.py:38
  /opt/ttforge-toolchain/venv/lib/python3.10/site-packages/hippynn/custom_kernels/__init__.py:38: UserWarning: Numba or cupy not available: Custom Kernels will be disabled.
    warnings.warn("Numba or cupy not available: Custom Kernels will be disabled.")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
ERROR forge/test/models/pytorch/vision/suryaocr/test_surya_ocr.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======= 706/52447 tests collected (51741 deselected), 1 error in 17.98s ========

The issue was resolved when added Docker environment copy to build folder.
Added commit changes 2ae5766

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

Successfully merging this pull request may close these issues.

Add requirements.txt for all models

3 participants