0VSol13 commited on
Commit
2013ad0
·
verified ·
1 Parent(s): 9ec85a7

Upload folder using huggingface_hub

Browse files
WORMHOLE-PRIME/SYNC/system_alerts.txt CHANGED
@@ -1,3 +1,6 @@
1
  [2026-10-08T00:30:19] WARNING: Daemon brain_food_ingest is OFFLINE.
2
  [2026-10-08T00:30:20] WARNING: Daemon synaptic_router is OFFLINE.
3
  [2026-10-08T00:30:20] WARNING: Daemon cogpulse_daemon is OFFLINE.
 
 
 
 
1
  [2026-10-08T00:30:19] WARNING: Daemon brain_food_ingest is OFFLINE.
2
  [2026-10-08T00:30:20] WARNING: Daemon synaptic_router is OFFLINE.
3
  [2026-10-08T00:30:20] WARNING: Daemon cogpulse_daemon is OFFLINE.
4
+ [2026-10-08T01:00:16] WARNING: Daemon brain_food_ingest is OFFLINE.
5
+ [2026-10-08T01:00:16] WARNING: Daemon synaptic_router is OFFLINE.
6
+ [2026-10-08T01:00:16] WARNING: Daemon cogpulse_daemon is OFFLINE.
WORMHOLE-PRIME/si_harness.py ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import sys
3
+ import json
4
+ import os
5
+ import subprocess
6
+ from pathlib import Path
7
+
8
+ # Placeholder for SI Harness pipeline configuration
9
+ CONFIG_PATH = Path(os.getenv('WORMHOLE_CONFIG_DIR', 'D:\\WORMHOLE\\WORMHOLE-PRIME\\SYNC\\si_config.json'))
10
+
11
+ def load_config():
12
+ if CONFIG_PATH.exists():
13
+ with open(CONFIG_PATH, 'r') as f:
14
+ return json.load(f)
15
+ return {}
16
+
17
+ def save_config(cfg):
18
+ CONFIG_PATH.parent.mkdir(parents=True, exist_ok=True)
19
+ with open(CONFIG_PATH, 'w') as f:
20
+ json.dump(cfg, f, indent=4)
21
+
22
+ def sync_hf_kaggle(args):
23
+ """Sync Hugging Face models/datasets with Kaggle environment."""
24
+ print("Syncing HF <-> Kaggle...")
25
+ # e.g., huggingface-cli upload ...
26
+ # e.g., kaggle kernels push ...
27
+ print("[OK] HF & Kaggle sync protocol initiated.")
28
+
29
+ def link_colab(args):
30
+ """Establish bridge to Colab ngrok/tunnel for inference."""
31
+ print(f"Linking Colab Endpoint: {args.url}")
32
+ cfg = load_config()
33
+ cfg['colab_endpoint'] = args.url
34
+ save_config(cfg)
35
+ print("[OK] Colab linked.")
36
+
37
+ def link_cloud_vm(args):
38
+ """Register Cloud VM for orchestration."""
39
+ print(f"Linking Cloud VM Endpoint: {args.ip}")
40
+ cfg = load_config()
41
+ cfg['cloud_vm_ip'] = args.ip
42
+ save_config(cfg)
43
+ print("[OK] Cloud VM linked.")
44
+
45
+ def invoke_spaces(args):
46
+ """Send requests to HF Spaces (ARCADE / DICKBOX)."""
47
+ space = args.space.upper()
48
+ print(f"Invoking HF Space: {space}")
49
+ # gradio_client / requests
50
+ print(f"[OK] Space {space} invoked. Awaiting async response...")
51
+
52
+ def status(args):
53
+ """Check harness status."""
54
+ cfg = load_config()
55
+ print("=== SI HARNESS STATUS ===")
56
+ print(f"Colab Endpoint: {cfg.get('colab_endpoint', 'None')}")
57
+ print(f"Cloud VM IP: {cfg.get('cloud_vm_ip', 'None')}")
58
+ print("HF Spaces: ARCADE (Ready), DICKBOX (Ready)")
59
+ print("Kaggle: Connected")
60
+
61
+ def main():
62
+ parser = argparse.ArgumentParser(description="SI Harness: Unified Orchestration for HF, Kaggle, Colab, VM, Spaces")
63
+ subparsers = parser.add_subparsers(dest="command", required=True)
64
+
65
+ # Sync
66
+ parser_sync = subparsers.add_parser('sync', help="Sync HF and Kaggle Jupyter server")
67
+ parser_sync.set_defaults(func=sync_hf_kaggle)
68
+
69
+ # Colab
70
+ parser_colab = subparsers.add_parser('colab', help="Link Colab inference endpoint")
71
+ parser_colab.add_argument('--url', required=True, help="Ngrok/Cloudflare URL from Colab")
72
+ parser_colab.set_defaults(func=link_colab)
73
+
74
+ # VM
75
+ parser_vm = subparsers.add_parser('vm', help="Link Cloud VM endpoint")
76
+ parser_vm.add_argument('--ip', required=True, help="IP or Hostname of Cloud VM")
77
+ parser_vm.set_defaults(func=link_cloud_vm)
78
+
79
+ # Spaces
80
+ parser_spaces = subparsers.add_parser('space', help="Invoke HF Spaces")
81
+ parser_spaces.add_argument('space', choices=['arcade', 'dickbox'], help="Target Space")
82
+ parser_spaces.set_defaults(func=invoke_spaces)
83
+
84
+ # Status
85
+ parser_status = subparsers.add_parser('status', help="View harness pipeline status")
86
+ parser_status.set_defaults(func=status)
87
+
88
+ args = parser.parse_args()
89
+ args.func(args)
90
+
91
+ if __name__ == "__main__":
92
+ main()