Home / Blog / Claude NOT sabotaging ML research tasks?
Tech News

Claude NOT sabotaging ML research tasks?

A researcher trained the 48.2M-parameter Femto model in 98 hours without writing code, directing Claude Code across single-node GPU clusters via plain JAX.

By Dillip Chowdary • Nov 28, 2026 • Source: mj10.github.io

Claude NOT sabotaging ML research tasks?
Image: mj10.github.io

At a glance

Product
Femto language model
Parameter count
48,234,516 parameters
Compute budget
150 GPU-hours across 4 A100 or H100 GPUs
Development timeline
98 hours from empty repository to trained model
Availability
Checkpoints on GitHub and Hugging Face
Pretraining volume
10 billion web tokens

An autonomous machine learning workflow completed the end-to-end training of Femto, a 48.2-million-parameter language model developed entirely without human-written code, according to mj10.github.io's report. Operating inside an empty repository, Claude Code running Opus 5.5 engineered the complete training infrastructure in JAX over ninety-eight hours. The model ingested ten billion tokens of raw web text before undergoing targeted agentic fine-tuning on academic GPU hardware.

This report details the architectural configuration, autonomous agent delegation hierarchy, and infrastructure engineering behind the small experimental model. Machine learning researchers, systems engineers, and autonomous agent practitioners can evaluate how multi-agent swarms execute distributed training runs without direct human code contribution. The experiment outlines key trade-offs between manual development and autonomous execution within constrained academic compute budgets.

01Zero-code JAX training in ninety-eight hours

The project began in an empty repository where Claude Code assumed full engineering responsibility for building a lightweight machine learning stack. The agent ported Andrej Karpathy's nanochat into pure JAX without external frameworks such as Flax or Optax. Throughout ninety-eight hours of continuous development, the human researcher contributed zero lines of code while directing high-level scope and constraints.

The resulting codebase spanned roughly nine thousand lines of code after the agent executed an extensive refactoring pass. Beyond core model definitions, the system integrated an optimized inference engine, local search indexing, rapid sandboxing, and accelerated reinforcement learning modules. The automated system proceeded through four sequential training phases to produce the final model artifact.

  1. Pretraining Ten billion web tokens processed across single-node hardware.
  2. Length extension Context windows expanded to support longer document ingestion.
  3. Mid-training Agentic behavioral patterns injected into intermediate weights.
  4. Post-training Lightweight tuning applied for shell scripts and Python.

Initial motivation stemmed from evaluating whether modern recipes, recent data mixtures, and new algorithms could push small architectures to viable utility. Rather than analyzing isolated stages of modern transformer development, the experiment explored whether an autonomous agent could manage the entire end-to-end training lifecycle independently. The resulting artifact validated that autonomous systems can handle complex computational deep learning workflows under strict deadlines.

02Terminal evaluation and sandbox tool calls

The deployed model checkpoint, designated Femto v1 under seed zero, functions inside a command-line interface with tool execution capabilities. Every user session instantiates a fresh sandbox environment to execute shell commands, run generated Python scripts, and process local requests safely. Live evaluation demonstrated basic tool invocation alongside simulated weather responses and document lookups against an indexed local Wikipedia dump.

Practical model quality remains modest, with performance falling below contemporary sub-one-billion parameter alternatives across standard reasoning benchmarks. The author described the resulting model as barely good, emphasizing that the primary objective centered on testing agent autonomy rather than setting state-of-the-art benchmarks. Checkpoints and interactive evaluation scripts were published on Hugging Face and GitHub to facilitate reproducible inspection by external researchers.

Note: Checkpoints for Femto, complete evaluation datasets, and the local command-line interface remain openly available across GitHub and Hugging Face repositories. Researchers can run the compiled model weights on standard consumer laptops to inspect tool-calling traces and raw generation limits firsthand.

03Single-node clusters and synthetic data limits

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

Compute resource constraints bounded the experimental design to single-node allocations housing four Nvidia A100 or H100 graphics processing units. Total cluster usage remained capped at approximately one hundred fifty GPU-hours distributed across academic compute environments. The team utilized cluv, an orchestration utility developed by Mila IDT, to manage multi-node execution and submit distributed runs to Slurm schedulers.

The training methodology deliberately rejected knowledge distillation from larger foundation models to preserve an authentic ground-up pipeline. While distillation offers an expedient training shortcut for compact parameter counts, avoiding it ensured that all model representations emerged solely from raw web pretraining. This strict protocol isolated the true capability ceiling achievable by small architectures trained from scratch.

Filtering synthetic artifacts presented major hurdles because contemporary web corpora contain pervasive generative text from prior frontier models. Current academic scrapers struggle to purge machine-generated content reliably without discarding high-signal linguistic data. Additionally, the primary researcher faced strict platform throttling, working under a five-times usage tier on Claude without supplementary API budgets.

04Worktree subagents and repository shared memory

Workflow execution relied on a hierarchical structure where a single lead Claude session coordinated multiple specialized subagents. Each subagent operated within an isolated git worktree or branch, independently executing code modifications and dispatching Slurm batch jobs through cluv. This separation allowed concurrent exploration of inference optimizations, data loaders, and model definitions without merge conflicts across the shared repository.

Shared memory persisted across sessions through structured research notes, execution plans, and architectural logs committed directly to the central git directory. These documented plans allowed seamless continuity when context limits triggered two separate session compactions during the four-day engagement. Autonomous agents retrieved prior experimental findings directly from committed repository state to decide subsequent training iterations without human re-prompting.

Human involvement comprised exactly eighty-eight high-level supervisory touchpoints over the ninety-eight-hour development timeline. Claude tracked twenty directional directives, twenty-three architectural decisions between agent-generated options, twenty-eight cluster status checks, and nineteen logistical actions. Outside these supervisory boundaries, the agent autonomously wrote, evaluated, and debugged all infrastructure code without micro-management.

05Ten-layer hybrid attention parameter budget

The base network employs an untied vocabulary of sixteen thousand three hundred eighty-four tokens with a five-hundred-twelve hidden dimension across ten layers. Its macro-architecture implements an SSSL pattern that alternates three sliding-window attention layers with one global causal layer. Attention projections utilize parameter-free RMSNorm and dedicated Muon optimization steps across four heads with one-hundred-twenty-eight dimensions each.

Attention designLayer countContext windowPositional embedding
Sliding window (S)7512 tokensRoPE 10k
Global causal (L)3Full contextNoPE

Embeddings and output heads utilize standard AdamW updates, while hidden layers rely on Muon with doubled learning rates on projection matrices. The final model allocates 48,234,516 total parameters across untied embeddings, attention blocks, and squared-ReLU multilayer perceptrons. Output logits incorporate softcapping scaled by fifteen times the hyperbolic tangent to stabilize numerical gradients during evaluation and inference.

Token embeddings and the language model head each account for 8.39 million parameters, representing 17.4 percent of the network apiece. The ten attention blocks consume 10.49 million parameters, while the ten squared-ReLU multilayer perceptron blocks require 20.97 million parameters, representing 43.5 percent of the model.

Frequently asked questions

Did a human write any code for the Femto model?

The researcher did not write a single line of code during the project. Claude Code running Opus 5.5 wrote all experiment scripts, analyzed results, suggested next steps, and generated plots.

How long did training Femto take and what hardware was used?

The entire process took 98 hours from an initial prompt in an empty repository. Training ran on single-node clusters with 4 Nvidia A100 or H100 GPUs under a budget of roughly 150 GPU-hours.

How was the Femto language model architecture designed?

Femto is a 10-layer, 512-wide decoder with 48,234,516 parameters that alternates seven sliding-window attention layers with three global causal layers. It was ported to plain JAX without Flax or Optax, implementing Muon and AdamW optimizers directly.

Where can developers download Femto checkpoints and code?

Model checkpoints, training code, and a chat command-line interface for running Femto on laptops are publicly available on GitHub and Hugging Face.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →