Логотип Dstack Prototyping

Dstack Prototyping

ОрганізаціяПопулярне
dstackai
dstack-prototyping

Use with the dstack skill for model-serving work when the image, serving command, resources, backend/fleet choice, or service behavior is not proven. Guides task-first prototyping on real hardware, choosing fleets/backends that can reuse idle instances and caches, checking vLLM/SGLang sources, and verifying the final dstack service with a model request.

Огляд

Видавецьdstackai
Репозиторійdstack
Назва навичкиdstack-prototyping
Зірки
2.3K
Форки
262
Файли в пакеті
Лише інструкції
ЛіцензіяMPL-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем dstackai. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Dstack Prototyping у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/dstackai/dstack/tree/master/skills/dstack-prototyping
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dstackai/dstack.git /tmp/dstack
mkdir -p .claude/skills
cp -r /tmp/dstack/skills/dstack-prototyping .claude/skills/dstack-prototyping
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Dstack Prototyping в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Dstack Prototyping, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Dstack Prototyping не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

dstack Prototyping

Use /dstack for CLI commands, YAML fields, apply/attach behavior, service URLs, and other dstack syntax. This skill explains how to use dstack runs while the model-serving configuration is still unknown.

Goal

Find a working dstack service configuration for the requested model.

Before submitting a service, use a task on real hardware to test the serving image, install/runtime assumptions, model download, cache path, command, port, launch flags, resources, env vars, backend/fleet choice, and local model request. Then submit the same configuration as a service and verify the model through the dstack service URL.

Choose Where To Run

Pick the offer whose hardware best fits the goal at hand. Only when several offers fit comparably, choose a VM-based backend, an SSH fleet, or a Kubernetes fleet: they support idle instances and/or instance volumes, so later runs reuse the provisioned/idle instance or instance volumes for caching model weights (and possibly other writes), while container-based backends start clean on every run.

Fetch https://dstack.ai/docs/concepts/backends.md and classify backends from the fetched document, not from memory.

If the intention is to use PD disaggregation, the fleet must use placement: cluster. Since PD disaggregation implies running a router, unlike workers that must run on GPUs, the router normally should run on a CPU instance. Use dstack fleet to see existing fleets and dstack fleet get <fleet name> --json to inspect a specific fleet.

Check Serving Sources

Check serving-framework sources early enough to choose the image, command, launch flags, resources, cache paths, request format, and expected model behavior.

For vLLM and SGLang, use these as credible sources:

  • vLLM recipes and model index: https://recipes.vllm.ai/ and https://recipes.vllm.ai/models.json
  • SGLang docs: https://docs.sglang.io/ (fetch /llms.txt for the page index)
  • SGLang model recipes: https://docs.sglang.io/cookbook/autoregressive/intro
  • Release notes: https://github.com/vllm-project/vllm/releases and https://github.com/sgl-project/sglang/releases
  • Performance-loop methodology (profiling, benchmark contracts): https://www.lmsys.org/blog/2026-07-02-agent-assisted-sglang-development

Use A Task Before Service

Before submitting a service, start a long-lived task:

yaml
commands:
  - sleep infinity

or an equivalent idle command.

Submit the task detached, attach or SSH into it when available, and run commands inside the live environment. Test the image, installs, model download and cache path, serving command, port, launch flags, local model request, and expected model behavior.

When starting a long-running command in the background from a non-interactive SSH command, use nohup, redirect stdin from /dev/null, and redirect stdout/stderr to a log file so the SSH command returns while the process keeps running. For example (the command can be any long-running command):

shell
nohup vllm serve ... </dev/null > /tmp/vllm.log 2>&1 &

If the image, hardware choice, or major install path changes, submit another task so the changed setup is tested before service verification.

Do not move to a service after checking only GPU visibility, imports, logs, or a health endpoint. Start the server inside the task and send a request that uses the requested model. For a chat or reasoning model, check the response behavior the endpoint is expected to support, such as reasoning output when that model is supposed to expose it.

Follow /dstack structured status guidance when polling task or service status. After requesting a task or service stop before another submission, wait until that run reaches a terminal status. This allows dstack to reuse its instance or instance volumes when available.

Verify As A Service

Submit the service after the task has verified the configuration: image, command, port, resources, env vars, cache mounts if used, backend/fleet choice, and model request.

Use the service as a duplicate check of the same configuration under dstack service runtime. The model request that worked locally in the task must also work through the dstack service URL.

If service verification fails because the image, install, model download, command, resources, cache, or model behavior needs to change, go back to a task. If the tested serving setup is still right and only the dstack service configuration is wrong, fix the configuration and submit the service again.

PD disaggregation

If the intention is to use PD disaggregation:

  • Use node groups for the task and replica groups for the service: tasks' node groups are the equivalent of services' replica groups.
  • In both cases, you run a router and prefill/decode workers separately, and you need to use a fleet with an interconnect (placement: cluster).
  • With tasks, still use sleep infinity even when using groups (set it in each group's commands; top-level commands is not allowed with groups), and run the actual commands on each node interactively over SSH.
  • When testing inference, call the router endpoint, not the workers directly (unless you want to test if they are alive).
  • Look for "Node groups" and "PD disaggregation" in https://dstack.ai/docs/concepts/tasks.md and "Replica groups" and "PD disaggregation" in https://dstack.ai/docs/concepts/services.md.

Поширені запитання

Що робить навичка ШІ Dstack Prototyping?

Use with the dstack skill for model-serving work when the image, serving command, resources, backend/fleet choice, or service behavior is not proven. Guides task-first prototyping on real hardware, choosing fleets/backends that can reuse idle instances and caches, checking vLLM/SGLang sources, and verifying the final dstack service with a model request.

Навіщо використовувати Dstack Prototyping у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Dstack Prototyping — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Dstack Prototyping у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/dstackai/dstack/tree/master/skills/dstack-prototyping. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Dstack Prototyping?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Dstack Prototyping?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Dstack Prototyping — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Dstack Prototyping?

Так. Навичку опубліковано на GitHub: dstackai, за ліцензією MPL-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇