Skip to content
Back to skills

Prompt Tuning

ASecurity

"Operate Petals prompt-tuning, deep prompt-tuning, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
businesspythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill prompt-tuning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Tuning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompt Tuning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-prompt-tuning-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-prompt-tuning-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prompt-tuning
description: "Operate Petals prompt-tuning, deep prompt-tuning, and
  adapter-aware training workflows without relying on the original repository
  checkout."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Petals Prompt Tuning

Use this sub-skill for distributed prompt tuning or deep prompt tuning on a Petals model, including causal-LM chat tuning, sequence-classification tuning, and prompt tuning on top of a preloaded PEFT/LoRA adapter.

Route generation-only work to `client-inference`, server adapter flags to `server-swarms`, and low-level LoRA/block conversion to `distributed-blocks`.

## Procedure

1. Pick a recipe in [references/workflows.md](references/workflows.md).
2. Choose `tuning_mode="ptune"` or `"deep_ptune"`; always set `pre_seq_len > 0`.
3. Load a distributed model constructor with `pre_seq_len` and `tuning_mode`.
4. Preprocess data into fixed-length `input_ids` and labels; omit zero-valued attention masks before Petals forwards.
5. Print trainable parameters. Expected trainables are prompt embeddings and, for classification, the classifier head.
6. Use a normal PyTorch optimizer over `requires_grad` parameters only.
7. Keep Hugging Face, dataset, W&B, CUDA, and swarm requirements explicit.

Read [references/api-reference.md](references/api-reference.md), [references/troubleshooting.md](references/troubleshooting.md), and use `python scripts/prompt_tuning_skeleton.py --help` for no-download planning.

Files in this skill

  • SKILL.md1.5 KB
  • references/api-reference.md1.2 KB
  • references/troubleshooting.md1.3 KB
  • references/workflows.md2.1 KB
  • scripts/prompt_tuning_skeleton.py2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.