Skip to content

bug: broken aLora example after intrinsics refactor #385

Description

@planetf1

Epic: #929 | Blocked by: #1141 (LocalFileBinding / PEFT path must be stable before the aLoRA example can be rewritten to use the new API) | Lands with: Phase 4 / #1144 docs + tutorials consolidation


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 via LocalFileBinding (Epic #929 Phase 2 / #1141).

Related Issues

Files Affected

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/adapter-functionsGranite adapter functions: framework and adaptiers including RAG, Guardian, Corearea/aloraLoRA/aLora adapter trainingarea/backendsProvider-specific work: Ollama, HF, LiteLLM, OpenAI, Bedrock, vLLMbugSomething isn't workingp2Medium/low: minor bugs, niche features, polish, docs, tests, cleanup. Scoped, lower urgency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions