{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "sparticle62ops-pssa--train-pssa-and-compare-to-transformer",
 "repo": "Sparticle62ops/pssa",
 "repo_url": "https://github.com/Sparticle62ops/pssa",
 "repo_slug": "sparticle62ops-pssa",
 "title": "Train a PSSA checkpoint and benchmark it against a transformer",
 "page_title": "How to train a PSSA checkpoint and benchmark it against a transformer with Pssa",
 "summary": "Fit a small PSSA model on your own text, then score it against a matched transformer on held-out tokens.",
 "who": "An ML researcher or student who wants to test whether a non-transformer recurrent model learns faster than a transformer on the same corpus.",
 "problem": "Comparing a new architecture to a baseline usually means building two training pipelines, which makes the comparison slow and easy to get wrong.",
 "outcome": "A trained .pssa checkpoint, a matched transformer baseline, and held-out scores for both models side by side.",
 "steps": [
  "Clone https://github.com/Sparticle62ops/pssa and build the Pssa binary with cargo. (inferred, check the README)",
  "Run `pssa train corpus.txt --no-tui` to fit a PSSA checkpoint on your text file. (inferred, check the README)",
  "Run `pssa train-transformer corpus.txt` to fit the CPU decoder-only baseline. (inferred, check the README)",
  "Run `pssa compare` to replay the PSSA chain with a token and update matched transformer and score both on held-out tokens. (inferred, check the README)",
  "Read the JSON scores from `pssa score` and check the two models on the same held-out text."
 ],
 "agent_prompt": "Use the Sparticle62ops/pssa repository. Train a PSSA checkpoint on <corpus-path> with `pssa train <corpus-path> --no-tui`, then run `pssa compare`. Report the held-out scores for both the PSSA and transformer models as JSON. Verify that both models were scored on the same held-out tokens before reporting a winner.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says the architecture learns faster at matched parameters on its own corpus, so your results on a different corpus may differ and should be measured, not assumed.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "rust",
 "requirements": [
  "A Rust toolchain (inferred from the Rust implementation and the cargo commands in the README)",
  "The pssa binary built from the Sparticle62ops/pssa repository",
  "A plain UTF-8 text file to train on",
  "A terminal that supports the TUI, or use --no-tui for plain logs"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sparticle62ops-pssa/train-pssa-and-compare-to-transformer/",
 "md": "https://dedupedai.com/use-cases/sparticle62ops-pssa/train-pssa-and-compare-to-transformer/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sparticle62ops-pssa--train-pssa-and-compare-to-transformer.json",
 "api_version": "v1"
}
