State experts, batch 2: 2,590 qualified ManiSkill3 experts
Browse filesFiles changed (5)
13 unmodified lines141516171718192011 unmodified lines3233343535363738394039404142424344444546474849505152535455565758596061626364454647484950515253545556575859606162636465666768697071727374756976777879807475818283848512 unmodified lines9899100949510110210310410513 unmodified lines
# Write the Network, Not the Code: Vision-Language Models that Write Visual Manipulation Policies
**Model weights of NetScribe. Released so far: 1,201 state-based expert networks (first batch, see below). The vision-based experts in the writable format and the writer are in preparation.****Model weights of NetScribe. Released so far: 3,791 state-based expert networks (two batches, see below). The vision-based experts in the writable format and the writer are in preparation.**
[Project Page](https://primorlee.github.io/NetScribe/) 路 [Code](https://github.com/primorLee/NetScribe) 路 [Data](https://huggingface.co/datasets/wenqqqq/NetScribe) 路 arXiv (coming soon)
11 unmodified linesthe new task, with no further training. On Meta-World, ManiSkill3 and RoboDojo, written networks reach 93.2% successon seen tasks and 29.2% zero-shot on unseen tasks.
## State experts (first batch)## State experts
These are state-based expert policies produced by the expert network factory (scripted controller, DAgger,PPO). Only experts whose recorded closed-loop evaluation reaches a success rate of at least 0.9 are included;experts below that threshold are not released. This first batch comes from one packed library; more qualifiedexperts will be added.experts below that threshold are not released. They have come out in two batches so far: batch 1 (1,201experts from one packed library) and batch 2 (2,590 ManiSkill3 experts, most of them on the custom dynamictasks `KMN-Dyn-*`). More qualified experts will be added.
| Simulator | Experts | Tasks (env ids) | File || Simulator | Experts | Tasks (env ids) | Files in `experts/state/` ||---|---|---|---|| ManiSkill3 | 1,140 | 8 | `experts/state/ManiSkill3.safetensors` (334 MB) || Meta-World | 41 | 41 | `experts/state/Meta-World.safetensors` || dm_control | 14 | 14 | `experts/state/dm_control.safetensors` || robosuite | 5 | 2 | `experts/state/robosuite.safetensors` || Gymnasium-Robotics | 1 | 1 | `experts/state/Gymnasium-Robotics.safetensors` |
Isaac Lab experts use a different network format and will come with a later batch.
ManiSkill3 tasks have many variants each (object size, goal tolerance, goal range, robot), set through the`args.set` overrides in the manifest.
**Files.** Each `.safetensors` file holds the actors of one simulator; tensor keys are `<tag>/<parameter>`.`experts/state/manifest.jsonl` has one line per expert: `tag`, `simulator`, `env_id`, `args` (what the trainerneeds to rebuild the task: env id, robot, control mode, `--set` overrides, or benchmark/task/controller),`obs_dim`, `act_dim`, `act_low`, `act_high`, `network` (hidden sizes, whether an observation normaliser is used),`success_once`, `success_at_end`, `eval_episodes`, `eval_criterion`, `train_steps`, `file`.
**Network.** An MLP with tanh hidden layers (`actor_mean.0`, `.2`, `.4`, `.6`); its output is the action mean,used as the deterministic action. Weights are fp16. Experts with `network.obs_normalizer: true` in the manifestnormalise the observation with the stored `mean` / `var` (fp32): `(obs - mean) / sqrt(var + 1e-8)`, clipped to 卤10;the others take the raw observation.| ManiSkill3 | 3,730 | 71 | `ManiSkill3.safetensors` (batch 1, 334 MB), `ManiSkill3_batch2_part01.safetensors` to `_part03.safetensors` (batch 2, 4.9 GB) || Meta-World | 41 | 41 | `Meta-World.safetensors` || dm_control | 14 | 14 | `dm_control.safetensors` || robosuite | 5 | 2 | `robosuite.safetensors` || Gymnasium-Robotics | 1 | 1 | `Gymnasium-Robotics.safetensors` |
Isaac Lab and RoboDojo experts, and the residual experts that act on top of a separate base policy, use othernetwork formats and will come with a later batch.
ManiSkill3 tasks have many variants each (object size, density, damping, friction, speed, goal tolerance, goal range, robot), setthrough the `args.set` overrides in the manifest. Some ManiSkill3 experts were initialised from the expert ofanother variant and already met the threshold on their own variant, so a few tags hold the same weights; eachtag still has its own closed-loop evaluation. `train_steps` is null when no further training was needed or thecount was not recorded.
**Files.** Each `.safetensors` file holds the actors of one simulator (ManiSkill3 batch 2 is split into threeparts); tensor keys are `<tag>/<parameter>`. `experts/state/manifest.jsonl` has one line per expert, for bothbatches: `tag`, `simulator`, `env_id`, `args` (what the trainer needs to rebuild the task: env id, robot,control mode, `--set` overrides, or benchmark/task/controller), `obs_dim`, `act_dim`, `act_low`, `act_high`,`network` (hidden sizes, whether an observation normaliser is used), `success_once`, `success_at_end`,`eval_episodes`, `eval_criterion`, `train_steps`, `file` (the file in `experts/state/` that holds the expert).
**Network.** An MLP with tanh hidden layers (`actor_mean.0`, `.2`, `.4`, ...; three hidden layers of 256 unitsor four of 1,024, see `network.hidden`); its output is the action mean, used as the deterministic action.Weights are fp16. Experts with `network.obs_normalizer: true` in the manifest normalise the observation with thestored `mean` / `var` (fp32): `(obs - mean) / sqrt(var + 1e-8)`, clipped to 卤10; the others take the rawobservation. The snippet below reads only the tensors of one expert, so it does not load a whole 2 GB file.
```pythonimport json, torchfrom huggingface_hub import hf_hub_downloadfrom safetensors.torch import load_filefrom safetensors import safe_open
repo = "wenqqqq/NetScribe"manifest = [json.loads(l) for l in open(hf_hub_download(repo, "experts/state/manifest.jsonl"))]e = next(m for m in manifest if m["simulator"] == "Meta-World")w = load_file(hf_hub_download(repo, f"experts/state/{e['file']}"))p = {k.split("/", 1)[1]: v.float() for k, v in w.items() if k.startswith(e["tag"] + "/")}with safe_open(hf_hub_download(repo, f"experts/state/{e['file']}"), framework="pt") as f: p = {k.split("/", 1)[1]: f.get_tensor(k).float() for k in f.keys() if k.startswith(e["tag"] + "/")}
def act(obs): x = torch.as_tensor(obs, dtype=torch.float32)12 unmodified lines
## Release plan
- [x] State experts, first batch (this repository, `experts/state/`)- [ ] More qualified state experts- [x] State experts, batch 1 (1,201) and batch 2 (2,590) (this repository, `experts/state/`)- [ ] More qualified state experts (Isaac Lab, RoboDojo, residual)- [ ] Vision-based experts in the writable format- [ ] Writer checkpoint (vision-language model with LoRA), shared base network and weight-token decoder
123version https://git-lfs.github.com/spec/v1oid sha256:99898695de9627b6e1dd503d4520546c0d7cd2f2d1127a3e01db9c015b863717size 1997983456123version https://git-lfs.github.com/spec/v1oid sha256:bb5e6df9129f678cbcc8287ee0a40bb53f46393b8670930f6a14cd000f752168size 1994434744123version https://git-lfs.github.com/spec/v1oid sha256:3ba81ba711265500bf7c8cacba42abc26051331138ec441c4f4554e25e20672dsize 887408476README.md+38-31
experts/state/ManiSkill3_batch2_part01.safetensorsAdded+3
experts/state/ManiSkill3_batch2_part02.safetensorsAdded+3
experts/state/ManiSkill3_batch2_part03.safetensorsAdded+3
experts/state/manifest.jsonl