Mindket

ActionCodec2

Newversion 1 · updated

Overview

Turns robot arm motion into compact tokens and back, in 34 ready-made tokenizer variants. For robotics researchers who train models that read and write robot actions.

ActionCodec2 is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python on your computer
  • The packages numpy, scipy, torch, transformers 5.2 or newer below 6, huggingface-hub and pyyaml
  • A choice of variant name, since the card lists many
Runs in
  • Python code that uses the transformers library with remote code allowed
  • Windows, macOS or Linux, with Python for the download
  • Training pipelines for robot policies, where the tokens feed a model
Start with
pip install numpy scipy torch "transformers>=5.2,<6" huggingface-hub pyyaml

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

ActionCodec2 is a tokenizer for robot actions. It converts a stretch of arm motion into a short list of tokens that a language-style model can learn, and it converts tokens back into motion. The card lists 34 variants that share one runtime and differ in precision and vocabulary size.

Who it suits

It suits robotics researchers who train vision-language-action models and need a way to turn continuous motion into tokens.

IndustryWho uses itHow they use itExample
RoboticsRobot learning researchersTokenize arm trajectories for model trainingEncoding a recorded pick-and-place motion
AI researchVLA model buildersPick a variant with the precision and vocabulary budget they needComparing a 1 mm and a 10 mm variant
SimulationTeams with recorded episodesFit their own tokenizer on their dataTraining a tokenizer on their robot's episodes
EducationStudentsStudy how motion becomes tokens and backChecking how lossy the round trip is

You can skip it if you are not working with robot actions, since this model does not process text, images or audio.

Where to use it

  • Python code that uses the transformers library with remote code allowed
  • Windows, macOS or Linux, with Python for the download
  • Training pipelines for robot policies, where the tokens feed a model
Use caseWhoWhat they get back
Encode robot actionsResearchersA token sequence for a motion chunk
Decode tokens to motionPolicy buildersReconstructed actions, which are lossy
Fit a custom tokenizerTeams with their own dataA saved tokenizer built from their episodes

How to set it up

  • Python on your computer
  • The packages numpy, scipy, torch, transformers 5.2 or newer below 6, huggingface-hub and pyyaml
  • A choice of variant name, since the card lists many
  1. Install the Python packages with pip.
  2. Load the processor with a variant name and an action space.
  3. Encode your actions, or decode tokens back.
pip install numpy scipy torch "transformers>=5.2,<6" huggingface-hub pyyaml
pip install -U huggingface_hub
hf download ZibinDong/ActionCodec2

How to use it

You load a codec by variant name, pass in actions shaped as time steps by dimensions, and get tokens back. The card's example uses one end-effector arm with seven values per step.

import numpy as np
from transformers import AutoProcessor
codec = AutoProcessor.from_pretrained(
    "ZibinDong/ActionCodec2", variant="paper-o1-5mm-4k-2bin-1p2ms",
    action_space="single_eef_delta", trust_remote_code=True,
)
actions = np.zeros((1, 16, 7), dtype=np.float32)
tokens = codec.encode(actions, fps=15)
restored = codec.decode(tokens, fps=15)

To train a tokenizer on your own episodes, the card gives these two lines.

codec.fit(episodes, fps=15)
codec.save_pretrained("./my-tokenizer")

Example

A researcher loads the paper variant and passes a chunk of 16 steps of arm motion. The codec returns tokens for the chunk. Decoding them gives back an approximation of the motion, since the card says reconstruction is lossy.

For newcomers and experts

If you are new to this, run the sample with zeros, then replace them with a recorded trajectory. Start with the paper variant the card uses before exploring the others.

If you know the field, the card describes first- and second-order tokenizers, three editions and per-profile vocabulary budgets from 1K up to 16K. Inputs are resampled to 15 Hz, rotations use rotation vectors and grippers are absolute open fractions. Dual arms are interleaved by time and tokens never merge across arms.

  1. Choose a variant and action space
  2. Pass in actions at a frame rate
  3. The codec resamples to 15 Hz
  4. It encodes the motion into tokens
  5. Decode tokens back when needed

Good to know

EditionWhat it is
PaperThe pair of tokenizers the authors published with their paper, in two orders
ExtendedRetrained after more data cleaning, with more precision and vocabulary choices
SparseStandard and high-dynamic first-order tokenizers with binary or 21-level grippers
  • Limits: reconstruction is lossy, and absolute layouts also need the current state.
  • Trust: loading uses remote code, so review it before you run it.
  • Cleaning: it is off by default and only applies when fitting a tokenizer.
  • License: Apache 2.0.
  • Cost to run: none named.
  • Data it reaches: it copies the files to your computer and processes only the action data you pass in.

README and files

README

ActionCodec2

Turns robot arm motion into compact tokens and back, in 34 ready-made tokenizer variants. For robotics researchers who train models that read and write robot actions.

Made by ZibinDong on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: ActionCodec2 is a tokenizer for robot actions. It converts a stretch of arm motion into a short list of tokens that a language-style model can learn, and it converts tokens back into motion. The card lists 34 variants that share one runtime and differ in precision and vocabulary size.

Who it suits: It suits robotics researchers who train vision-language-action models and need a way to turn continuous motion into tokens.

Industry | Who uses it | How they use it | Example
Robotics | Robot learning researchers | Tokenize arm trajectories for model training | Encoding a recorded pick-and-place motion
AI research | VLA model builders | Pick a variant with the precision and vocabulary budget they need | Comparing a 1 mm and a 10 mm variant
Simulation | Teams with recorded episodes | Fit their own tokenizer on their data | Training a tokenizer on their robot's episodes
Education | Students | Study how motion becomes tokens and back | Checking how lossy the round trip is

You can skip it if you are not working with robot actions, since this model does not process text, images or audio.

Where to use it:

  • Python code that uses the transformers library with remote code allowed
  • Windows, macOS or Linux, with Python for the download
  • Training pipelines for robot policies, where the tokens feed a model
Use case | Who | What they get back
Encode robot actions | Researchers | A token sequence for a motion chunk
Decode tokens to motion | Policy builders | Reconstructed actions, which are lossy
Fit a custom tokenizer | Teams with their own data | A saved tokenizer built from their episodes

How to set it up:

  • Python on your computer
  • The packages numpy, scipy, torch, transformers 5.2 or newer below 6, huggingface-hub and pyyaml
  • A choice of variant name, since the card lists many
  1. Install the Python packages with pip.
  2. Load the processor with a variant name and an action space.
  3. Encode your actions, or decode tokens back.
pip install numpy scipy torch "transformers>=5.2,<6" huggingface-hub pyyaml
pip install -U huggingface_hub
hf download ZibinDong/ActionCodec2

How to use it: You load a codec by variant name, pass in actions shaped as time steps by dimensions, and get tokens back. The card's example uses one end-effector arm with seven values per step.

import numpy as np
from transformers import AutoProcessor
codec = AutoProcessor.from_pretrained(
    "ZibinDong/ActionCodec2", variant="paper-o1-5mm-4k-2bin-1p2ms",
    action_space="single_eef_delta", trust_remote_code=True,
)
actions = np.zeros((1, 16, 7), dtype=np.float32)
tokens = codec.encode(actions, fps=15)
restored = codec.decode(tokens, fps=15)

To train a tokenizer on your own episodes, the card gives these two lines.

codec.fit(episodes, fps=15)
codec.save_pretrained("./my-tokenizer")

Example: A researcher loads the paper variant and passes a chunk of 16 steps of arm motion. The codec returns tokens for the chunk. Decoding them gives back an approximation of the motion, since the card says reconstruction is lossy.

For newcomers and experts: If you are new to this, run the sample with zeros, then replace them with a recorded trajectory. Start with the paper variant the card uses before exploring the others.

If you know the field, the card describes first- and second-order tokenizers, three editions and per-profile vocabulary budgets from 1K up to 16K. Inputs are resampled to 15 Hz, rotations use rotation vectors and grippers are absolute open fractions. Dual arms are interleaved by time and tokens never merge across arms.

Choose a variant and action space
Pass in actions at a frame rate
The codec resamples to 15 Hz
It encodes the motion into tokens
Decode tokens back when needed

Good to know:

Edition | What it is
Paper | The pair of tokenizers the authors published with their paper, in two orders
Extended | Retrained after more data cleaning, with more precision and vocabulary choices
Sparse | Standard and high-dynamic first-order tokenizers with binary or 21-level grippers
  • Limits: reconstruction is lossy, and absolute layouts also need the current state.
  • Trust: loading uses remote code, so review it before you run it.
  • Cleaning: it is off by default and only applies when fitting a tokenizer.
  • License: Apache 2.0.
  • Cost to run: none named.
  • Data it reaches: it copies the files to your computer and processes only the action data you pass in.

On Hugging Face, 13 November 2026

  • Task: robotics
  • Library: transformers
  • Downloads in the last 30 days: 217
  • Likes: 3
  • License: apache-2.0
  • Tags: transformers, actioncodec2, robotics, action-tokenization

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download ZibinDong/ActionCodec2

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
ActionCodec2 This page2173—apache-2.0
Microduck PoliciesShares robotics67,16354—apache-2.0
π₀.₅ (Pi05) (LeRobot)Shares robotics21,9961193.6Bgemma
Alpamayo 2 EdgeShares robotics921412.7Bopenmdw-1.1
Jocasta-diff-VLAShares robotics3633—apache-2.0
all-MiniLM-L6-v2Shares transformers174,740,1846,10422.7Mapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k