Skip to content

chore: remove dead Llama SKU catalog and broken generate_prompt_format script.#5957

Open
derekhiggins wants to merge 1 commit into
ogx-ai:mainfrom
derekhiggins:chore/remove-dead-sku-catalog
Open

chore: remove dead Llama SKU catalog and broken generate_prompt_format script.#5957
derekhiggins wants to merge 1 commit into
ogx-ai:mainfrom
derekhiggins:chore/remove-dead-sku-catalog

Conversation

@derekhiggins
Copy link
Copy Markdown
Contributor

@derekhiggins derekhiggins commented May 27, 2026

Summary

  • Remove dead Llama model SKU catalog files (sku_list.py, sku_list_download.py, sku_types.py)
  • Remove broken scripts/generate_prompt_format.py (imports module deleted in chore: prune llama_stack.models package #4829)
  • Remove unused ALL_HUGGINGFACE_REPOS_TO_MODEL_DESCRIPTOR mapping and llama_model metadata validation from model_registry.py
  • Remove ProviderModelEntry.llama_model field and get_llama_model() method (no provider sets this)

Context

The SKU files supported the inline vLLM provider (deleted in #2824) and Ollama's hardcoded model entries (removed in #1107/#2916). After those removals, no runtime code consumed this catalog. PR #4838 cleaned up most usage but missed the HF-repo mapping in providers/utils/inference.

The code also contained two confirmed bugs (ambiguous HF repo lookup for 405B variants, broken is_instruct_model property) that were never hit because nothing calls the affected code paths.

Test plan

  • uv run pytest tests/unit/ -x --tb=short passes (325 tests, same as before)
  • uv run pre-commit run --all-files passes
  • Verified no other files import from the deleted modules

Closes #5956


Open in Devin Review

Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Copy Markdown
Collaborator

@mattf mattf left a comment

Choose a reason for hiding this comment

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

❤️

@derekhiggins derekhiggins changed the title chore: remove dead Llama SKU catalog and broken generate_prompt_format script chore: remove dead Llama SKU catalog and broken generate_prompt_format script. May 27, 2026
…t script

The SKU files (sku_list.py, sku_list_download.py, sku_types.py) and
scripts/generate_prompt_format.py became dead code after the inline
vLLM provider was removed in ogx-ai#2824 and the model implementation was
deleted in ogx-ai#4829/ogx-ai#4871. The remaining consumer in
providers/utils/inference built a HuggingFace-repo-to-descriptor
mapping that no provider ever populated.

Closes ogx-ai#5956

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Derek Higgins <derekh@redhat.com>
@derekhiggins derekhiggins force-pushed the chore/remove-dead-sku-catalog branch from a91ae1d to a34b6ef Compare May 27, 2026 14:09
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.

chore: remove dead Llama SKU catalog and broken generate_prompt_format script

2 participants