Simo76 commited on
Commit
1728e21
Β·
1 Parent(s): 79ad95d

Update controller.py

Browse files
Files changed (1) hide show
  1. controller.py +11 -9
controller.py CHANGED
@@ -1,19 +1,20 @@
1
  """
2
- Unified LoRA Controller
3
- ========================
4
 
5
- Convenience wrapper that re-exports from the two core modules:
6
- - nested_lora.py (engine: NestedLoRALinear, inject, set_rank)
7
- - orbital_controller.py (intelligence: OrbitalController)
8
 
9
- Import from here for quick usage, or from the individual modules
10
- for finer control.
 
 
 
11
 
12
  Author: Simona Vargiu
13
  License: Apache 2.0
14
  """
15
 
16
- # Engine
17
  from nested_lora import (
18
  NestedLoRALinear,
19
  inject_nested_lora,
@@ -22,12 +23,13 @@ from nested_lora import (
22
  count_params,
23
  )
24
 
25
- # Intelligence
26
  from orbital_controller import (
27
  OrbitalController,
28
  setup_unified_lora,
29
  )
30
 
 
31
  __all__ = [
32
  "NestedLoRALinear",
33
  "inject_nested_lora",
 
1
  """
2
+ Unified-LoRA Controller
3
+ ======================
4
 
5
+ Convenience wrapper that exposes the full Unified-LoRA stack:
 
 
6
 
7
+ - nested_lora.py β†’ execution engine (LoRA with dynamic rank slicing)
8
+ - orbital_controller.py β†’ control logic (stress-driven rank adaptation)
9
+
10
+ Use this module for simple integration, or import submodules directly
11
+ for fine-grained control.
12
 
13
  Author: Simona Vargiu
14
  License: Apache 2.0
15
  """
16
 
17
+ # ── ENGINE ──────────────────────────────────────────
18
  from nested_lora import (
19
  NestedLoRALinear,
20
  inject_nested_lora,
 
23
  count_params,
24
  )
25
 
26
+ # ── CONTROLLER ──────────────────────────────────────
27
  from orbital_controller import (
28
  OrbitalController,
29
  setup_unified_lora,
30
  )
31
 
32
+ # ── EXPORT ──────────────────────────────────────────
33
  __all__ = [
34
  "NestedLoRALinear",
35
  "inject_nested_lora",