Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tiran
Copy link
Contributor

@tiran tiran commented Jun 28, 2024

All tox environments now set CMAKE_ARGS=-DLLAMA_NATIVE=off by default. The value can be overridden by setting CMAKE_ARGS in the external environment.

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the
    conventional commits.
  • Changelog updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

@tiran
Copy link
Contributor Author

tiran commented Jun 28, 2024

@booxter for you

@mergify mergify bot added CI/CD Affects CI/CD configuration testing Relates to testing ci-failure PR has at least one CI failure labels Jun 28, 2024
@booxter
Copy link
Contributor

booxter commented Jun 28, 2024

Confirming this works in my env (was failing to compile llama-cpp-python before). Thank you!

@mergify mergify bot removed the ci-failure PR has at least one CI failure label Jun 28, 2024
@mergify mergify bot added the one-approval PR has one approval from a maintainer label Jun 28, 2024
@booxter
Copy link
Contributor

booxter commented Jun 29, 2024

I wonder if this may actually break the CI. See here I get a failure in functional suite for a series with this patch included: https://github.com/instructlab/instructlab/actions/runs/9720826409/job/26832726682?pr=1275

  Aborted!
  Exception ignored on calling ctypes callback function: <function llama_log_callback at 0x7fe4988323b0>
  Traceback (most recent call last):
    File "/home/runner/work/instructlab/instructlab/.tox/py310-functional/lib/python3.10/site-packages/llama_cpp/_logger.py", line 23, in llama_log_callback
      @llama_cpp.llama_log_callback
  KeyboardInterrupt: 
  Error: ilab model chat command failed

Without this patch, tests pass. So non-native implementation seems to produce a traceback on KeyboardInterrupt that makes the test case fail.

Have you tried to run functional suite with the patch?


NOTE: I think this also reveals that tox.ini changes are not gated against. Though I see that tox.ini is explicitly listed in paths for different workflows (lint etc.) So I'm confused why no workflows triggered for this patch.

UPD: Maybe workflows are fine, at least I can get them triggered by just touching the file here: #1528

@booxter
Copy link
Contributor

booxter commented Jun 29, 2024

The old HEAD state triggered the actions: https://github.com/instructlab/instructlab/actions/runs/9716082740/job/26818894234 but not the one that was force-pushed afterwards. Was there some interruption in github workflow service that this PR caught?

@tiran
Copy link
Contributor Author

tiran commented Jun 30, 2024

The function tests are flaky and regularly fail without any apparent reason. Restarting failed tests usually fixes the problem. I had to restart test in multiple PRs in the past few days.

@booxter
Copy link
Contributor

booxter commented Jun 30, 2024

@tiran The problem is that they were not triggered on this PR at all. And for what I see in my series until I included this patch here (for testing) - it was not flaky, it was consistently failing on this exact test case and with this exact traceback I show above. I think we should get fresh functional result here before considering merging it.

@tiran
Copy link
Contributor Author

tiran commented Jun 30, 2024

#1526 includes this patch and tests are passing. Strange...

@mergify mergify bot removed the one-approval PR has one approval from a maintainer label Jun 30, 2024
@tiran tiran closed this Jul 3, 2024
@tiran tiran force-pushed the tox-cmake-args branch from 0387f82 to b65cfc9 Compare July 3, 2024 11:27
@tiran tiran deleted the tox-cmake-args branch July 3, 2024 11:27
@tiran
Copy link
Contributor Author

tiran commented Jul 3, 2024

The improvement landed with #1526 .

@mergify mergify bot added ci-failure PR has at least one CI failure and removed ci-failure PR has at least one CI failure labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD Affects CI/CD configuration testing Relates to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants