setup-guide
/setup-guide
Prowadzi przez pierwszą instalację skalowania wnioskowania (inference-time scaling) w its_hub w bieżącym środowisku.
- Repozytorium
- its_hub ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 28.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 28.09.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Prowadzi przez pierwszą instalację skalowania wnioskowania (inference-time scaling) w its_hub w bieżącym środowisku.
Oryginalny opis (EN)
Use when the user wants to set up inference-time scaling for the first time, or when its_hub is not yet installed/configured in the current environment.
Jak działa
- Step 1: Detect Environment
- Step 2: Install if Needed
- Step 3: Quick Setup or Custom
- Step 4: Collect Configuration
- Step 5: Ensure API Key
- Step 6: Save Config
- Adding More Models
Podgląd SKILL.md
---
name: setup-guide
description: "Use when the user wants to set up inference-time scaling for the first time, or when its_hub is not yet installed/configured in the current environment."
allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/its_detect.sh:*)"]
---
# its_hub Setup Guide
You are helping the user set up inference-time scaling.
## Step 1: Detect Environment
```!
"${CLAUDE_PLUGIN_ROOT}/scripts/its_detect.sh"
```
Also check for API keys in the environment:
```!
echo "openai_key=${OPENAI_API_KEY:+found}" "anthropic_key=${ANTHROPIC_API_KEY:+found}" "endpoint=${OPENAI_BASE_URL:-none}"
```
## Step 2: Install if Needed
If `library=missing`:
- Explain: "its_hub is a library for inference-time scaling — it generates multiple LLM responses and selects the best one using voting or scoring algorithms."
- Ask permission: "I can install it for you. Want me to proceed?"
- If yes and `installer=uv`: run `uv pip install "its_hub[lm]"`
- If yes and `installer=pip`: run `pip install "its_hub[lm]"`
- If `installer=none`: tell the user they need Python 3.11+ and pip/uv installed first
## Step 3: Quick Setup or Custom
**If an API key was detected**, offer a one-question fast path:
> "I detected your OpenAI API key. I can set up with these defaults:
> - Model: `gpt-4o-mini`
> - Algorithm: `self-consistency`
> - Budget: `8`
>
> Accept these defaults, or would you like to customize?"
If the user accepts, skip to Step 5 using:
- `endpoint`: `https://api.openai.com/v1` (or `OPENAI_BASE_URL` if set)
- `model`: `gpt-4o-mini`
- `algorithm`: `self-consistency`
- `budget`: `8`
**If no API key was detected**, or the user wants to customize, proceed to Step 4.
## Step 4: Collect Configuration
Ask these questions **one at a time**:
1. **Endpoint**: "What's your model endpoint URL?" — e.g., `http://localhost:8000/v1` for vLLM, `https://api.openai.com/v1` for OpenAI
2. **Model name**: "What's the model identifier?" — e.g., `gpt-4o`, `Qwen/Qwen2.5-32B-Instruct`
3. **Algorithm**: "Which scaling algorithm do you want to use?" — consult the `inference-scaling-guide` skill for guidance if the user is unsure.
- **Self-consistency** — Votes on the most common answer. No extra setup needed.
- **Best-of-N** — Scores each with an LLM judge. Requires a judge model.
4. **Budget**: "Which budget do you want to use?" — consult the `inference-scaling-guide` skill for guidance if the user is unsure.
### Algorithm-Specific Config
**Self-consistency:**
- Ask: "Do you need regex patterns for answer extraction? (e.g., `\boxed{...}` for math). If unsure, skip — default voting works for most cases."
- Ask: "Will your prompts involve tool/function calls?" If yes, ask which voting strategy: `tool_name`, `tool_args`, or `tool_hierarchical`
**Best-of-N:**
- Ask: "Which model should be the judge? (This can be the same model or a different one)"
- Collect: judge model name, judge endpoint (default: same as generation model)
## Step 5: Ensure API Key
API keys are read from environment variables — **never store them in the config file**.
If no API key was detected in Step 1, tell the user to set the appropriate environment variable:
> "Set your API key as an environment variable before running scaling:
> ```bash
> export OPENAI_API_KEY="sk-..." # OpenAI or OpenAI-compatible endpoints
> export ANTHROPIC_API_KEY="sk-ant-..." # Anthropic endpoints
> ```
> For local vLLM endpoints that don't require authentication, no API key is needed."
## Step 6: Save Config
Write the config to `.its-hub/config.json`:
```json
{
"models": {
"default": {
"endpoint": "<endpoint>",
"model": "<model_name>"
}
},
"algorithm": "<algorithm>",
"budget": "<budget>",
"algorithm_config": {}
}
```
Add `.its-hub/` to `.gitignore` if not already present.
Confirm the config file was written, then report success:
> "Setup complete! To run scaling, use the `inference-scaling` skill.
>
> **API keys** are read from environment variables, not the config file. Make sure the appropriate variable is set in your shell:
> ```bash
> export OPENAI_API_KEY="sk-..." # OpenAI or OpenAI-compatible endpoints (including vLLM with auth)
> export ANTHROPIC_API_KEY="sk-ant-..." # Anthropic endpoints
> ```
> Local endpoints (e.g., vLLM without auth) don't need an API key."
## Adding More Models
If this skill is invoked again and a config already exists, ask: "You already have a configuration. Do you want to update it or add another model?"
If adding a model: collect endpoint and model name. Add a new entry to the `models` dict using the model name as key.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · red-hat-ai-innovation-team/its_hub | 100 | Apache-2.0 |
| SchulzWill/weekpost | 100 | MIT |
| red-hat-ai-innovation-team/training_hub | 100 | Apache-2.0 |
| red-hat-ai-innovation-team/sdg_hub | 100 | Apache-2.0 |
| Azure/sap-automation-qa | 100 | MIT |
| DojoCodingLabs/remotion-superpowers | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki ff2559ea3dde (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100inference-scaling
Uruchamia skalowanie czasu inferencji dla promptu: wykrywa środowisko, wykonuje skalowanie i prezentuje wyniki. - 100inference-scaling-guide
Prowadzi przez skalowanie czasu inferencji w its_hub: wybór algorytmu (Self-Consistency, Best-of-N, Beam Search, Particle Filtering), budżet, modele nagrody, wywołania narzędzi, interpretacja wyników i rozwiązywanie problemów. - 100setup
Uruchamia daemon wnioskowania ML oracle z onnxruntime przez uv, do lokalnego wnioskowania modeli ONNX przy ocenie jakości skilli. - 100streaming-inference-setup
Konfiguruje strumieniową inferencję w ramach automatycznie aktywowanej kategorii ML Deployment, reagując na frazy związane z konfiguracją streaming inference. - 100configuring-auto-scaling-policies
Konfiguruje polityki automatycznego skalowania i elastycznego skalowania zasobów, gdy trzeba ustawić skalowanie w chmurze lub infrastrukturze. - 100configuring-auto-scaling-policies
Konfiguruje polityki automatycznego skalowania i elastycznego skalowania zasobów, gdy trzeba ustawić skalowanie w chmurze lub infrastrukturze.