Research

Model release · Open sourceNo. 012Apache 2.0 licence

Matilda Platypus: Any Size You Want

Yue Yang, Arsh Chawla, David Lemphers

Maincode, Melbourne

Eight base models from 1.5B to 13B parameters, each built by joining the lower layers of a larger Qwen3 model to the upper layers of a smaller one.

Abstract

Matilda Platypus is a family of intermediate-size base language models. Each one connects the lower layers of a larger pretrained Qwen3 model to the upper layers of a smaller one, and a learned linear Representation Bridge aligns the hidden representations at the connection. We release eight sizes, from 1.5B to 13B parameters, sizes the Qwen3 family does not offer. The bridge is initialised by least squares, then trained with light low-rank updates to the upper layers and a short stage of reinforcement learning with verifiable rewards. The 7B model scores above its smaller parent on 11 of 13 benchmarks and above its larger parent on 3, at 84% of the larger parent’s compute.

The idea

Open-weight model families come in fixed sizes. Qwen3 offers 1.7B, 4B, 8B and 14B base models, among others, and nothing in between. A team whose budget sits between two sizes has to choose a model that is too small or one that exceeds its target.

Matilda Platypus fills those gaps by reusing pretrained layers instead of training a new model. We keep the lower layers of a larger Qwen3 base model, keep the upper layers and output head of a smaller one, and learn one linear map, the Representation Bridge, that carries hidden states from the first to the second. The question we tested is whether a model built this way can beat its smaller parent on downstream tasks while using less compute than its larger parent.

How a Platypus model is built

Each model has three parts. The 7B model, cut 25+11, is built like this:

ComponentSourceLayersNotes
Lower blockQwen3-8B-Base (36 layers)1–25Frozen at the released weights
Representation BridgeLearned–One linear map, 4096 → 2560 hidden units, 10.5M parameters
Upper blockQwen3-4B-Base (36 layers)26–36, final norm, output headLightly adapted with low-rank updates (merged)
From the 7B model card. The forward pass runs the embedding and layers 1–25 of Qwen3-8B-Base, the bridge, then layers 26–36 of Qwen3-4B-Base and its final normalisation and output head. The tokenizer is the Qwen3 tokenizer.

The notation k+m means k layers of the larger parent followed by the last m layers of the smaller parent. It counts retained layers; it is not a mix of two models’ outputs. The bridge is the only new module. In the configurations we tested, putting the larger parent in the lower layers was the better orientation: the reverse orientation scored 10 to 15 percentage points lower on MMLU at comparable compute.

The eight sizes

ModelCutLower block + upper blockParametersGFLOP per tokenCompute vs larger parent
Platypus 1.5B18+10Qwen3-1.7B-Base + Qwen3-0.6B-Base1.53B2.773%
Platypus 1.6B20+8Qwen3-1.7B-Base + Qwen3-0.6B-Base1.60B2.877%
Platypus 5B9+27Qwen3-8B-Base + Qwen3-4B-Base5.48B10.366%
Platypus 6B17+19Qwen3-8B-Base + Qwen3-4B-Base6.22B11.875%
Platypus 7B25+11Qwen3-8B-Base + Qwen3-4B-Base6.96B13.384%
Platypus 11B18+21Qwen3-14B-Base + Qwen3-8B-Base11.42B22.076%
Platypus 12B25+15Qwen3-14B-Base + Qwen3-8B-Base12.57B24.485%
Platypus 13B29+13Qwen3-14B-Base + Qwen3-8B-Base13.51B26.391%
From each model card. The larger parents run at 3.7 (Qwen3-1.7B-Base), 15.7 (Qwen3-8B-Base) and 28.8 (Qwen3-14B-Base) GFLOP per token. Compute is the report’s relative measure, normalised to the larger parent; it is not a measured latency or cost. In every model but the 1.6B the lower block is frozen at the released weights; the 1.6B adapts it lightly alongside the upper block.

Results

The 7B model scored above Qwen3-4B-Base on 11 of 13 benchmarks and above Qwen3-8B-Base on 3 of 13, at 84% of Qwen3-8B-Base’s compute.

BenchmarkQwen3-4B-BasePlatypus 7BQwen3-8B-Base
HumanEval pass@10.6280.6890.677
GSM8K (8-shot CoT)0.8440.8750.862
MMLU (5-shot)0.7300.7630.768
BBH (3-shot CoT)0.7120.7460.774
HellaSwag0.7370.7580.786
ARC-Easy0.7610.7820.798
ARC-Challenge0.5170.5270.572
OpenBookQA0.4060.4180.416
WinoGrande0.7020.7100.723
PIQA0.7780.7840.794
LAMBADA0.6910.6930.711
MBPP pass@10.6720.6680.696
BoolQ0.8320.8200.832
From the 7B model card. Scores are proportions. Base-model evaluation with lm-eval-harness 0.4.13 and the same protocol for the model and both parents: 0-shot multiple choice, MMLU 5-shot, GSM8K 8-shot chain-of-thought, BBH 3-shot chain-of-thought, HumanEval 0-shot and MBPP 3-shot with the generated code executed (HumanEval scored with markdown fences stripped).

Across the family, the strongest cuts did best. Knowledge and reasoning scores generally rose as more of the larger parent was kept, and the weaker cuts can fall below the smaller parent: the 5B scored 0.712 on MMLU against Qwen3-4B-Base’s 0.730, and the 11B scored 0.749 against Qwen3-8B-Base’s 0.768. Code and mathematics showed some of the clearest gains. The 13B scored 0.750 on HumanEval and 0.882 on GSM8K, against 0.720 and 0.870 for Qwen3-14B-Base, at 91% of its compute.

ModelAbove smaller parentAbove larger parentCompute vs larger parent
Platypus 1.5B13 of 130 of 1373%
Platypus 1.6B13 of 132 of 1377%
Platypus 5B4 of 132 of 1366%
Platypus 6B7 of 132 of 1375%
Platypus 7B11 of 133 of 1384%
Platypus 11B5 of 132 of 1376%
Platypus 12B8 of 133 of 1385%
Platypus 13B11 of 133 of 1391%
From each model card: on how many of the 13 benchmarks each model scored above its smaller and its larger parent, under the protocol above. The cards carry the full tables. No confidence intervals or repeated runs are reported, so small differences are observed scores, not established gaps.

Training recipe

Each size is trained on its own, in three steps.

  1. Initialise the bridge by least squares. We run both released parents on a small calibration set and fit a linear map between their representations at each candidate cut. The initial language-modelling loss ranks the cuts before any further training.
  2. Adapt with supervised training. We train the bridge and light low-rank updates to the retained upper layers on a few billion tokens of mixed web text, code, mathematics and worked solutions, with the lower block frozen at its released weights. Training on web text alone kept knowledge scores but badly damaged code formatting; adding code and worked mathematics fixed it.
  3. Train with verifiable rewards. A short policy-optimisation stage on code problems with unit tests and mathematics problems with checkable answers. It appeared to improve first-attempt reliability and output formatting, particularly on code.

Using the models

The models load with transformers 4.56 or later, through remote code that assembles the two blocks and the bridge:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "Maincode/Matilda-Platypus-7B-Base"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).cuda()
inputs = tok("The capital of Australia is", return_tensors="pt").to("cuda")
out = model.generate(**inputs, max_new_tokens=32)
print(tok.decode(out[0], skip_special_tokens=True))

generate takes the standard transformers arguments, so the models run unchanged under lm-eval-harness. Greedy and sampled decoding work; beam search does not. The weights are released under the Apache 2.0 licence.

Limitations

  • These are base models. They continue text and are not instruction-tuned or safety-tuned.
  • Their knowledge and behaviour come from the two Qwen3 parents and the adaptation data.
  • The comparisons assess the whole construction and training recipe. Separating the architecture’s contribution would need the parents put through the same post-training.
  • Differences of a few tenths of a point are within run-to-run variance.
  • Compute is a relative measure normalised to the larger parent, not a measured latency, energy or cost figure.
Cite
@techreport{maincode012,
  title = {{Matilda Platypus: Any Size You Want}},
  author = {Yue Yang and Arsh Chawla and David Lemphers},
  institution = {Maincode},
  type = {Model release},
  number = {012},
  year = {2026},
  month = oct,
  url = {https://maincode.com/research/matilda-platypus}
}