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

Skip to content

Conversation

@booxter
Copy link
Contributor

@booxter booxter commented Apr 17, 2025

Before the change, lists of models were not converted to dicts before
passing them to ruamel representor. It broke config show when a
models section was added to it because the field is s list of
model_info classes.

With this change, we should correctly handle tuples and lists. If we
ever need something else, like dicts, we may expand the serialization
code further.

Signed-off-by: Ihar Hrachyshka [email protected]

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.
  • Functional tests have been added, if necessary.
  • E2E Workflow tests have been added, if necessary.

@booxter
Copy link
Contributor Author

booxter commented Apr 17, 2025

$ .tox/unit/bin/ilab config show -k models
  -
  # Family the model belongs to.
    family: meta-llama
  # Internal ID referring to a particular model from the list.
    id: llama-3.2
  # Path to where the model can be found. Can either be a HF reference or local
  # filepath.
    path: /Users/jrao/.cache/instructlab/models/meta-llama/Llama-3.2-3B-Instruct/
  # The initial message used to prompt the conversation with this model. E.g. "You
  # are a helfpul AI assistant..."
  # Default: None
    system_prompt: test sys prompt

Copy link
Member

@jaideepr97 jaideepr97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally, works
LGTM, thanks @booxter

@jaideepr97 jaideepr97 requested a review from RobotSail April 17, 2025 15:51
@mergify mergify bot added the one-approval PR has one approval from a maintainer label Apr 17, 2025
@jaideepr97 jaideepr97 requested a review from cdoern April 17, 2025 15:51
@mergify mergify bot removed the one-approval PR has one approval from a maintainer label Apr 17, 2025
@mergify mergify bot added the ci-failure PR has at least one CI failure label Apr 17, 2025
@jaideepr97
Copy link
Member

medium job seems to be failing consistently with storage issues that seem unrelated to PR changes

@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 Apr 17, 2025
@github-actions
Copy link

E2E (NVIDIA L40S x4) LLAMA workflow launched on this PR: View run

@github-actions
Copy link

e2e workflow failed on this PR: View run, please investigate.

@booxter
Copy link
Contributor Author

booxter commented Apr 18, 2025

@Mergifyio rebase

Before the change, lists of models were not converted to dicts before
passing them to ruamel representor. It broke `config show` when a
`models` section was added to it because the field is s list of
model_info classes.

With this change, we should correctly handle tuples and lists. If we
ever need something else, like dicts, we may expand the serialization
code further.

Signed-off-by: Ihar Hrachyshka <[email protected]>
@mergify
Copy link
Contributor

mergify bot commented Apr 18, 2025

rebase

✅ Branch has been successfully rebased

@booxter booxter force-pushed the fix-config-dump-for-lists-of-models branch from 741944f to dff86fa Compare April 18, 2025 15:03
@mergify mergify bot removed the ci-failure PR has at least one CI failure label Apr 18, 2025
@mergify mergify bot merged commit 081a83d into instructlab:main Apr 18, 2025
27 checks passed
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.

4 participants