A hands-on experiment with MLX, three quantized Qwen models, and 24 scheduling problems — with runnable code, token traces, and measured results.

By Youssef Hosni

Published: 2026-09-20

URL: https://todatabeyond.substack.com/p/i-fused-3-tiny-local-llms-on-my-laptop


After reading that combining small local models could deliver frontier-level reasoning, I built a token-level fusion loop on a MacBook Pro with 16 GB of memory. The implementation averaged the next-token scores of three Qwen2.5 models while maintaining a shared generated answer. I tested the ensemble against each model and GPT-5.6 Sol using identical scheduling prompts and a deterministic constraint checker.

Fusion solved one of 24 cases, matching the 3B model’s schedule accuracy while taking roughly twice as long at the median. GPT-5.6 Sol solved all 24 under a larger generation budget with medium reasoning.

This walkthrough explains the implementation, examines the failures, and shows how to evaluate whether additional models contribute enough correct answers to justify their computational cost.

Get 50% off for 1 year

50% Discount on all my books, courses & bundles for To Data & Beyond paid subscribers

Table of Contents:

-

Putting Local Model Fusion to the Test

-

Making Three Models Share One Decoding Loop

-

Running the Fusion Loop on a Real Task

-

Testing the Same 24 Schedules Against GPT-5.6

-

What I Would Change Before Running Three Models Again


My new live cohort: Claude Agent Engineering. Six 3-hour live sessions, six office hours, and one agent system you build layer by layer. Only 20 seats, starting 1 November.

Founding rate: $320 instead of $400 until Sunday, 27 September. Use code CLAUDECOURSE20.

35% discount for paid subscribers

Claude Agent Engineering Live Course


1. Putting Local Model Fusion to the Test

I read an article in which the author claimed that combining three small language models on a laptop could deliver reasoning comparable to a frontier model. The proposed approach combined their predictions during generation while keeping their trained weights separate. I wanted to test whether this extra computation would improve the answers enough to justify running three models instead of one.

The mechanism was logit-level fusion. At each generation step, a model produces logits: unnormalized scores for the possible next tokens. In the version I built, three models worked from the same prompt and partially generated answer. I averaged their next-token scores, selected the highest-scoring valid token, and fed that selection back to all three models for the following step.Figure 1. The models contribute to one shared answer throughout generation. The diagram shows the flow of scores and tokens; it does not imply that the three forward passes execute simultaneously.

This made two comparisons necessary. First, I tested the fused system against each model running individually, including the strongest local baseline. Second, it needed a cloud comparison using the same tasks and scoring rules. The article I had read did not provide a reproducible benchmark establishing its frontier-level claim, so I treated that claim as the motivation for an independent experiment.

I ran the local experiments on a 14-inch MacBook Pro with an Apple M4 chip and 16 GB of unified memory. I chose the 0.5B, 1.5B, and 3B Qwen2.5-Instruct models in 4-bit form, where reduced-precision weight storage helps limit memory use. I used MLX for inference and kept all three models loaded during the local comparisons.Figure 2. The local runs used an Apple M4 MacBook Pro with 16 GB of unified memory. These specifications provide the hardware context for the latency and memory measurements later in the article.

These were three sizes of the same model family, with equal weights in the fusion calculation. I checked that their token mappings and chat templates matched before combining their scores. That established a compatible starting point, while leaving the central question open: whether their different predictions would produce better final answers.

For the test itself, I used laboratory scheduling. Each prompt asked for a JSON object assigning experiments to numbered slots under ordering, exclusion, and adjacency constraints. I generated 24 cases containing four, five, or six experiments and checked by enumeration that each case had exactly one valid schedule. This let me evaluate the answers against explicit rules without relying on another model’s judgment.

I recorded two measures of success. Schedule accuracy checked whether the assignment satisfied every constraint, allowing an enclosing Markdown code fence to be removed before validation. Strict task success also required the response itself to be the requested JSON object, without fences or commentary. A correct assignment wrapped in a code block could therefore pass the scheduling check and still fail the full task.

For the cloud baseline, I ran the same 24 prompts through GPT-5.6 Sol with medium reasoning. The local configurations and the API used different computation budgets, and API timings included network overhead; those differences matter when interpreting speed. The comparison could establish performance on this scheduling test, while broader claims about intelligence would require much more extensive evaluation.

In this experiment, “matching GPT-5.6” means solving the same scheduling cases under the stated output requirements.


2. Making Three Models Share One Decoding Loop

Get All My 9 Books With 60% Off

Before writing the generation loop, I needed to check that adding the models’ scores would be meaningful. Each position in a next-token score vector corresponds to a token ID, and that ID has to identify the same token across all three models. Two vectors can have identical lengths while referring to different vocabularies, which would make a position-by-position average combine scores for unrelated continuations.

For this implementation, I required matching token-to-ID mappings, tokenizer configuration, special tokens, and chat templates. A chat template is the formatting rule that turns messages into the input sequence expected by an instruction-tuned model. Comparing the complete tokenizer signatures gave me a stricter check than comparing vocabulary sizes or trying a few example sentences. The tokenizer methods used below are documented in the Transformers tokenizer reference.

The preflight check needs only Transformers and the Hugging Face Hub client. For a fresh project, create a virtual environment and install those dependencies; the MLX inference setup follows with the generation code. If you already have the project environment from the earlier trials, activate it and use that environment instead.

# Terminal — fresh project setup
mkdir -p local-llm-fusion
cd local-llm-fusion
python3 -m venv .venv
source .venv/bin/activate
python -m pip install transformers huggingface_hub

I ran the following check before loading the model weights. It resolves each repository to a specific commit, then reads the tokenizer and model configuration from that same revision. Save it as compatibilitycheck.py and run python compatibilitycheck.py | tee compatibility-check.txt to keep the report.

# compatibility_check.py
import json
from huggingface_hub import HfApi, hf_hub_download
from transformers import AutoTokenizer

api = HfApi()
reference = None

for size in (”0.5B”, “1.5B”, “3B”):
repo = f”mlx-community/Qwen2.5-{size}-Instruct-4bit”
revision = api.model_info(repo).sha
tokenizer = AutoTokenizer.from_pretrained(repo, revision=revision)
config_path = hf_hub_download(repo, “config.json”, revision=revision)
with open(config_path) as handle:
config = json.load(handle)
signature = {
“vocabulary”: tokenizer.get_vocab(),
“backend”: json.loads(tokenizer.backend_tokenizer.to_str()),
“special_tokens”: tokenizer.special_tokens_map,
“chat_template”: tokenizer.chat_template,
}
print(f”\nMODEL: {repo}”)
print(f”Revision: {revision}”)
print(f”Tokenizer entries: {len(tokenizer)}”)
print(f”Model vocabulary dimension: {config[’vocab_size’]}”)
print(f”EOS token ID: {tokenizer.eos_token_id}”)
print(f”Generation EOS configuration: {config.get(’eos_token_id’)}”)
if reference is None:
reference = signature
print(”Reference tokenizer”)
else:
for field, value in signature.items():
print(f”Identical {field}: {value == reference[field]}”)

Captured output from my Mac, with download progress and warnings omitted:

MODEL: mlx-community/Qwen2.5-0.5B-Instruct-4bit
Revision: a5339a4131f135d0fdc6a5c8b5bbed2753bbe0f3
Tokenizer entries: 151665
Model vocabulary dimension: 151936
EOS token ID: 151645
Generation EOS configuration: 151645
Reference tokenizer

MODEL: mlx-community/Qwen2.5-1.5B-Instruct-4bit
Revision: 8b403126fc14f14cfc99bb4cfa72ecbc129ea677
Tokenizer entries: 151665
Model vocabulary dimension: 151936
EOS token ID: 151645
Generation EOS configuration: 151645
Identical vocabulary: True
Identical backend: True
Identical special_tokens: True
Identical chat_template: True
MODEL: mlx-community/Qwen2.5-3B-Instruct-4bit
Revision: 4f83f8f146fdf28b512a06562b671d7af4fab457
Tokenizer entries: 151665
Model vocabulary dimension: 151936
EOS token ID: 151645
Generation EOS configuration: 151645
Identical vocabulary: True
Identical backend: True
Identical special_tokens: True
Identical chat_template: True

The 0.5B model established the reference, and both larger models returned True for every comparison. The EOS, or end-of-sequence, token ID also matched at 151645; the line labelled “Generation EOS configuration” reads that value from config.json. This script prints its findings rather than enforcing them, so stop if a comparison is False; the inference script also rejects mismatched tokenizer signatures.

I pinned the three recorded commits when loading the weights for the experiment. The check above resolves the current repository revision when it runs, so its revision lines may change if the repositories are updated. Keeping the commit IDs with the results makes it possible to distinguish a changed model snapshot from a changed fusion implementation.

There was another detail in the output: the tokenizer exposed 151,665 entries, while each model configuration declared 151,936 vocabulary positions. I therefore restricted candidate selection to IDs present in the tokenizer’s vocabulary mapping. This is a token-ID validity filter; it does not enforce JSON syntax or solve any scheduling constraints.

Before averaging logits, verify that every score column refers to the same token, and keep all models conditioned on the same generated prefix.

With that alignment checked, the fusion calculation was small. For each eligible token, I added its three raw scores and divided by three, then selected the token with the highest combined score. This is greedy decoding: choosing the highest-scoring candidate at each step.

Every candidate’s scores participate in the calculation, including candidates that none of the individual models rank first, so recording only each model’s favourite token would discard information used by the ensemble.

I also kept the distinction between logits and probabilities explicit. Softmax converts a score vector into a probability distribution, but averaging three such distributions defines a different rule from averaging the raw logits. For greedy selection, applying softmax after fusion would preserve the winning token, so the implementation selects directly from the combined scores. This follows from the softmax definition.

Equal weights made the experiment easy to specify, but they did not calibrate the models’ score scales. If one model assigns much larger score differences between candidates, those differences can exert more influence on the average. I did not tune the weights or normalize those differences; the benchmark evaluates this particular equal-weight rule.

The remaining requirement was to preserve the shared continuation across generation steps. Each model first processes the prompt and builds its own KV cache, the stored attention keys and values for previously processed tokens. On subsequent steps, the loop sends the selected token to each model and reuses that model’s cache, avoiding repeated computation of the earlier keys and values. The cache mechanism is described in the Hugging Face caching documentation.

The three models therefore share a token history while keeping separate internal states. After fusion selects a token, all three must continue from that selection, even if an individual model preferred something else. Letting each model follow its own preferred continuation would make the next score vectors describe different prefixes, breaking the interpretation of the shared decoding loop. I stopped generation when the selected token was EOS or the configured output limit was reached.

I kept all three models resident in memory and explicitly evaluated their forward passes sequentially. The loop still performs three model evaluations for each generated token, and each model maintains its own cache. Keeping their weights loaded avoids repeatedly loading them from storage; the cost of those forward passes remains part of the latency measurement.


3. Running the Fusion Loop on a Real Task

Get all my 10 AI Courses with 60% off

With the tokenizer checks passing, I started with a scheduling problem small enough to verify by inspection. Three laboratory experiments needed three slots: A had to precede C, B could not use slot 1, and C had to use slot 3. Each experiment occupied one slot, leaving a single valid assignment: A in slot 1, B in slot 2, and C in slot 3.

This development trial let me check several parts of the implementation together: prompt formatting, token generation, stopping, and output validation. I ran each model separately before running the ensemble. That comparison would show whether combining the models preserved behavior that an individual model already handled correctly.

My project environment used Python 3.13.7, MLX 0.32.2, MLX-LM 0.31.3, and Transformers 5.17.0. To install those recorded package versions, activate the environment from Section 2 and run:

# Terminal, inside ~/local-llm-fusion
source .venv/bin/activate
python -m pip install “mlx==0.32.2” “mlx-lm==0.31.3” “transformers==5.17.0”

The original installation resolved to these versions without explicit pins. The commands above make those versions explicit for reproduction; the captured results below come from my M4 MacBook Pro. Transformers printed a warning about missing PyTorch, but its tokenizer operations and the MLX inference runs both completed.

Keep the project files together:

-

compatibility_check.py: the tokenizer checks from Section 2.

-

local_trials.sh: both exploratory single-model commands, preserved in full.

-

fusion_trial.py: the complete four-configuration trial, including model loading, decoding, validation, and reporting.

Download localtrials.sh and fusiontrial.py. The Python excerpts below explain the implementation; the downloaded Python file contains the complete runnable program.

My first single-model prompt requested a JSON mapping but left the field names implicit. The 0.5B model returned an experiments list with startSlot and endSlot fields. For experiment C, it assigned a start of 3 and an end of 1. That response failed the requested structure before it could be treated as a valid schedule.

I tightened the prompt to specify the exact keys and integer values, then ran the second command from local_trials.sh:

# local_trials.sh — second development command
mlx_lm.generate \
--model mlx-community/Qwen2.5-0.5B-Instruct-4bit \
--max-tokens 160 \
--temp 0 \
--prompt ‘Assign laboratory experiments A, B, and C to slots 1, 2, and 3. Each experiment takes exactly one slot. Each slot contains exactly one experiment. A must occur before C. B cannot occupy slot 1. C must occupy slot 3. Return exactly one JSON object with keys “A”, “B”, and “C”, and integer values representing their assigned slots. Do not include Markdown, explanations, lists, start times, or end times.’ \
2>&1 | tee format-check.txt

Captured answer from that run, including the Markdown fences emitted by the model:

{

“A”: 1,

“B”: 2,

“C”: 3

}

The assignment was now correct, but the response still violated the instruction to omit Markdown. I kept that distinction in the validator: schedulecorrect checks the assignment after optionally removing one surrounding code fence, while stricttask_pass requires the original response to be valid JSON and satisfy the schedule. The validator also rejects duplicate keys, unexpected fields, and values that are not integers.

The custom loop used this strengthened prompt unchanged across all four configurations. Its first attempt failed before generation because mx.array([prompt_ids]) received a Transformers BatchEncoding object instead of integer token IDs. I fixed that boundary by rendering the chat template as text and then encoding it explicitly:

# fusion_trial.py — prompt preparation excerpt
prompt_text = tokenizer.apply_chat_template(
[{’role’: ‘user’, ‘content’: PROMPT}],
tokenize=False,
add_generation_prompt=True,
)
prompt_ids = tokenizer.encode(prompt_text, add_special_tokens=False)
if not prompt_ids or not all(isinstance(token, int) for token in prompt_ids):
raise TypeError(’Expected a nonempty list of integer prompt token IDs’)

Here, the template supplies the conversation formatting, and encode produces the flat list required by the MLX array construction. Setting addspecialtokens=False prevents the second step from adding special tokens on top of those already supplied by the template, following the Transformers chat-template guidance.

The complete script loads the pinned model revisions from Section 2 and rejects tokenizer mismatches. Each configuration receives fresh attention caches. The decoding excerpt below omits timing and trace collection so that the state updates remain visible; those measurements are included in the downloadable file.

# fusion_trial.py — decoding excerpt; instrumentation omitted
caches = [make_prompt_cache(models[i]) for i in indices]
current = mx.array([prompt_ids])
generated = []

for step in range(160):
rows = []
for index, cache in zip(indices, caches):
row = models[index](current, cache=cache)[0, -1, :].astype(mx.float32)
row = row[valid_ids]
mx.eval(row)
rows.append(row)
fused = mx.mean(mx.stack(rows), axis=0)
chosen = int(valid_ids[mx.argmax(fused)].item())
if chosen in stop_ids:
break
generated.append(chosen)
current = mx.array([[chosen]])

For an individual model, indices contains one model index; for fusion, it contains all three. The first pass processes the prompt. Subsequent passes supply the same selected token to every participating model, with each model retaining its own cache. Generation ends when the selected token is the configured end-of-sequence token or the loop reaches 160 steps.

The placement of mx.eval(row) also matters. MLX uses lazy evaluation, so this call forces each model’s score vector to be evaluated before the loop moves to the next model. This implementation therefore performs the model passes sequentially, as described by the MLX evaluation documentation. Its timing includes that work and the Python instrumentation.

Run the complete script from the project directory:

# Terminal, inside ~/local-llm-fusion
python -u fusion_trial.py 2>&1 | tee fusion-trial-console.txt

The following are captured excerpts from the successful run. Download progress and the other metrics are omitted here; the saved JSON retains the outputs, measurements, and first eight decoding steps for every configuration.

3B
{”A”: 1, “B”: 2, “C”: 3}

fusion_equal

{

“A”: 1,

“B”: 2,

“C”: 3

}

Across the four configurations, the saved results were:

-

0.5B: correct schedule, strict failure, 0.456 seconds.

-

1.5B: correct schedule, strict failure, 0.547 seconds.

-

3B: correct schedule, strict pass, 0.638 seconds.

-

Equal-weight fusion: correct schedule, strict failure, 1.388 seconds.

These are single development runs without warm-up, with times rounded to three decimals. Model loading was excluded, and the responses had different lengths: the 3B model generated 18 tokens excluding EOS, while each other configuration generated 27. All three models remained loaded throughout, so the recorded MLX peaks of approximately 3.05–3.19 GB describe the combined process, not the standalone memory requirements of each model.

On this trial, fusion preserved the correct schedule but lost the raw-JSON compliance that the 3B model achieved alone.

The saved trace shows where the responses began to diverge. At the first decoding step, the two smaller models each ranked the opening Markdown fence highest, while the 3B model ranked the token containing {" highest. Averaging the complete score vectors selected the fence. At the next step, all three models—now conditioned on that shared fence—ranked json highest.Figure 3. The 3B model alone began a JSON object. Fusion selected a Markdown fence, which became part of every participating model’s context before the next token was chosen.

This trace records each model’s highest-scoring token and the ensemble’s selection; it does not retain the full logit values. It therefore identifies the changed output path without establishing how strongly each model influenced the decision. The fusion operation still averaged score vectors, even when its selected token happened to match the preference of two models.

Removing the outer fence would make the fused response usable for an application that accepts that cleanup step. I retained the strict failure because the prompt explicitly requested raw JSON, and the 3B baseline met that requirement. The next experiment needed more varied schedules to determine whether this formatting difference was accompanied by any improvement in solving the constraints.


4. Testing the Same 24 Schedules Against GPT-5.6

Get All My 9 Books With 60% Off

The three-experiment trial established that the fusion loop could generate an answer, but it gave little evidence about whether combining the models improved constraint solving. I expanded the test to 24 scheduling problems and ran every configuration on the same prompts. Equal-weight fusion solved one case; GPT-5.6 Sol, configured with medium reasoning, solved all 24.

To understand that gap, the evaluation needed to preserve more than a final score. I saved each prompt, its constraints, the reference assignment, the unmodified response, and the validation results. That made it possible to distinguish an incorrect schedule from a correct schedule wrapped in unwanted Markdown, and to inspect individual failures after the run.

The suite contained eight problems, each with four, five, and six experiments. Its generator began with a valid assignment, then added constraints about ordering, forbidden slots, and nonadjacent experiments until only one assignment remained possible. It checked uniqueness by enumerating every possible ordering, giving each case a reference answer that could be verified without asking another language model to judge it.

The generator used a fixed random seed, and the benchmark saved the complete suite in its results file. The cloud script later read those saved cases directly. A SHA-256 digest — a fingerprint of the serialized cases — checked that the saved suite matched its recorded identity before any API requests were made. The earlier three-experiment development prompt was outside this suite.

Add fusionbenchmark.py and openaibenchmark.py beside fusion_trial.py. These are the complete scripts used for the recorded runs. The local benchmark imports the pinned model revisions from the trial script, and the cloud benchmark imports the same scoring function used for the local responses.

Before running inference, check the generator and validator:

# Terminal, inside ~/local-llm-fusion
source .venv/bin/activate
python fusion_benchmark.py --self-test

Captured output from executing the self-test:

PASS: 24 unique-solution cases; exhaustive validator checks; fence and schema checks.

This check enumerates every assignment for each case and confirms that the scorer accepts exactly the reference solution. It also checks the separate handling of fenced responses and malformed output. The self-test does not load models or make API requests; its purpose is to verify the machinery that will grade their answers.

For the local runs, I retained greedy decoding and equal-weight raw-logit averaging. Each answer received fresh caches and a maximum of 192 generation steps. I ran a short, eight-token warm-up for each configuration, excluded those warm-ups from the measurements, and shuffled the order of the case/configuration pairs with a fixed seed.

# Terminal, inside ~/local-llm-fusion
python -u fusion_benchmark.py 2>&1 | tee scheduling-benchmark-console.txt

Captured summary from my Mac:

FINAL SUMMARY (repeated trials are not independent test cases)
0.5B         schedule=0/24 strict=0/24 median_seconds=0.562
1.5B         schedule=1/24 strict=0/24 median_seconds=0.751
3B           schedule=1/24 strict=1/24 median_seconds=1.185
fusion_equal schedule=1/24 strict=0/24 median_seconds=2.521

Figure 4. Equal-weight fusion solved one of the 24 schedules and took 2.521 seconds at the median. The 3B baseline solved the same number, with one strict pass and a lower median generation time.

The console counted 96 local generations because four configurations each answered 24 cases. There was one answer per configuration per case in this run. Those 96 generations do not represent 96 distinct test problems, and rerunning the same suite would measure repeatability rather than expand its coverage.

The raw responses also showed that Markdown was only one part of the failure. After optional fence removal, every response from the 1.5B model, the 3B model, and fusion had the required keys and integer values. Nevertheless, each configuration satisfied all scheduling constraints in only one case. Removing the fences could recover the strict pass for fusion’s one correct answer, but it could not repair the other 23 assignments.

One concrete failure came from case n4–01. Among its constraints, C could not occupy slot 3, and D had to occur before A. Fusion returned the following answer, copied from its saved response:

{

“A”: 1,

“B”: 2,

“C”: 3,

“D”: 4

}

The object had the expected fields and used each slot once, but it violated both constraints. For the same prompt, GPT-5.6 Sol returned {“A”:2,”B”:3,”C”:4,”D”:1}, which satisfied the complete rule set. Inspecting the actual assignments kept the evaluation focused on whether the requested schedule worked.

For the cloud comparison, I used the exact model ID gpt-5.6-sol, which was available to my API account. The saved run recorded OpenAI Python SDK version 3.14.1. To reproduce that environment and run the comparison against a local results file:

# Terminal, inside ~/local-llm-fusion
python -m pip install “openai==3.14.1”
python -u openai_benchmark.py scheduling-benchmark-20260918-003227.json

Replace the timestamped filename with the file produced by your local benchmark. The script reads OPENAIAPIKEY if it is set; otherwise, it prompts for the key without displaying it. A fresh run sends 24 paid requests, saves each response as it completes, and resumes from the existing report if invoked again with the same input and settings.

Captured summary from the completed API run:

FINAL SUMMARY: GPT-5.6 Sol, medium reasoning
Schedule: 24/24
Strict task: 24/24
Completed responses: 24/24
Median request seconds: 5.753
input_tokens: 3880
output_tokens: 5888

The API settings are explicit in the complete script:

# openai_benchmark.py — request configuration excerpt
settings = {
‘model’: ‘gpt-5.6-sol’,
‘reasoning’: {’effort’: ‘medium’},
‘max_output_tokens’: 4096,
‘store’: False,
}
response = client.responses.create(input=case[’prompt’], **settings)

Both sides received identical user prompts and were graded by the same function. Neither received a solver tool, an enforced JSON schema, or a second attempt to repair a wrong answer. The API client disabled automatic retries, and every recorded cloud response had a completed status.

The generation budgets, however, differed substantially. Local configurations had a 192-step limit and emitted their answers directly. GPT-5.6 Sol used medium reasoning with a 4,096-token output budget. That API limit includes reasoning tokens as well as the returned answer, as described in OpenAI’s reasoning documentation. The saved usage records counted 5,240 reasoning tokens within the run’s 5,888 total output tokens.

These settings make the experiment a comparison of the configured systems, rather than a test with equal computation. The token limit also deserves a specific check: fusion, 1.5B, and 3B all reached EOS in every case, so their recorded failures were not truncated by the 192-step cap. The 0.5B model reached EOS on 21 of 24 cases. Increasing a limit alone would not have extended responses that had already stopped.

Across these 24 cases, fusion solved exactly the same single schedule as the 3B model, took about 2.13 times as long at the median, and failed the strict JSON requirement on that answer.

The matching success count concealed another useful detail. Fusion and the 3B model both solved n4–03; the 1.5B model instead solved n4–05, which fusion missed. Combining their scores did not collect the successful answers from the individual models. Each fused token changed the shared continuation, so the ensemble followed its own generation path.

Latency needs the same care as accuracy. The local medians exclude model loading and prompt tokenization, while the cloud median measures the complete API request, including network and service time. The 2.13 ratio compares the two local generation medians; it is not a fixed per-token overhead. Although fusion finished sooner than the cloud baseline, its answers failed the scheduling constraints on 23 cases.

This suite covers one generated task family, one prompt template, and one response per case. It does not measure general intelligence or establish how other ensembles would behave. Any change to model selection, fusion weights, or prompting made after inspecting these failures would need a separate set of unseen cases before I could claim an improvement.


5. What I Would Change Before Running Three Models Again

Get all my 10 AI Courses with 60% off

I would not replace the cloud baseline with this ensemble for the scheduling task. The local implementation ran successfully, but the extra model passes did not produce an accuracy improvement over the 3B baseline. Before changing fusion weights or optimizing the loop, I would examine whether these models offered enough complementary successes to justify combining them.

The saved responses allowed one more check without generating anything new. For each case, I asked whether at least one individual model had produced a correct schedule, allowing the same fence removal used in the benchmark. This measures how many cases could be recovered by choosing among the three existing answers, assuming the selection process always recognized a correct one.

Save the following as inspect_complementarity.py. It uses only Python’s standard library and the saved local benchmark report; it does not load models or make API requests.

# inspect_complementarity.py
import json
import sys
from pathlib import Path

report = json.loads(Path(sys.argv[1]).read_text())
modes = (’0.5B’, ‘1.5B’, ‘3B’, ‘fusion_equal’)
case_ids = {case[’id’] for case in report[’cases’]}

if report[’repeats’] != 1 or len(report[’runs’]) != 4 * len(case_ids):
raise ValueError(’Expected exactly one response per mode and case’)
successes = {}

for mode in modes:
rows = [row for row in report[’runs’] if row[’mode’] == mode]
if len(rows) != len(case_ids) or {row[’case_id’] for row in rows} != case_ids:
raise ValueError(f’Incomplete or duplicated cases for {mode}’)
successes[mode] = {row[’case_id’] for row in rows if row[’schedule_correct’]}
print(f”{mode}: {’, ‘.join(sorted(successes[mode])) or ‘none’}”)

available = set().union(*(successes[mode] for mode in modes[:3]))
novel = successes[’fusion_equal’] - available

print(f’At least one individual answer correct: {len(available)}/{len(case_ids)}’)
print(f’Fusion correct where all individuals failed: {len(novel)}/{len(case_ids)}’)

Run it against the report from Section 4:

# Terminal, inside ~/local-llm-fusion
python inspect_complementarity.py scheduling-benchmark-20260918-003227.json

Captured output from analyzing the saved report:

0.5B: none
1.5B: n4-05
3B: n4-03
fusion_equal: n4-03
At least one individual answer correct: 2/24
Fusion correct where all individuals failed: 0/24

Even perfect selection among those stored individual responses could recover only two correct schedules. On the remaining 22 cases, none of the three answers satisfied the constraints. That is a limit on selecting from these particular responses, not an upper bound on logit fusion: a different generation path could produce an answer that none of the independent runs produced. Our equal-weight run simply did not achieve that here.

Complementary successes need to be measured: in this run, the three individual models collectively supplied correct answers to only two of the 24 cases.

This changes what I would investigate next. I chose three sizes of Qwen2.5 partly because their tokenizer representations matched; the experiment did not establish three distinct areas of expertise. Before calling a future ensemble specialized, I would want task-level evidence showing what each member contributes and which failures the combination resolves.

For scheduling, I would also test a design that keeps complete candidate answers separate until validation. Each model would generate its own assignment, and the existing constraint checker would evaluate each candidate. The selection step could return a passing assignment or explicitly report that no candidate passed. This would make rejected answers visible and preserve the opportunity to select a correct answer from an individual model.Figure 5. In the proposed alternative, models finish their answers independently before a constraint checker selects a valid candidate or reports failure. This is a follow-up design, not another measured benchmark result.

The two-case result gives that proposal an honest starting point. Applied only to the existing responses, it could recover the extra correct schedule from the 1.5B model, with fence removal permitted, but it would still leave most cases unsolved. I have not implemented or timed this selection pipeline, so its runtime and any benefit from newly generated candidates remain unmeasured.

Further experiments would need to isolate the change being tested. For fusion weights, I would choose settings on a development split, freeze them, and evaluate on fresh cases against every individual model. For additional generation attempts, I would give the single-model baseline a comparable opportunity to try again and include all attempts in the latency and cost accounting. Changing the prompt, models, weights, and retry policy together would make an improvement difficult to attribute.

The local setup remains useful for testing these choices because the code exposes the score combination, token selection, caches, and raw outputs. Its measurements do not yet describe an optimized deployment: all three models remained loaded, and I did not measure energy consumption or the memory footprint of each model in isolation. Those measurements would matter before treating local inference as a cheaper replacement for the API.

For my next iteration, I would require the ensemble to solve additional unseen cases beyond the strongest individual baseline and record the extra time needed to obtain those successes. A configuration that cannot meet that requirement would stay an experiment. The decision to run three models would follow from the additional valid answers they produce.


My new live cohort: Claude Agent Engineering. Six 3-hour live sessions, six office hours, and one agent system you build layer by layer.

Only 20 seats, starting 1 November. Founding rate: $320 instead of $400 until Sunday, 27 September. Use code CLAUDECOURSE20.

Claude Agent Engineering Live Course