Skip to content

bug: broken aLora example after intrinsics refactor #385

@planetf1

Description

@planetf1

Fix broken aLora example after intrinsics refactor

Problem

docs/examples/aLora/101_example.py has been broken since commit 1229206 (Nov 2025) when mellea/backends/aloras/ was removed during the intrinsics refactor.

Error:

from mellea.backends.aloras.huggingface.granite_aloras import HFConstraintAlora
# ImportError: No module named 'mellea.backends.aloras'

Root Cause

The intrinsics refactor removed the bespoke aLora implementation in favour of the new intrinsics API, but the example was not updated.

Solution

Rewrite docs/examples/aLora/101_example.py to use the new intrinsics API for loading and using trained adapters.

Related Issues

Files Affected

  • docs/examples/aLora/101_example.py
  • Possibly docs/alora.md (documentation)

Metadata

Metadata

Assignees

Labels

area/aloraLoRA/aLora adapter trainingarea/backendsProvider-specific work: Ollama, HF, LiteLLM, OpenAI, Bedrock, vLLMarea/intrinsicsGranite intrinsic adapters: RAG, Guardian, CorebugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions