agentsclimarketplace

Run2 pytorch tensor ops

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-gemini-3.1-flash-lite-preview/nlp-paper-reproduction/run2_pytorch-tensor-ops

Robust PyTorch tensor operations for implementing loss functions, including handling device placement and numerical stability.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_pytorch-tensor-ops

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.5 KB, 83 tokens by cl100k_base, as published. Nobody here has run it

Tensor Operations

  • torch.gather: Useful for selecting specific log probabilities from logits: torch.gather(log_probs, dim=-1, index=labels.unsqueeze(-1)).squeeze(-1).
  • F.logsigmoid: Stable computation of log(sigmoid(x)).
  • .to(device): Ensure all input tensors and the trainer components are on the same device.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,758. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.