Skip to content
Back to skills

Client Inference

ASecurity

"Use Petals client APIs for distributed model loading, generation,

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
toolspythonapi

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 client-inference --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Client Inference?

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

Security grade badge for Client Inference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-client-inference/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-client-inference)

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: client-inference
description: "Use Petals client APIs for distributed model loading, generation,
  inference sessions, routing, retries, and swarm selection."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Petals Client Inference

Use this sub-skill to write, debug, or adapt Petals client code for distributed text generation, model forward passes, sequence classification, speculative Llama generation, inference-session cache reuse, or route/retry controls.

## Route elsewhere

- Server hosting, DHT bootstrap, public/private server commands: `server-swarms`.
- Trainable prompts, deep prompt tuning, optimizer loops: `prompt-tuning`.
- Block conversion, tensor parallel, quantization internals: `distributed-blocks`.
- Benchmark command construction and maintainer test selection: `benchmarks-maintenance`.

## Workflow

1. Read [references/api-reference.md](references/api-reference.md) for entry points, config fields, and constraints.
2. Use [references/workflows.md](references/workflows.md) for generation, private-swarm selection, inference-session, classification, and speculative-generation recipes.
3. Run the safe no-network checker: `python scripts/client_smoke_check.py --pretty`.
4. For route, retry, tokenizer, model access, or session errors, use [references/troubleshooting.md](references/troubleshooting.md).

## Principles

Treat Petals classes as Transformers-compatible wrappers whose embeddings/heads run locally and transformer blocks run on remote servers. Make swarm choice explicit when reproducibility matters. When generating without an active session, pass exactly one of `max_new_tokens` or `max_length`; for interactive continuation, create one `inference_session(max_length=...)` large enough for the entire exchange.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md2.5 KB
  • references/troubleshooting.md1.3 KB
  • references/workflows.md2.2 KB
  • scripts/client_smoke_check.py2.2 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.