Update controller.py
Browse files- controller.py +11 -9
controller.py
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
"""
|
| 2 |
-
Unified
|
| 3 |
-
======================
|
| 4 |
|
| 5 |
-
Convenience wrapper that
|
| 6 |
-
- nested_lora.py (engine: NestedLoRALinear, inject, set_rank)
|
| 7 |
-
- orbital_controller.py (intelligence: OrbitalController)
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
Author: Simona Vargiu
|
| 13 |
License: Apache 2.0
|
| 14 |
"""
|
| 15 |
|
| 16 |
-
#
|
| 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 |
-
#
|
| 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",
|