Views
No views yet
llama.cpp while retaining the intelligence to understand complex human intent.snake_case (e.g., professor_xavier_office).sit -> stand -> move) for fetching and delivering items without needing explicit user instruction.actions.{"type": "teleop", "cmd": "move_forward", "distance": <float>}{"type": "teleop", "cmd": "move_backward", "distance": <float>}{"type": "teleop", "cmd": "rotate_left", "angle": <float>}{"type": "teleop", "cmd": "rotate_right", "angle": <float>}{"type": "teleop", "cmd": "set_speed", "level": "slow" | "normal" | "fast"}{"type": "teleop", "cmd": "stop"} (For casual pauses){"type": "teleop", "cmd": "e_stop"} (For panicked/emergency stops){"type": "nav2", "cmd": "go_to_waypoint", "target": "<snake_case_string>"}{"type": "nav2", "cmd": "cancel_goal"}{"type": "stunt", "cmd": "full_sit"}{"type": "stunt", "cmd": "half_sit"}{"type": "stunt", "cmd": "stand_up"}{"type": "stunt", "cmd": "spin", "direction": "clockwise" | "anticlockwise"}1{
2 "actions": [
3 {"type": "nav2", "cmd": "go_to_waypoint", "target": "server_room"},
4 {"type": "stunt", "cmd": "full_sit"},
5 {"type": "stunt", "cmd": "stand_up"},
6 {"type": "nav2", "cmd": "go_to_waypoint", "target": "john_desk"},
7 {"type": "stunt", "cmd": "full_sit"}
8 ]
9}
10from llama_cpp import Llama
print("⏳ Loading model... please wait.")
llm = Llama(
model_path="./tasx_sft_merged_gguf/tasx_sft_merged.Q8_0.gguf",
n_ctx=512,
stop=["<|im_end|>"],
verbose=False
)
print("\n" + "="*50)
print("TASX ROBOT ")
print("Type a command and press Enter. Type 'q' to quit.")
print("="*50 + "\n")
while True:
user_text = input("🎤 You: ")
if user_text.lower() in ['q', 'quit', 'exit']:
print("Stopping tester. Great job!")
break
if not user_text.strip():
continue
prompt = f"<|im_start|>user\n{user_text}<|im_end|>\n<|im_start|>assistant\n"
output = llm(
prompt,
max_tokens=150,
temperature=0,
echo=False
)
response = output["choices"][0]["text"].strip()
print(f"TASX: {response}\n")