ruvnet/ruflo · error
[MoE] Incompatible model version: ${model.version}
Error message
[MoE] Incompatible model version: ${model.version} What it means
Log warning in loadWeights: the persisted MoE weights file's version is missing or not 1.x, so the file is incompatible with this code; load returns false and the router keeps its initialized default weights.
Source
Thrown at v3/@claude-flow/neural/src/moe-router.ts:630
this.avgReward = 0;
}
/**
* Load weights from persistence file
*/
async loadWeights(path?: string): Promise<boolean> {
const weightsPath = path || this.config.weightsPath;
try {
if (!existsSync(weightsPath)) {
return false;
}
const data = readFileSync(weightsPath, 'utf-8');
const model: PersistedModel = JSON.parse(data);
// Validate version
if (!model.version || !model.version.startsWith('1.')) {
console.warn(`[MoE] Incompatible model version: ${model.version}`);
return false;
}
// Load weights
this.W1 = new Float32Array(model.weights.W1.flat());
this.b1 = new Float32Array(model.weights.b1);
this.W2 = new Float32Array(model.weights.W2.flat());
this.b2 = new Float32Array(model.weights.b2);
// Load stats
this.updateCount = model.stats.updateCount || 0;
this.avgReward = model.stats.avgReward || 0;
this.routingCounts = new Float32Array(
model.stats.routingCounts || new Array(NUM_EXPERTS).fill(0)
);
this.totalRoutings = this.routingCounts.reduce((a, b) => a + b, 0);
return true;View on GitHub (pinned to fa13ee4ad6)
Solutions
- Delete or migrate the persisted MoE model to the current version; a fresh model is created when versions mismatch.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at v3/@claude-flow/neural/src/moe-router.ts:630 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/96c91b4dd34fcca9.
Report an issue: GitHub.