Instructions to use ReasoningKingdom/LITOperator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use ReasoningKingdom/LITOperator with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Trim the card to the simulation showcase
Browse files5 unmodified lines67891011124 unmodified lines17181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831842 unmodified lines1871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412425 unmodified lines2482492502512522532545 unmodified lines- robot-learning- robot-world-model- world-model- imitation-learning- lerobot- so101- earthrover4 unmodified lines# LITOperatorLITOperator is an exact robot model and robot world model. It is asmall, brainless, integer-only operator that turns an observation andan instruction into an exact action, and stores what actions do as onepersistent causal tree. It does not predict a distribution; it searches.It does not diffuse; it decides. One C core, one tree, one 16-hex wireformat.The model has two faces. The **robot model** reads a 64-slot u64 state(camera hashes, proprio, instruction hash), opens the search set, andreturns the first action of a path that passes the task's one-line IF.The **robot world model** is the tree: every node is a causal edge(parent, action, resulting key, DO score, goal/dead), and the next stateis the action target (kinematic) or the bound world's step.The product core is `lit_operator/` (C only). Host adapters live in`sandbox/lerobot_host/` and link the core; they are never copied intoit. The demo is `demo/demo.py`.## Observation and action contract- **Observation** — 64 u64 slots. Numeric dims take one slot each, rawIEEE-754 bits, no normalization. A camera takes one 8×8 hard-hash slot.An instruction takes one hash slot. The state key is 128 bits.- **Action** — one packed u64. Each dim is hard-quantized from thedataset's `min`/`max`; a 6-dim SO-101 arm uses 10 bits per dim.- **Judge** — one line of IF at the halt. Win stops, non-win continues.- **Open set** — one open step, one sampled action per decision. Thereis no nearest-neighbor estimate and no closed-set fallback. If noaction passes the judge, the host returns `None`; it never fabricatesan action.- **Determinism** — integer state, action, and score; seeded sampling;the same observation and tree give the same decision.## Open-set trainingClosed-set training makes a narrow tree. Every stage opens the searchset:- **data ingestion** — every observed edge is paired with one sampledcounterfactual action; the next state is the action target itself,encoded with the same codec. One open step per edge; the tree growsstates the data never showed.- **self-bootstrapping** — every expansion samples one new DO; the actionset itself opens.- **inference** — root = the current observation key; actions = thetree's children + one sampled action; expand = the world step or thekinematic rule; judge = the task IF; the first action drives.One step, one action is deliberate: breadth, not depth. A deep syntheticrollout compounds model error; one open neighbor per edge keeps the treeanchored to the data manifold and keeps growth linear.## Calibration and normalization- State slots are the raw IEEE-754 bit pattern. No range, no rounding,no normalization.- Action bins use the dataset's `meta/stats.json` min/max and truncation,never rounding.- Camera slots use one channel, an 8×8 grid, and a hard threshold of128. No pooling, no channel mean.- Video is never decoded for the feed: the MP4 sample table(`stsz`/`stco`/`stsc`) gives each frame's compressed bytes, which arehashed over HTTP Range. The drive host may hash live pixels with thesame 8×8 code.- The tree stores interventions, not states. The only machine state keptis the root; a host restore is a replay of the path.## Training dataThe corpus is [`lerobot/community_dataset_v3`](https://huggingface.co/datasets/lerobot/community_dataset_v3):791 datasets across 46 robot types and 25.97M frames on the card (therepository currently serves 1,755 `<contributor>/<dataset>` roots). Thestream is HTTPS-only; nothing is written to disk. Features includestate, action, cameras/video, text/instruction, effort, reward, GPS, IMU,and wheel RPMs. Simulation corpora are excluded.Every frame is one causal edge. The episode end is the judge.## WeightsThe released checkpoint is`weights/LITOperator-community_open_pretrain.safetensors`: 535,140 nodes,267,799 open, after reaching the subdataset`1g0rrr/demo2_upart_peeloff`. Load it with`lit_search_load_safetensors` in C, or inspect/play it with`demo/tree_io.py` and `demo/render_arm_3d.py`. The tree is append-only:node indices are stable across snapshots. Duplicate keys are intentionalin an open-set tree (a sampled counterfactual can land on a seen state).## Repository layout| path | role || --- | --- || `lit_operator/lit_core.c` | LITCORE: transfer, strict-less weighted Hamming reduce, rewire; one tick = F^64; hard halt 65. || `lit_operator/lit_operator.c` | the DO search: one node per intervention, a flat causal tree, a max-heap frontier, persistent sessions, JSON/safetensors checkpoints. || `lit_operator/dense.c` | the dense body: symbols × symbols × time, zero materialization. || `lit_operator/lit_main.c` | the product world main (`./lit go 19`, `./lit dense ...`). || `sandbox/lerobot_host/` | the LeRobot host: codec, stream, pretraining, drive host, self-loop. || `demo/demo.py` | one open-set decision on a synthetic world. || `demo/render_arm_3d.py` | a smooth SO-100 episode from a pretrained tree, dark 3D orthographic view. || `demo/render_lerobot_sim.py` | real LeRobot top camera next to a MuJoCo SO-100 simulation, same joint targets. || `demo/so_arm100/` | the MuJoCo Menagerie SO-100 model (Apache-2.0). || `weights/` | the released causal tree checkpoint (safetensors) and its progress label. |## UsageBuild the C core and the host library:```shmake lib # sandbox/lerobot_host/liblit.dylib (macOS) or liblit.so (Linux)make product # ./lit./lit go 19```Run the one-step open-set demo:```shmake demo```Render a smooth episode from a pretrained tree (the checkpoint isproduced by the training command below and is not stored in git). Theselected episode sweeps the base yaw 92.7° with low jerk; the view is adark 3D orthographic frame (base yaw q0 around z, q1..q4 the pitchchain):```shpython3 demo/render_arm_3d.py# writes demo/lit_arm_control_3d.mp4 locally; the GIF is shown here```Real LeRobot camera + MuJoCo SO-100 simulation (episode 22 of`00ri/so100_battery`, same joint targets). The camera is the actualLeRobot v3 video; the simulation is the MuJoCo Menagerie SO-100 model:```shpip install mujoco # MuJoCo simulation demoMUJOCO_GL=cgl python3 demo/render_lerobot_sim.py# writes demo/lit_lerobot_sim.mp4 locally; the GIF is shown here```Train the robot world model on the community corpus (one open step, oneaction per edge):```shcd sandbox/lerobot_hostpython3 lit_pretrain.py \--minutes 0 \--datasets lerobot/community_dataset_v3 \--community \--checkpoint-every 10 \--out community_open```Checkpoints are `community_open.json` and `community_open.safetensors`,plus `community_open.progress`. Resume from the safetensors file:```shpython3 lit_pretrain.py --minutes 0 \2 unmodified lines--resume community_open.safetensors```The drive host is the robot model:```pythonfrom lit_drive import actaction, rc, path_len = act(codec, frame, judge=judge)# action is None when no one-step open path passes the judge```On a real robot, bind a world:```pythonworld.step(words, code) -> (next_words, success)````success` is the task's IF. The first action of the found path drivesthe arm.## Documentation- Product core: [`lit_operator/`](lit_operator/)- LeRobot host: [`sandbox/lerobot_host/`](sandbox/lerobot_host/)- Demo: [`demo/demo.py`](demo/demo.py)## Out-of-scope use- No safety certification. Joint targets are unbounded by the model;velocity, force, workspace, and hardware-stop limits must be enforcedby the robot controller.- No operation near people, animals, or property without an independentsafety layer.- No high-risk, legal, medical, or employment decisions.- No surveillance, harassment, or harm to minors.- No use outside the licenses of the datasets and robot hardware.## Responsible AI developmentLITOperator is a research operator, not a certified controller. The treeis inspectable and every decision is a path; still, a path that passedthe judge is not a guarantee about the physical world. Keep the judgehonest, keep the hardware limits external, and test on the real machine.## LicenseMIT. See [`LICENSE`](LICENSE).## Trademarks and IPLeRobot, Hugging Face, SO-101, and EarthRover are the property of theirrespective owners. This project is not endorsed by them.## Citation5 unmodified linesurl = {https://github.com/zixi-reasoning/lit-arch}}```---*The operator is small. The world is the tree. The search is exact.*5 unmodified lines678910114 unmodified lines161718192021222324252627282930313233343536373839404142434445464748495051525354552 unmodified lines5859606162636465666768697071727374757677787980818283848586878889909192939495969798991001015 unmodified lines1071081095 unmodified lines- robot-learning- robot-world-model- world-model- lerobot- so101- earthrover4 unmodified lines# LITOperatorLITOperator is an exact robot model and robot world model. A small Coperator turns an observation and an instruction into exact action, andstores what actions do as one persistent causal tree.The state is a 64-slot u64 key (camera hashes, proprio, instructionhash); the action is one packed u64; the judge is one IF. Training,self-bootstrapping and inference are open-set: one open step, one sampledaction, no nearest-neighbor estimate.## Contract- State: 64 u64 slots; cameras 8x8 hard hashes; instruction hash; rawIEEE proprio.- Action: one packed u64; hard-quantized from the dataset min/max.- Judge: one line of IF at the halt.- Open set: one open step, one sampled action per decision.## TrainingOpen-set ingestion over `lerobot/community_dataset_v3`, streamed overHTTPS, never written to disk. Each observed edge is paired with onesampled counterfactual action; the next state is the action target.```shcd sandbox/lerobot_hostpython3 lit_pretrain.py --minutes 0 \--datasets lerobot/community_dataset_v3 --community \--checkpoint-every 10 --out community_open```Resume from the safetensors checkpoint (the progress sidecar supplies`--start-root`):```shpython3 lit_pretrain.py --minutes 0 \2 unmodified lines--resume community_open.safetensors```## Weights`weights/LITOperator-community_open_pretrain.safetensors` — 535,140 nodes,267,799 open. Load with `lit_search_load_safetensors` in C, or inspectwith `demo/tree_io.py`.## UsageBuild the host library and run the one-step demo:```shmake libmake demo```Render the real LeRobot camera next to the MuJoCo SO-100 simulation(local MP4; the GIF above is the card):```shpip install mujocoMUJOCO_GL=cgl python3 demo/render_lerobot_sim.py```## Examples- `lit_operator/` ��� the C core.- `sandbox/lerobot_host/` — the LeRobot host.- `demo/render_lerobot_sim.py` — real camera + MuJoCo SO-100.## SafetyA research operator, not a certified controller. Enforce velocity, force,workspace, and hardware-stop limits on the robot.## LicenseMIT. The SO-100 model under `demo/so_arm100/` is Apache-2.0 (MuJoCoMenagerie).## Citation5 unmodified linesurl = {https://github.com/zixi-reasoning/lit-arch}}```
README.md+47-192