# Task-Potential Relationship Graph Model (v2) This repository contains the 36.5M-parameter task-potential checkpoint and the minimal model/inference source needed to load it. ## Important: use an external LLM proposer **Do not use the checkpoint's optional learned self-proposer (`propose_controls()` or `select_control()`) for this workflow.** The inverse primitive head is experimental and is not the proposal source used for the recommended setup. At every observed state: 1. Call an LLM with the measured robot/world state and actuator contract. 2. Ask it for several fresh, complete numeric actuator target packages. A package has one value per active actuator. There is no fixed action menu. 3. Pass the candidate packages to `score_control_candidates(..., selector="task_completion")` with the current graph batch. 4. Execute the candidate with the **highest** learned task-completion score, then observe the next state and repeat. For `selector="task_completion"`, higher scores are preferred; the implementation chooses `argmax`. The model scores supplied candidates; it does not generate the LLM proposals. Ensure the adapter maps each control value to the target robot's actual actuator units/ranges. Do not send semantic labels such as “jaw” or “finger” as a substitute for measured actuator metadata. The accompanying JSON schema describes the LLM candidate-list response shape. The LLM call itself is external to this model package. The project evaluation used `codex exec --model gpt-6.1-sol` through a signed-in Codex CLI session; it did not use an OpenAI API key. A user deploying elsewhere should use an LLM provider and authentication they control. ## Model summary - 36,534,626 parameters; checkpoint file: 146,225,981 bytes (139.4 MiB). - Variable-size graph inputs for bodies and actuators; relation dimension 24. - Width 384, four state graph blocks, two effect blocks, two text blocks, eight goal atoms, and eight attention heads. - The model encodes directed source-local relative SE(3), velocities, geometry, articulation, and actuator measurements. The task-conditioned path predicts candidate effects and scores the resulting relationship changes. - This is a learned one-step effect/task-completion scorer, not a verified optimal-Q function or a standalone policy. ## Load and score Install PyTorch and NumPy, then make `src` importable: ```python import torch from inference import load_model, score_control_candidates model, metadata = load_model("task-potential-best.pt", device="cuda") # `batch` must be built by an adapter matching the model ABI and contain # current measured graph state, text/task tokens, actuator metadata/masks, # and finite admissible command bounds. # `llm_candidates` is a tensor/list shaped [candidate_count, padded_actuator_count]. result = score_control_candidates( model, batch, llm_candidates, selector="task_completion" ) selected_package = result["control"] selected_score = result["score"][result["index"]] ``` The model source expects the project graph ABI defined in `src/model.py` and `src/dataset.py`. A robot-specific MuJoCo/robot adapter is still required to construct the batch and map numeric commands to actuators safely. Do not treat this example as a hardware driver. ## Evidence and limitations Training used procedurally generated MuJoCo interaction episodes across pickup-and-hold, reach, push, and place tasks, with randomized scene/contact parameters and 2/3/4 radial appendages. Evaluation so far is simulation-only. In a small two-seed procedural pickup check with external Codex LLM proposals and learned-score selection, one trial completed a one-second hold after an 8.086 cm peak lift; the other was partial (8.313 cm lift, then provider timeout) and did not establish a completed hold. These results are preliminary and do not establish transfer to commercial arms or physical hardware. A useful diagnostic caveat: the trained objective scores task completion/hold, not maximum immediate one-step lift. Candidate ranking should be audited against full executed outcomes, not only an immediate-lift proxy. The model and LLM proposer both require held-out evaluation on each new simulator adapter before any hardware use. No raw training dataset, run logs, provider transcripts, credentials, or private keys are included here. No reuse license is granted in this export; a license should be added only if the project owner chooses one. ## Checkpoint integrity - SHA-256: `8729a1bd3a71ee4b904ae62e855bc3c1d82f9a6f842377e542e94da9e46f559a` - Checkpoint: `task-potential-best.pt`