-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathtrigger_lora_bake.py
More file actions
32 lines (24 loc) · 968 Bytes
/
Copy pathtrigger_lora_bake.py
File metadata and controls
32 lines (24 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import asyncio
import sys
import os
from pathlib import Path
# Add project root to path
root = Path(__file__).resolve().parent.parent
sys.path.append(str(root))
async def main():
print("🚀 Zenith-HF2: Triggering LoRA Training cycle...")
# Provide the runtime root when launched outside the desktop/server boot path.
os.environ["AURA_ROOT"] = str(root)
from core.adaptation.self_optimizer import get_self_optimizer
optimizer = get_self_optimizer()
# Run with 1000 iterations for a massive, high-fidelity personality bake.
result = await optimizer.optimize(iters=1000, batch_size=4)
if result["ok"]:
print(f"✅ Success! Duration: {result['duration']:.2f}s")
print(f"📂 Adapter: {result['adapter']}")
print(f"📊 Samples: {result['samples']}")
else:
print(f"❌ Failed: {result['error']}")
raise SystemExit(1)
if __name__ == "__main__":
asyncio.run(main())