SimplexLabSimplexLabOfficial·4 Agent Skills Included

TorchJD

Multi-task PyTorch training with conflict-free gradient aggregation

Trains neural networks with multiple losses using scalarization and Jacobian descent methods like UPGrad, MGDA, and CAGrad. Resolves conflicting gradients that standard loss summation cannot handle, improving multi-task model performance. Includes guided workflows to research, implement, test, and release new optimization methods with full documentation.
npx skills add SimplexLab/TorchJD --all -g -y
Available:

Gives your AI agent coding rules for this project, covering docstring style, type hints, uv-based test commands, linting, and documentation build steps.

All Skills in This Repository (4)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install TorchJD?

Run `npx skills add SimplexLab/TorchJD --all -g -y` in your terminal to install all skills in this suite globally.

What problem does TorchJD solve?

It trains neural networks with multiple losses by aggregating conflicting gradients into a single update direction, which standard loss summation often fails to do.

How to add a new aggregation method to TorchJD?

Use the research-method skill to analyze the paper, then the implement-method skill to generate the class, tests, docs, and changelog following project conventions.

Does TorchJD work with standard PyTorch training loops?

Yes. You only replace the loss summation and backward call with a scalarizer or the mtl_backward and jac_to_grad functions.

How to verify a TorchJD release?

The check-release skill validates the docs site, installs the package from PyPI, and smoke-tests all newly added classes automatically.

Related Repositories in Software Engineering

View All in Software Engineering