Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 8 min read Research hardMaster

Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agent

JAT (Jack of All Trades) is an open reproduction of DeepMind's Gato: a single GPT-Neo-based Transformer trained by behavioral cloning on a new dataset of expert trajectories from Atari, BabyAI, Meta-World and MuJoCo, plus text and image-caption data. It interleaves observation/reward and action embeddings, using modality-specific encoders (CNN for images, linear layers for continuous and discrete values, ViT for images, GPT-2 tokenization for text), with MSE or cross-entropy losses per modality. Across 157 tasks it averages 65.8% of expert performance, ranging from 14.1% on Atari 57 to 99.0% on BabyAI, with only rudimentary NLP and CV ability. Adding observation prediction as an auxiliary loss helps when weighted around κ=0.005 and hurts at 0.5, and the expert agents, dataset and model are all released on the Hugging Face Hub.

Related posts

  • Train your first Decision Transformer

    Hugging Face hardMaster

    Decision Transformers recast reinforcement learning as conditional sequence modeling: a GPT-2 model takes the last K timesteps of return-to-go, state and action tokens and autoregressively predicts actions that achieve a desired return. This walkthrough trains an offline Decision Transformer from scratch on the HalfCheetah expert dataset from the Hugging Face hub. A custom data collator normalizes states, computes returns-to-go, scales rewards by 1000, pads sequences and samples trajectories by length. A subclassed model adds an MSE action loss so the standard transformers Trainer can be used, and training takes about 40 minutes in Colab versus roughly 3 hours in the original paper.

  • Introducing Decision Transformers on Hugging Face 🤗

    Hugging Face mediumAdept

    Decision Transformer, an offline reinforcement learning method that recasts RL as return-conditioned sequence modeling, is now part of the 🤗 transformers library, with nine pretrained checkpoints for Gym continuous-control tasks (Hopper, Walker2D, HalfCheetah). Instead of fitting a value function, a GPT-2 model takes the last K timesteps of return-to-go, state and action tokens and autoregressively predicts actions that reach a desired return. Code covers loading the model, padding and masking a 20-step context window, normalizing states with the mean and standard deviation from each model card, and running an evaluation loop. Setting the target return directly controls how well the resulting policy performs.

  • License to Call: Introducing Transformers Agents 2.0

    Hugging Face mediumAdept

    Transformers Agents 2.0 adds two iterative ReAct-style agents, ReactCodeAgent and ReactJsonAgent, which loop through thought, action and observation, alongside the existing single-shot CodeAgent. The framework is built from a few transparent pieces: Tool classes whose attributes generate the prompt's usage manual, reusable pre-instantiated Toolboxes, and a pluggable LLM engine. Worked examples include a self-correcting RAG agent that chooses its own source filters over a FAISS index, and a multi-agent setup that wraps a web-surfer agent as a tool. A Llama-3-70B-Instruct agent built this way outperforms GPT-4-based agents on the GAIA leaderboard; the functionality has since moved to the smolagents library.

  • Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems

    Hugging Face hardMaster

    Four agents sharing one Qwen3-0.6B policy learn to pool private numbers and submit a sorted list, trained with GRPO-style group-normalized team rewards that penalize token use. Over 75 updates, training success rose from 6.6% to 82.3% (81.25% on held-out problems) while generated tokens per team fell 37.4%, with broadcasts replacing direct messages. The trained team beat an untrained best-of-8 baseline (37.5%) at about 1/13 the tokens. The post frames multi-agent systems as a Dec-POMDP with credit-assignment and non-stationarity problems, argues swarms must be compared at matched compute budgets, and gives a reproducible TRL plus vLLM script for Hugging Face Jobs on two H200s (about $50).

  • CoderForge-Preview: SOTA open dataset for training efficient coding agents

    Together AI hardMaster

    CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench. The trajectories were generated with Qwen3-Coder-480B in OpenHands Docker environments, filtered by rejection sampling and permissive-license audits, and cost about $130K to produce at a ~90% prompt cache hit rate. Fine-tuning Qwen3-32B on the passing trajectories, using Ulysses sequence parallelism, multipacking and token-level loss normalization at 128K context, reaches 59.4% pass@1 on SWE-Bench Verified, and a 4B model reaches 43.0%. Ablations show a repetition penalty helps only early checkpoints, so later checkpoints should be run without one.

The quest for software engineering knowledge.

Look:
Layout: