Skip to content

fix(model-manager): gated models on IIM, teardown with later models, duplicate LiteLLM entries - #104

Open
AhmedSeemalK wants to merge 1 commit into
release-1.2from
rc2-fixes
Open

AhmedSeemalK wants to merge 1 commit into
release-1.2from
rc2-fixes

Conversation

@AhmedSeemalK

Copy link
Copy Markdown
Contributor

fix(model-manager): gated models on IIM, teardown with later models, duplicate LiteLLM entries

Fixes for v1.2.0-rc.2:

  • DCAIDSE8-2636: The Intel Inference Microservices serving pod now receives the hf-token Secret. The launcher refused gated models without HF_TOKEN, even when the weights were already downloaded.
  • DCAIDSE8-2637: llm_services now runs its own teardown before the ownership-label pass. Models deployed later with model-manager or Headlamp carry no labels and kept the model-store PVC in use, so teardown failed with "Still present after 600s".
  • DCAIDSE8-2638: A --wait deploy or undeploy now stops a pending no-wait reconciler, so only one process registers the model. Registration re-reads /model/info instead of adding the model a second time.

…duplicate LiteLLM entries

- Pass the hf-token Secret to Intel Inference Microservices serving pods; the
  launcher refuses a gated model without HF_TOKEN (DCAIDSE8-2636).
- llm_services runs its own teardown before the label pass, so models deployed
  later with model-manager or Headlamp no longer hold the model-store PVC
  (DCAIDSE8-2637).
- A --wait deploy or undeploy retires a pending no-wait reconciler, and
  registration re-reads /model/info instead of adding the model again
  (DCAIDSE8-2638).

Signed-off-by: AhmedSeemalK <100253923+AhmedSeemalK@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

In-flight reconciliation is not canceled and awaited, allowing a deleted model to be re-registered after undeploy or registration to race a foreground deploy.

1 open issue
What changed in this PR

This PR addresses model-manager deployment and teardown issues involving gated models, later-deployed workloads, and duplicate LiteLLM registrations.

Changes:

  • Pass the Hugging Face token Secret to Intel Inference Microservices serving pods.
  • Run model teardown before ownership-label cleanup.
  • Add reconciler retirement and retry registration visibility checks without repeating successful additions.
File Description
roles/​llm_services/​vars/​openshift.yaml Add an empty variables file for teardown loading.
roles/​llm_services/​vars/​kubernetes.yaml Add an empty variables file for teardown loading.
model_manager/​tests/​test_units.py Test token injection, reconciler retirement, and registration retries.
model_manager/​core/​routing.py Poll registration visibility after a successful addition.
model_manager/​core/​renderer.py Inject the token Secret into IIM serving pods.
model_manager/​core/​cli.py Add reconciler retirement during deployment and removal.
components.yaml Configure model teardown before label-based cleanup.

Review effort: Balanced

Comment thread model_manager/core/cli.py
Comment on lines +376 to +377
except BlockingIOError: # still running: it stops once its log is gone
log.unlink(missing_ok=True)
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.

2 participants