atakan Claude Sonnet 5 commited on
Commit
f803d3f
·
1 Parent(s): 8edeb7f

chore: Remove dead code and stale Docker/GGUF-era artifacts

Browse files

- controlai_agent/cli.py: confirmed unimported anywhere (the real CLI
entry point is the root cli.py that run.sh actually invokes).
- scripts/convert_hf_to_gguf.py: non-functional as committed (missing
the llama.cpp conversion/ and gguf-py/ packages it imports); the
actual GGUF conversion for this model was done via a throwaway clone
of llama.cpp, not this script.
- scripts/upload_to_hf.py: was sitting untracked; it's the correct,
working uploader for the (now-fixed) fused model, so it's added
properly instead of left stray.

Also cleared ~14GB of local scratch model artifacts that are no longer
needed: the broken MLX-quantized "fused" checkpoint kept as a backup,
and the intermediate/GGUF files from producing the model now hosted on
atakankahya/ControlAI-Agent (both already safely on the Hub).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. controlai_agent/cli.py +0 -86
controlai_agent/cli.py DELETED
@@ -1,86 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Interactive CLI for ControlAI Agent with deterministic tool calling."""
3
-
4
- from __future__ import annotations
5
-
6
- import argparse
7
- import sys
8
- from pathlib import Path
9
-
10
- PROJECT_ROOT = Path(__file__).resolve().parents[1]
11
- if str(PROJECT_ROOT) not in sys.path:
12
- sys.path.insert(0, str(PROJECT_ROOT))
13
-
14
- from controlai_agent.orchestrator import ControlAIAgent
15
-
16
-
17
- def main() -> int:
18
- parser = argparse.ArgumentParser(description="ControlAI Offline Engineering Agent CLI")
19
- parser.add_argument(
20
- "--model",
21
- type=str,
22
- default="mlx-community/Qwen3-4B-Instruct-2507-4bit",
23
- help="Base model path or HuggingFace repo",
24
- )
25
- parser.add_argument(
26
- "--adapter-path",
27
- type=str,
28
- default=None,
29
- help="Optional fine-tuned LoRA adapter path",
30
- )
31
- parser.add_argument(
32
- "--prompt",
33
- type=str,
34
- default=None,
35
- help="Single prompt to execute in non-interactive mode",
36
- )
37
- parser.add_argument(
38
- "--verbose",
39
- action="store_true",
40
- help="Print raw tool calls and intermediate steps",
41
- )
42
- args = parser.parse_args()
43
-
44
- print("Initializing ControlAI Agent...")
45
- agent = ControlAIAgent(model_path=args.model, adapter_path=args.adapter_path)
46
- print("ControlAI Agent initialized with deterministic control tools.")
47
-
48
- if args.prompt:
49
- result = agent.run(args.prompt, verbose=args.verbose)
50
- print("\n" + "=" * 50)
51
- print("AGENT RESPONSE:")
52
- print("=" * 50)
53
- print(result.final_response)
54
- if result.tool_traces:
55
- print("\n" + "-" * 50)
56
- print(f"EXECUTED TOOLS ({len(result.tool_traces)}):")
57
- for trace in result.tool_traces:
58
- print(f" * {trace.tool_name}({trace.arguments}) -> {trace.result.get('status', 'done')}")
59
- return 0
60
-
61
- print("\n" + "=" * 60)
62
- print("🤖 Welcome to Control-LLM (Offline Control Engineering Agent)")
63
- print("=" * 60)
64
- print("Type your control engineering question or design problem.")
65
- print("Commands: 'exit' or 'quit' to end, 'verbose' to toggle tool details.\n")
66
- while True:
67
- try:
68
- user_input = input("\n[Engineer] > ").strip()
69
- if not user_input:
70
- continue
71
- if user_input.lower() in ("exit", "quit", "q"):
72
- break
73
- result = agent.run(user_input, verbose=args.verbose)
74
- print(f"\n[ControlAI]\n{result.final_response}")
75
- if result.tool_traces and not args.verbose:
76
- tools_used = ", ".join(t.tool_name for t in result.tool_traces)
77
- print(f"\n(Verified using tools: {tools_used})")
78
- except (KeyboardInterrupt, EOFError):
79
- print("\nExiting ControlAI.")
80
- break
81
-
82
- return 0
83
-
84
-
85
- if __name__ == "__main__":
86
- raise SystemExit(main())