{
  "api_version": "1.0.0",
  "slug": "ps2-decomp-assist-sly-cooper-gemma-local-model",
  "url": "https://reversedwithai.com/p/ps2-decomp-assist-sly-cooper-gemma-local-model",
  "markdown_url": "https://reversedwithai.com/p/ps2-decomp-assist-sly-cooper-gemma-local-model.md",
  "json_url": "https://reversedwithai.com/p/ps2-decomp-assist-sly-cooper-gemma-local-model.json",
  "title": "A local fine-tuned model that proposes matching C++ for PS2 functions, trained on the Sly Cooper games",
  "tagline": "A small Gemma model proposes C++ for short PS2 functions and a compiler check keeps only byte-identical matches.",
  "summary": "The model proposes C++ for PS2 functions of at most 400 bytes and each proposal is rebuilt with the decompilation project's own compiler. The README reports exact matches for part of 150 held-out functions.",
  "target": {
    "name": "Sly Cooper and the Thievius Raccoonus and Sly 2 (PS2)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "PS2 (MIPS R5900), Apple silicon",
  "models": [
    "Gemma 4 E2B (fine-tuned)",
    "Claude Sonnet 5.5"
  ],
  "tools": [
    "MLX",
    "LoRA",
    "Matching decompilation"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Blightwidow",
    "url": "https://github.com/Blightwidow"
  },
  "sources": {
    "repository": "https://github.com/Blightwidow/ps2-decomp-assist",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/Blightwidow/ps2-decomp-assist"
    ]
  },
  "image": null,
  "commit_history": null,
  "added_at": "2026-11-20T10:44:22.801256+00:00",
  "updated_at": "2026-11-20T10:44:22.801256+00:00",
  "sources_reviewed_at": "2026-11-20T10:44:22.801256+00:00",
  "reviewed_by": "automated",
  "human_notes": null,
  "reproduce": null,
  "body_md": "ps2-decomp-assist is a fine-tuned Gemma 4 E2B model (LoRA adapters, MLX, Apple silicon) that proposes C++ for small PS2 functions written in MIPS R5900 assembly, at most 400 bytes each. Each proposal is checked with the decompilation project's own compiler and comparer, and only a candidate that rebuilds byte-identical and passes the project's rule checks is reported as a match. It was trained and measured on Sly Cooper and the Thievius Raccoonus and on Sly 2 (NTSC-U).\n\n### How it was done\n\nThe README says training pairs came from assembly generated from discs the authors own and from the authors' own decompiled source. It says no disc data, assembly, dataset, compiler or SDK file is in the repository, and a guard test checks for this. A Claude Code skill lets an agent call the command line tool, and Claude Sonnet 5.5 co-author trailers appear on the commits.\n\n### Results\n\nOn 150 held-out functions the README gives exact-match rates for the adapters against a few-shot baseline, and says functions up to 100 bytes reach 48.6 percent at 8 samples while almost nothing matches above 200 bytes. It also reports that zero-shot Claude Haiku matched more functions than the local model in a 20-function comparison.",
  "ai_use_excerpts": null
}
