Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

Fix chat context switching#2735

Closed
radeksm wants to merge 1 commit intoinstructlab:mainfrom
radeksm:bugfix/2730
Closed

Fix chat context switching#2735
radeksm wants to merge 1 commit intoinstructlab:mainfrom
radeksm:bugfix/2730

Conversation

@radeksm
Copy link
Copy Markdown
Contributor

@radeksm radeksm commented Dec 3, 2024

Any attempt to switch context ended up with:

File "/Users/xx/src/xxx/instructlab/src/instructlab/utils.py", line 797, in is_model_gguf
with model_path.open("rb") as f:
^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'open'

Unfortunately changing the argument of get_model_arch() from string to pathlib.Path does not fully resolve the problem because get_sysprompt() and get_sysprompt had a different argument list, in order to unify both I added arch string argument to get_cli_helper_sysprompt() which is ignored but in that way both functions accept the same list of arguments.

Fixes: #2730

@mergify mergify Bot added the ci-failure PR has at least one CI failure label Dec 3, 2024
@nathan-weinberg
Copy link
Copy Markdown
Member

@radeksm please fix DCO signoff

@nathan-weinberg nathan-weinberg requested a review from a team December 5, 2024 15:52
@mergify mergify Bot added CI/CD Affects CI/CD configuration and removed ci-failure PR has at least one CI failure labels Dec 8, 2024
@radeksm
Copy link
Copy Markdown
Contributor Author

radeksm commented Dec 8, 2024

@radeksm please fix DCO signoff

Missing DCO signoff added, thanks !

@mergify mergify Bot added the ci-failure PR has at least one CI failure label Dec 9, 2024
@nathan-weinberg
Copy link
Copy Markdown
Member

Squash and rebasing should fix the CI issues, sorry about that

Any attempt to switch context ended up with:

   File "/Users/xx/src/xxx/instructlab/src/instructlab/utils.py", line 797, in is_model_gguf
    with model_path.open("rb") as f:
         ^^^^^^^^^^^^^^^
   AttributeError: 'str' object has no attribute 'open'

Unfortunately changing the argument of get_model_arch() from string to
pathlib.Path does not fully resolve the problem because get_sysprompt()
and get_sysprompt had a different argument list, in order to unify both
I added arch string argument to get_cli_helper_sysprompt() which is
ignored but in that way both functions accept the same list of
arguments.

Fixes: instructlab#2730
Signed-off-by: Radoslaw Smigielski <[email protected]>

build(deps): bump docker/build-push-action from 6.9.0 to 6.10.0

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.9.0 to 6.10.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@4f58ea7...48aba3b)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Add disk check after tests run

Signed-off-by: Dan McPherson <[email protected]>
@mergify mergify Bot removed the ci-failure PR has at least one CI failure label Dec 11, 2024
@reidliu41
Copy link
Copy Markdown
Contributor

actually, I already submit it 2731 for 2729 and 2730

@radeksm
Copy link
Copy Markdown
Contributor Author

radeksm commented Dec 15, 2024

actually, I already submit it 2731 for 2729 and 2730

Hi @reidliu41, when it comes to your review https://github.com/instructlab/instructlab/pull/2731/commits, with all the respect I am not sure if we want to introduce new lambda into the code base.
And I am not a PEP-8 purist in any sense :)
just trying to prevent potential problems or introduce additional complexity with debugging.

@nathan-weinberg nathan-weinberg requested a review from a team December 19, 2024 18:53
@mergify mergify Bot added the ci-failure PR has at least one CI failure label Dec 19, 2024
@github-actions
Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had activity within 60 days. It will be automatically closed if no further activity occurs within 30 days.

@github-actions github-actions Bot added the stale label Feb 18, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Feb 18, 2025

This pull request has merge conflicts that must be resolved before it can be merged. @radeksm please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase This Pull Request needs to be rebased label Feb 18, 2025
@github-actions github-actions Bot removed the stale label Feb 19, 2025
@mergify mergify Bot removed the needs-rebase This Pull Request needs to be rebased label Mar 27, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Mar 27, 2025

This pull request has merge conflicts that must be resolved before it can be merged. @radeksm please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase This Pull Request needs to be rebased label Mar 27, 2025
@mergify mergify Bot removed the needs-rebase This Pull Request needs to be rebased label Apr 28, 2025
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Apr 28, 2025

This pull request has merge conflicts that must be resolved before it can be merged. @radeksm please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase This Pull Request needs to be rebased label Apr 28, 2025
@booxter
Copy link
Copy Markdown
Contributor

booxter commented Jun 18, 2025

believe it was fixed in #2731

@booxter booxter closed this Jun 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CI/CD Affects CI/CD configuration ci-failure PR has at least one CI failure needs-rebase This Pull Request needs to be rebased

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cannot change context in chat box

4 participants