---
title: "Jack of All Trades, Master of Some, a Multi-Purpose Transformer Agent"
description: "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."
url: "https://swe.quest/articles/jack-of-all-trades-master-of-some-a-multi-purpose-transformer-agent-eac8be04880a3ed1"
canonical: "https://huggingface.co/blog/jat"
source: "Hugging Face"
published: "2024-04-22"
difficulty: "hard"
kind: "Research"
reading_minutes: 8
tags: ["machine-learning","model-training","ai-agents"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-04-22, 8 min read, Research. Original: [https://huggingface.co/blog/jat](https://huggingface.co/blog/jat)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- reinforcement learning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- Transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- behavioral cloning

## Keywords

JAT, Gato, GPT-Neo, Hugging Face Hub, Atari 57, Meta-World, MuJoCo, BabyAI

## Related posts

- [Train your first Decision Transformer](https://swe.quest/articles/train-your-first-decision-transformer-d9877713a380ce1a.md): Hugging Face · 2022-09-08 · Hard · 8 min read · Model training, Machine learning, Python
  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.
- [Introducing Decision Transformers on Hugging Face 🤗](https://swe.quest/articles/introducing-decision-transformers-on-hugging-face-53b9486d51c912ca.md): Hugging Face · 2022-03-28 · Medium · 8 min read · Machine learning, Python, Open source
  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).
- [License to Call: Introducing Transformers Agents 2.0](https://swe.quest/articles/license-to-call-introducing-transformers-agents-2-0-dad436258e67a17b.md): Hugging Face · 2024-05-13 · Medium · 15 min read · AI agents, LLMs, RAG & retrieval, Python
  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.
- [Swarms, Flocks, Gangs: How to build, train, and evaluate multi-agent systems](https://swe.quest/articles/swarms-flocks-gangs-how-to-build-train-and-evaluate-multi-agent-systems-94ba4fbca4851b84.md): Hugging Face · 2026-11-26 · Hard · 13 min read · AI agents, Model training, LLMs, Evaluation
  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.
- [CoderForge-Preview: SOTA open dataset for training efficient coding agents](https://swe.quest/articles/coderforge-preview-sota-open-dataset-for-training-efficient-coding-agents-83e1f3c7a7bdb67a.md): Together AI · 2026-02-25 · Hard · 14 min read · Model training, AI for coding, AI agents, Evaluation, LLMs
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
