Run this model with HF Jobs

Run insync-robotics/ebalfred-gemma4-e4b-sft on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/insync-robotics/ebalfred-gemma4-e4b-sft. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
How to use from
Docker Model Runner
docker model run hf.co/insync-robotics/ebalfred-gemma4-e4b-sft
Quick Links

InSync EB-ALFRED SFT Planner (Gemma-4-E4B-it)

This repository contains the supervised (SFT) EB-ALFRED planner fine-tuned from Gemma-4-E4B-it: the full merged weights (bf16), config, tokenizer and chat template in the Hugging Face Transformers format, compatible with Transformers and vLLM.

Paper: alphaXiv Β· Code: InSync-robotics/InSync Β· Project page: InSync-robotics.github.io

This is the supervised starting point of the InSync EB-ALFRED planners: Gemma-4-E4B-it fine-tuned on expert traces. InSync RL starts from this model, which is also its KL reference, and produces ebalfred-gemma4-e4b-insync.

InSync trains a System 2 planner with reinforcement learning so that it stays consistent with what its System 1 policy actually executed. A rule-based world-state verifier checks every command against the world state before and after execution, and verified inconsistencies are penalised in the reward (R = S βˆ’ Ξ»V). The verifier is used only in training; System 1 stays frozen.

Model Overview

  • Type: vision-language model, used as a System 2 planner
  • Fine-tuned from: google/gemma-4-E4B-it
  • Training stage: google/gemma-4-E4B-it β†’ SFT (this model) β†’ InSync RL (ebalfred-gemma4-e4b-insync); SFT on ebalfred-insync-data (19,819 traces from ALFRED-train expert replays)
  • Method: LoRA (r = 32, Ξ± = 64, dropout 0.05) on the language model (vision and audio towers excluded), merged into the base weights; 2 epochs, lr 1e-4 cosine with 3% warm-up, bf16, effective batch 64 (8 GPUs Γ— 2 Γ— 4); thinking off
  • Input and output: as the InSync planner (EmbodiedBench's prompt and frame in, JSON plan out)

Benchmark Results

All columns are Gemma-4-E4B-it planners. SR: task success (%). Inc.: verified inconsistencies per 100 executed actions. 300 episodes per benchmark; greedy decoding.

InSync GiGPO GRPO SFT
EB-ALFRED SR (%) ↑ 80.7 69.7 74.3 55.7
EB-ALFRED Inc. ↓ 2.83 12.19 14.24 16.86
EB-Habitat SR (%) ↑ (zero-shot) 53.7 39.7 39.3 38.3

Quickstart

The evaluation scripts of the code serve the model with vLLM and run EmbodiedBench. After Setup:

hf download insync-robotics/ebalfred-gemma4-e4b-sft --local-dir planner
MODEL_DIR=planner OUT=eval/planner EB_ROOT=$EB_ROOT PYBIN=<embench>/bin/python \
  VLLM=<serve>/bin/vllm VLLM_GPUS=0,1 X_DISPLAYS=1.0 bash scripts/eval_alfred.sh

$OUT/summary.json holds SR and Inc. with bootstrap 95% CIs. EB-Habitat and all options: Evaluation.

Best Practices

  1. Thinking off. The model was trained and evaluated with "chat_template_kwargs": {"enable_thinking": false}.
  2. Greedy, schema-constrained decoding. Decode greedily and constrain the output to EmbodiedBench's JSON plan schema (patches/apply.sh --eb writes it to configs/plan_schema.json), as the evaluation does.
  3. Temperature 0. This repository's generation_config.json keeps Gemma's sampling defaults; set temperature=0.
  4. Images. Use one <|image|> placeholder per image when you build vLLM requests yourself: vLLM's Gemma 4 processor expands the image tokens itself.

Training command: step 1 of embodiedbench/TRAINING.md.

Citation

If you find our work helpful, feel free to cite us.

@misc{yu2026insync,
  title        = {InSync: Aligning System 1 and System 2 in Agentic Robotics via Reinforcement Learning},
  author       = {Yu, Junwei and Wu, Tsung-Han and Wang, Zirui and Zhao, Fangzhou and
                  Li, Guanyou and Gonzalez, Joseph E. and Yala, Adam and Chan, David M. and
                  Wang, XuDong and Darrell, Trevor},
  year         = {2026},
  howpublished = {alphaXiv},
  url          = {https://www.alphaxiv.org/abs/2612.insync}
}

Acknowledgements

InSync builds on verl, vLLM, EmbodiedBench, RoboLab, VoLoAgent, openpi (Ο€0.5), Cosmos3 and LIBERO-PRO. We thank their authors.

We thank Dengyuhan Dai for helping with figure design. We thank Zhiyang Jiang for the support throughout this project. We thank Yutian Chen, Junyi Zhang, Letian Fu, Berke GΓΆkmen, Fiona Ryan, Heekyung (Anne) Lee, and Kumar Krishna Agrawal for their helpful discussions and feedback.

License

Apache-2.0. The weights derive from google/gemma-4-E4B-it and remain subject to its terms.

Downloads last month
23
Safetensors
Model size
8B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for insync-robotics/ebalfred-gemma4-e4b-sft

Finetuned
(522)
this model
Finetunes
1 model

Dataset used to train insync-robotics/ebalfred-gemma4-e4b-sft