[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M793C5SAFKCYG2A0DX9ZZ2GW":3,"skill-same:01M793C5SAFKCYG2A0DX9ZZ2GW":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M793C5SAFKCYG2A0DX9ZZ2GW","optimization",null,"Use PyPose's dense or sparse Gauss-Newton and Levenberg-Marquardt workflows for nonlinear least squares, including residual contracts, Jacobians, linear solvers, damping strategies, robust kernels, stopping, and BAE\u002FCUDA sparse LM diagnostics.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: optimization\ndescription: \"Use PyPose's dense or sparse Gauss-Newton and Levenberg-Marquardt\n  workflows for nonlinear least squares, including residual contracts,\n  Jacobians, linear solvers, damping strategies, robust kernels, stopping, and\n  BAE\u002FCUDA sparse LM diagnostics.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# PyPose optimization\n\nUse this skill when a task is a nonlinear least-squares problem whose learnable\nstate is held by a `torch.nn.Module` (including `pp.Parameter` LieTensor\nparameters), and the desired operation is a dense `GN`\u002F`LM` step or a structured\nsparse `LM` solve. It covers model residuals, targets, weights, Jacobians,\nlinear solvers, damping, robustification, and stopping. The bundled scripts use\nan installed PyPose package and do not read a PyPose checkout.\n\nDo **not** use this skill for primitive LieTensor group\u002Falgebra operations\n(route those to `lie-tensor`), EKF\u002FUKF\u002FPF\u002FLQR\u002FMPC or other module-specific\ncontrol\u002Ffilter workflows (route to `robotics-modules`), or projections,\nsplines, point-cloud geometry, and trajectory metrics (route to\n`geometry-evaluation`).\n\n## Choose a path\n\n- Choose **dense** for ordinary-size or dense-Jacobian problems, multiple\n  residual tensors, non-`None` weights, robust kernels\u002Fcorrectors, CPU, or when\n  a dense solver is adequate.\n- Choose **sparse LM** only when the Jacobian is genuinely structured and large,\n  every sparse constraint below is satisfied, and a CUDA installation of the\n  optional BAE backend is available. Sparse mode is a CUDA\u002FBAE capability, not\n  a CPU fallback.\n- Start with `GN` when a plain least-squares linearization is sufficient and\n  there is no need for LM damping\u002Frejection. Start with `LM` for ill-conditioned\n  or poorly initialized problems, robust damping, or sparse optimization.\n\nRead the relevant reference before implementation:\n\n- [API reference](references\u002Fapi-reference.md) for signatures and shape rules.\n- [Dense workflows](references\u002Fdense-workflows.md) for model construction and\n  GN\u002FLM\u002Fscheduler recipes.\n- [Solver, kernel, and strategy reference](references\u002Fsolver-kernel-strategy-reference.md)\n  for numerical choices.\n- [Sparse optimization](references\u002Fsparse-optimization.md) for `sjac`, `psjac`,\n  BAE, and the sparse restrictions.\n- [Troubleshooting](references\u002Ftroubleshooting.md) for diagnosis and recovery.\n\nRunnable checks (from any working directory, with PyPose installed):\n\nFrom the `pypose` skill directory, use the bundled helpers:\n\n```bash\npython sub-skills\u002Foptimization\u002Fscripts\u002Fdense_lm_smoke.py --help\npython sub-skills\u002Foptimization\u002Fscripts\u002Fdense_lm_smoke.py\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py --help\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py       # skips clearly if CUDA\u002FBAE is absent\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py --check-only\n```\n\nThe same files can be invoked by absolute path from any working directory.\n\nThe sparse helper's default missing-backend behavior is an informative,\nsuccessful skip. `--check-only` is the explicit readiness gate and returns a\nnonzero status when CUDA or BAE is unavailable.\n\n## Core residual contract\n\n1. Put all variables to optimize in `nn.Parameter` or `pp.Parameter` members of\n   an `nn.Module`. A `pp.Parameter` can carry `sjac=True` for sparse tracing;\n   that flag is only relevant to sparse LM.\n2. Make `forward(input)` accept the actual input structure: one tensor, a tuple\n   or list, or a dictionary. PyPose calls tuples\u002Flists positionally and\n   dictionaries by keyword. Use `input=()` for a no-input model.\n3. Return either one tensor\u002FLieTensor or a tuple\u002Flist of residual outputs. With\n   `target=None`, PyPose minimizes the model output; otherwise each output is\n   residualized as `output - target`. Targets must have the corresponding\n   structure and be broadcast-compatible.\n4. Preserve the final dimension as the residual block dimension. For scalar\n   sample residuals use shape `(..., 1)`, not a flattened global vector; this\n   preserves per-sample Jacobian and robust-kernel structure. A reprojection\n   residual commonly has shape `(..., 2)`.\n5. Use a positive-definite square weight with the same residual ownership only\n   in dense mode. A weight may be one matrix or a list matching the residual\n   tuple; it must be broadcastable according to the residual block dimensions.\n   A `weight` passed to `step` overrides the constructor weight.\n6. Run finite-value and shape checks before choosing a solver. The Jacobian\n   columns must correspond to trainable parameter update coordinates. For\n   LieTensor parameters, PyPose's optimizer uses manifold coordinates rather\n   than padded embedding coordinates.\n\nConceptually, the optimizer linearizes `R(theta)`, applies an optional weight\nand robust corrector, solves for an update `D`, and adds `D` to the parameters.\n`GN` uses a least-squares\u002Fpseudoinverse-style linear solve. `LM` forms damped\nnormal equations, clamps their diagonal to `[min, max]`, adapts damping through\na strategy, and can reject unsuccessful steps.\n\n## Dense recipe\n\n```python\nimport torch\nfrom torch import nn\nimport pypose as pp\nfrom pypose.optim import LM                 # or GN\nfrom pypose.optim.solver import Cholesky   # or LSTSQ\u002FPINV\u002FCG as appropriate\nfrom pypose.optim.strategy import Constant\nfrom pypose.optim.scheduler import StopOnPlateau\n\nclass Residual(nn.Module):\n    def __init__(self):\n        super().__init__()\n        self.scale = nn.Parameter(torch.tensor(0.2))\n        self.bias = nn.Parameter(torch.tensor(-1.0))\n\n    def forward(self, x):\n        return self.scale * x + self.bias\n\nmodel = Residual()\noptimizer = LM(model, solver=Cholesky(), strategy=Constant(damping=1e-4))\nscheduler = StopOnPlateau(optimizer, steps=25, patience=4,\n                           decreasing=1e-8)\nwhile scheduler.continual():\n    loss = optimizer.step(x, target=y)\n    scheduler.step(loss)\n```\n\nUse `optimizer.step(input, target=None, weight=None)` for one iteration and\n`scheduler.optimize(input, target=None, weight=None)` for the scheduler-owned\nloop. Record the initial loss and stop on a finite, decreasing loss rather than\nassuming a fixed iteration count. `GN` has no damping strategy or sparse mode;\nits default solver is `PINV`. `LM` defaults to `Cholesky` and\n`TrustRegion`, with up to 16 rejected steps. Use `Constant` for a fixed\nsmoke\u002Fknown scale, `Adaptive` for quality-based damping changes, or\n`TrustRegion` for radius-based control.\n\nFor multiple residuals, pass a robust kernel such as `Huber` and a\n`corrector` as either one object (reused for every residual) or a list of\nlength one or the number of residuals.\nIf a kernel is provided without a corrector, PyPose constructs automatic\n`FastTriggs` correction. Prefer an explicit `FastTriggs(kernel)` for a stable\nfirst-order robust solve, especially for kernels with a potentially\nindefinite second derivative.\n\n`modjac` is useful for inspection and custom dense workflows. Call it against\nthe module and the same input structure used by the model; use\n`flatten=True` only when a single global Jacobian is really intended. The\noptimizer internally obtains unflattened Jacobians and retains residual-block\nstructure.\n\n## Sparse LM recipe\n\nSparse mode is a separate path:\n\n```python\nfrom pypose.autograd.function import psjac\nfrom pypose.optim import LM\nfrom pypose.optim.solver import PCG\nfrom pypose.optim.strategy import Constant\n\nclass FactorModel(nn.Module):\n    def __init__(self, state):\n        super().__init__()\n        self.state = pp.Parameter(state, sjac=True)\n\n    @psjac\n    def factor(values):\n        return values                 # one independent block per batch row\n\n    def forward(self, indices):\n        return self.factor(self.state[indices])\n\noptimizer = LM(FactorModel(state), solver=PCG(maxiter=250, tol=1e-4),\n               strategy=Constant(damping=1e-6), sparse=True)\n```\n\nA `psjac` function must be row-local: each output batch row may depend only on\nmatching input batch rows. Do not decorate batch reductions, global statistics,\nor functions that mix rows. Mark sparse-traced parameters with `sjac=True`.\nUse `PCG` for the sparse symmetric positive-definite normal equations and keep\nfactor output blocks small.\n\nBefore running sparse LM, check all of the following:\n\n- CUDA is available and the selected tensors\u002Fmodel are on CUDA.\n- `bae==0.2.1` (or a separately verified compatible BAE release) is installed;\n  `pypose.optim.solver.PCG` resolves to the backend implementation.\n- The problem has one residual tensor. If the model returns multiple residuals,\n  sparse mode warns and uses only the first one.\n- `weight` is `None`; sparse weighting is currently unsupported.\n- The residual\u002FJacobian is structurally sparse and factorwise `psjac` semantics\n  are valid.\n- The normal equations are suitable for CG\u002FPCG and the requested memory fits\n  the GPU.\n\nThe full BA, PGO, and reprojection-PGO examples are evidence for this pattern,\nnot runtime dependencies: they assume datasets, plotting, file output, and\nCUDA. Use the bundled sparse identity smoke for a tiny readiness\u002Fconvergence\ncheck before attempting a real graph.\n\n## Verification and recovery checklist\n\n- Confirm `pypose.__version__`, PyTorch version\u002Fdevice, and finite input\u002Ftarget\n  values before a run.\n- Log the loss before the first step, every returned loss, reject count (LM),\n  damping\u002Fradius strategy state, and the final parameter error.\n- If the loss rises, let LM reject\u002Fretry while damping grows; if repeated\n  rejection reaches `reject`, inspect residual signs, target alignment,\n  initialization, and solver conditioning rather than disabling rejection.\n- For a robust objective, verify the residual's last dimension and non-negative\n  squared inputs to the kernel. Use explicit corrector selection when automatic\n  correction is unstable.\n- For sparse failures, first run `sparse_lm_smoke.py --check-only`, then reduce\n  the fixture\u002Fproblem size and test `PCG` independently. Distinguish missing\n  BAE\u002FCUDA from CUDA OOM, unsupported sparse kernels, and an actual numerical\n  breakdown.\n\nEvidence basis: the installed PyPose 0.9.5 API and backend probes, `pypose\u002Foptim`,\n`pypose\u002Fautograd`, and `pypose\u002Fsparse`; `README.md`; `docs\u002Fsource\u002Foptim.rst` and\n`docs\u002Fsource\u002Fautograd.rst`; the BA, PGO, and reprojection-PGO examples; and the\noptimizer, solver, scheduler, Jacobian, and sparse-LM tests. These sources are\nprovenance for the instructions, not files required at runtime.\n","# PyPose optimization\n\nUse this skill when a task is a nonlinear least-squares problem whose learnable\nstate is held by a `torch.nn.Module` (including `pp.Parameter` LieTensor\nparameters), and the desired operation is a dense `GN`\u002F`LM` step or a structured\nsparse `LM` solve. It covers model residuals, targets, weights, Jacobians,\nlinear solvers, damping, robustification, and stopping. The bundled scripts use\nan installed PyPose package and do not read a PyPose checkout.\n\nDo **not** use this skill for primitive LieTensor group\u002Falgebra operations\n(route those to `lie-tensor`), EKF\u002FUKF\u002FPF\u002FLQR\u002FMPC or other module-specific\ncontrol\u002Ffilter workflows (route to `robotics-modules`), or projections,\nsplines, point-cloud geometry, and trajectory metrics (route to\n`geometry-evaluation`).\n\n## Choose a path\n\n- Choose **dense** for ordinary-size or dense-Jacobian problems, multiple\n  residual tensors, non-`None` weights, robust kernels\u002Fcorrectors, CPU, or when\n  a dense solver is adequate.\n- Choose **sparse LM** only when the Jacobian is genuinely structured and large,\n  every sparse constraint below is satisfied, and a CUDA installation of the\n  optional BAE backend is available. Sparse mode is a CUDA\u002FBAE capability, not\n  a CPU fallback.\n- Start with `GN` when a plain least-squares linearization is sufficient and\n  there is no need for LM damping\u002Frejection. Start with `LM` for ill-conditioned\n  or poorly initialized problems, robust damping, or sparse optimization.\n\nRead the relevant reference before implementation:\n\n- [API reference](references\u002Fapi-reference.md) for signatures and shape rules.\n- [Dense workflows](references\u002Fdense-workflows.md) for model construction and\n  GN\u002FLM\u002Fscheduler recipes.\n- [Solver, kernel, and strategy reference](references\u002Fsolver-kernel-strategy-reference.md)\n  for numerical choices.\n- [Sparse optimization](references\u002Fsparse-optimization.md) for `sjac`, `psjac`,\n  BAE, and the sparse restrictions.\n- [Troubleshooting](references\u002Ftroubleshooting.md) for diagnosis and recovery.\n\nRunnable checks (from any working directory, with PyPose installed):\n\nFrom the `pypose` skill directory, use the bundled helpers:\n\n```bash\npython sub-skills\u002Foptimization\u002Fscripts\u002Fdense_lm_smoke.py --help\npython sub-skills\u002Foptimization\u002Fscripts\u002Fdense_lm_smoke.py\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py --help\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py       # skips clearly if CUDA\u002FBAE is absent\npython sub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py --check-only\n```\n\nThe same files can be invoked by absolute path from any working directory.\n\nThe sparse helper's default missing-backend behavior is an informative,\nsuccessful skip. `--check-only` is the explicit readiness gate and returns a\nnonzero status when CUDA or BAE is unavailable.\n\n## Core residual contract\n\n1. Put all variables to optimize in `nn.Parameter` or `pp.Parameter` members of\n   an `nn.Module`. A `pp.Parameter` can carry `sjac=True` for sparse tracing;\n   that flag is only relevant to sparse LM.\n2. Make `forward(input)` accept the actual input structure: one tensor, a tuple\n   or list, or a dictionary. PyPose calls tuples\u002Flists positionally and\n   dictionaries by keyword. Use `input=()` for a no-input model.\n3. Return either one tensor\u002FLieTensor or a tuple\u002Flist of residual outputs. With\n   `target=None`, PyPose minimizes the model output; otherwise each output is\n   residualized as `output - target`. Targets must have the corresponding\n   structure and be broadcast-compatible.\n4. Preserve the final dimension as the residual block dimension. For scalar\n   sample residuals use shape `(..., 1)`, not a flattened global vector; this\n   preserves per-sample Jacobian and robust-kernel structure. A reprojection\n   residual commonly has shape `(..., 2)`.\n5. Use a positive-definite square weight with the same residual ownership only\n   in dense mode. A weight may be one matrix or a list matching the residual\n   tuple; it must be broadcastable according to the residual block dimensions.\n   A `weight` passed to `step` overrides the constructor weight.\n6. Run finite-value and shape checks before choosing a solver. The Jacobian\n   columns must correspond to trainable parameter update coordinates. For\n   LieTensor parameters, PyPose's optimizer uses manifold coordinates rather\n   than padded embedding coordinates.\n\nConceptually, the optimizer linearizes `R(theta)`, applies an optional weight\nand robust corrector, solves for an update `D`, and adds `D` to the parameters.\n`GN` uses a least-squares\u002Fpseudoinverse-style linear solve. `LM` forms damped\nnormal equations, clamps their diagonal to `[min, max]`, adapts damping through\na strategy, and can reject unsuccessful steps.\n\n## Dense recipe\n\n```python\nimport torch\nfrom torch import nn\nimport pypose as pp\nfrom pypose.optim import LM                 # or GN\nfrom pypose.optim.solver import Cholesky   # or LSTSQ\u002FPINV\u002FCG as appropriate\nfrom pypose.optim.strategy import Constant\nfrom pypose.optim.scheduler import StopOnPlateau\n\nclass Residual(nn.Module):\n    def __init__(self):\n        super().__init__()\n        self.scale = nn.Parameter(torch.tensor(0.2))\n        self.bias = nn.Parameter(torch.tensor(-1.0))\n\n    def forward(self, x):\n        return self.scale * x + self.bias\n\nmodel = Residual()\noptimizer = LM(model, solver=Cholesky(), strategy=Constant(damping=1e-4))\nscheduler = StopOnPlateau(optimizer, steps=25, patience=4,\n                           decreasing=1e-8)\nwhile scheduler.continual():\n    loss = optimizer.step(x, target=y)\n    scheduler.step(loss)\n```\n\nUse `optimizer.step(input, target=None, weight=None)` for one iteration and\n`scheduler.optimize(input, target=None, weight=None)` for the scheduler-owned\nloop. Record the initial loss and stop on a finite, decreasing loss rather than\nassuming a fixed iteration count. `GN` has no damping strategy or sparse mode;\nits default solver is `PINV`. `LM` defaults to `Cholesky` and\n`TrustRegion`, with up to 16 rejected steps. Use `Constant` for a fixed\nsmoke\u002Fknown scale, `Adaptive` for quality-based damping changes, or\n`TrustRegion` for radius-based control.\n\nFor multiple residuals, pass a robust kernel such as `Huber` and a\n`corrector` as either one object (reused for every residual) or a list of\nlength one or the number of residuals.\nIf a kernel is provided without a corrector, PyPose constructs automatic\n`FastTriggs` correction. Prefer an explicit `FastTriggs(kernel)` for a stable\nfirst-order robust solve, especially for kernels with a potentially\nindefinite second derivative.\n\n`modjac` is useful for inspection and custom dense workflows. Call it against\nthe module and the same input structure used by the model; use\n`flatten=True` only when a single global Jacobian is really intended. The\noptimizer internally obtains unflattened Jacobians and retains residual-block\nstructure.\n\n## Sparse LM recipe\n\nSparse mode is a separate path:\n\n```python\nfrom pypose.autograd.function import psjac\nfrom pypose.optim import LM\nfrom pypose.optim.solver import PCG\nfrom pypose.optim.strategy import Constant\n\nclass FactorModel(nn.Module):\n    def __init__(self, state):\n        super().__init__()\n        self.state = pp.Parameter(state, sjac=True)\n\n    @psjac\n    def factor(values):\n        return values                 # one independent block per batch row\n\n    def forward(self, indices):\n        return self.factor(self.state[indices])\n\noptimizer = LM(FactorModel(state), solver=PCG(maxiter=250, tol=1e-4),\n               strategy=Constant(damping=1e-6), sparse=True)\n```\n\nA `psjac` function must be row-local: each output batch row may depend only on\nmatching input batch rows. Do not decorate batch reductions, global statistics,\nor functions that mix rows. Mark sparse-traced parameters with `sjac=True`.\nUse `PCG` for the sparse symmetric positive-definite normal equations and keep\nfactor output blocks small.\n\nBefore running sparse LM, check all of the following:\n\n- CUDA is available and the selected tensors\u002Fmodel are on CUDA.\n- `bae==0.2.1` (or a separately verified compatible BAE release) is installed;\n  `pypose.optim.solver.PCG` resolves to the backend implementation.\n- The problem has one residual tensor. If the model returns multiple residuals,\n  sparse mode warns and uses only the first one.\n- `weight` is `None`; sparse weighting is currently unsupported.\n- The residual\u002FJacobian is structurally sparse and factorwise `psjac` semantics\n  are valid.\n- The normal equations are suitable for CG\u002FPCG and the requested memory fits\n  the GPU.\n\nThe full BA, PGO, and reprojection-PGO examples are evidence for this pattern,\nnot runtime dependencies: they assume datasets, plotting, file output, and\nCUDA. Use the bundled sparse identity smoke for a tiny readiness\u002Fconvergence\ncheck before attempting a real graph.\n\n## Verification and recovery checklist\n\n- Confirm `pypose.__version__`, PyTorch version\u002Fdevice, and finite input\u002Ftarget\n  values before a run.\n- Log the loss before the first step, every returned loss, reject count (LM),\n  damping\u002Fradius strategy state, and the final parameter error.\n- If the loss rises, let LM reject\u002Fretry while damping grows; if repeated\n  rejection reaches `reject`, inspect residual signs, target alignment,\n  initialization, and solver conditioning rather than disabling rejection.\n- For a robust objective, verify the residual's last dimension and non-negative\n  squared inputs to the kernel. Use explicit corrector selection when automatic\n  correction is unstable.\n- For sparse failures, first run `sparse_lm_smoke.py --check-only`, then reduce\n  the fixture\u002Fproblem size and test `PCG` independently. Distinguish missing\n  BAE\u002FCUDA from CUDA OOM, unsupported sparse kernels, and an actual numerical\n  breakdown.\n\nEvidence basis: the installed PyPose 0.9.5 API and backend probes, `pypose\u002Foptim`,\n`pypose\u002Fautograd`, and `pypose\u002Fsparse`; `README.md`; `docs\u002Fsource\u002Foptim.rst` and\n`docs\u002Fsource\u002Fautograd.rst`; the BA, PGO, and reprojection-PGO examples; and the\noptimizer, solver, scheduler, Jacobian, and sparse-LM tests. These sources are\nprovenance for the instructions, not files required at runtime.\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill optimization",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill optimization",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002FSKILL.md",[47,53,57,61,65,69,75],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fapi-reference.md","REFERENCE","参考文档",5740,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Freferences\u002Fapi-reference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fdense-workflows.md",7583,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Freferences\u002Fdense-workflows.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fsolver-kernel-strategy-reference.md",6193,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Freferences\u002Fsolver-kernel-strategy-reference.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fsparse-optimization.md",8103,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Freferences\u002Fsparse-optimization.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Ftroubleshooting.md",7421,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Freferences\u002Ftroubleshooting.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fdense_lm_smoke.py","SCRIPT","脚本",4301,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Fscripts\u002Fdense_lm_smoke.py",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fsparse_lm_smoke.py",7464,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fpypose\u002Fsub-skills\u002Foptimization\u002Fscripts\u002Fsparse_lm_smoke.py",[80,87,94,101,108,115],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]