[Feature]: External / heterogeneous scheduling hooks and richer placement signals
Mantenedores costumam responder em até 5 dias
@sherief-nv já está trabalhando nisso.
Desde 9/10/2026.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Ativa
- Stack de tecnologia
- go
- Domínio
- api, backend, distributed-systems, observability
Direção de pesquisa
A issue não identifica arquivos de implementação nem entry points; comece localizando o código de routing e scheduling e os testes de integração existentes. Divida a proposta em capacidades com escopo definido antes de alterar qualquer coisa. Para considerar o trabalho concluído, é necessário preservar o comportamento de fallback nativo, isolar as dicas de requests concorrentes, impor as verificações de trust e eligibility e validar o placement e a telemetria por meio dos cenários listados de clusters heterogêneos.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Area
Routing and scheduling
User problem
PAIR provides a strong transport, discovery, and inference data plane for distributed local inference, but heterogeneous clusters need richer placement signals than model ownership, queue depth, and coarse GPU utilization alone.
Today, an external scheduler cannot safely influence placement for one request without changing a persistent or proxy-wide pin, which can introduce races under concurrent traffic. Nodes that own the same model can also have very different practical runtime envelopes: characterized context limits, memory requirements, full-GPU versus CPU/offload behavior, model-load time, prompt/generation throughput, and reliability.
Requests themselves vary substantially in cost based on prompt length, requested context, expected output, model size, and modality. PAIR also has useful model-state visibility, but warm-model affinity and host-wide pressure from other compute workloads are not fully represented in routing decisions. Finally, operators need explainable placement metadata without exposing prompt content.
Desired outcome
PAIR should optionally support the following while preserving its native distributed scheduler as the self-contained default and fallback:
- Request-scoped placement hints such as a preferred node or ranked candidate list. PAIR would continue to enforce model ownership, availability, trust, and normal safety checks.
- Per-model/per-node runtime profiles learned empirically, including characterized context sizes, VRAM/RAM requirements, GPU/offload behavior, load time, prompt TPS, generation TPS, and stability history.
- Weighted request-cost estimation using inputs such as prompt tokens, requested context, expected output length, model size, modality, and historical model/node cost.
- Warm-model affinity when a suitable model is already resident and resource pressure does not favor another node.
- An optional external placement-authority hook, with automatic fallback to PAIR's native scheduler if that authority is unavailable.
- Host-wide admission signals so external GPU/CPU/memory pressure can influence placement without PAIR needing to manage those workloads.
- Explainable routing telemetry showing candidates, exclusions, selected node, selection reason, and failovers, without logging prompt content.
- Optional telemetry hardening under the same cluster trust/mTLS model used by other PAIR services.
The observable result would be safer and more predictable scheduling across heterogeneous nodes, lower model load/unload churn and tail latency, and easier integration with higher-level orchestration systems while PAIR remains the inference transport and failover layer.
Guidottavio D’Assisti
[email protected]
Alternatives considered
- Continue using PAIR's native scheduler based primarily on queued/running workload and GPU pressure. This remains a valuable default and fallback, but it cannot distinguish requests or model/node combinations with radically different practical costs.
- Use the existing manual node pin. A persistent or proxy-wide pin is not sufficient for concurrent, per-request placement and may create global-state races.
- Route directly to inference engines from an external orchestrator. This would duplicate PAIR's model eligibility, discovery, mTLS transport, streaming, and failover responsibilities.
- Infer capacity only from hardware specifications. Empirically learned runtime envelopes are more representative of real behavior across models, contexts, backends, and offload modes.
Compatibility and security implications
All proposed capabilities should be optional and backward-compatible. Requests without placement hints should retain current routing behavior, and an unavailable external authority should fall back to PAIR's native scheduler.
Placement hints must remain advisory to PAIR's eligibility, availability, and trust checks; they must not bypass model ownership, pairing, mTLS, or failover safety. Unknown or unauthorized node identifiers should be rejected or ignored according to a documented policy.
Routing telemetry should exclude prompt and response content and avoid exposing unnecessary host details. If telemetry protection is extended, existing trusted-local deployments should have a documented migration path. API extensions should use optional headers or namespaced fields so existing OpenAI- and Ollama-compatible clients continue to work unchanged.
Validation approach
Maintainers could validate the outcome with automated integration tests covering:
- a request-scoped preferred node being selected only when it is reachable, trusted, and owns the requested model;
- deterministic fallback when the preferred node or external authority is unavailable;
- concurrent requests carrying different placement hints without cross-request interference;
- ranking changes driven by distinct model/node runtime profiles, weighted request costs, and warm-model state;
- host-wide admission signals excluding a pressured node and recovering when pressure clears;
- OpenAI- and Ollama-compatible requests without new hints preserving existing behavior;
- routing telemetry explaining candidates, exclusions, selection, and failovers while containing no prompt/response content;
- unauthorized or malformed hints failing safely and telemetry endpoints enforcing the configured trust model.
A small heterogeneous test matrix with the same model available on differently characterized nodes could verify improved placement and reduced cold-load churn compared with the current scheduler.
Confirmations
- I searched existing issues for duplicates.
- I agree to follow the Code of Conduct.
- Linguagem predominante
- Go
- Estrelas
- 1.6k
- Forks
- 266
- Merge médio
- 3d 6h
- PRs com merge (30d)
- 22
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de NVIDIA/Personal-AI-Router
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
NVIDIA/Personal-AI-Router#165 ·
Mantenedores costumam responder em até 5 dias
-
bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 46/100
NVIDIA/Personal-AI-Router#164 ·
Mantenedores costumam responder em até 5 dias
-
enhancement
Dificuldade 4/5 Mais de uma semana Facilidade para iniciantes 12/100
NVIDIA/Personal-AI-Router#162 ·
Mantenedores costumam responder em até 5 dias
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
NVIDIA/Personal-AI-Router#154 · 1 comentário ·
Mantenedores costumam responder em até 5 dias
-
[Feature]: [Ollama] Alert the user about model pull failuresTalvez já em andamento @ckelseynv assumiu há 3 dias. Abertaenhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
NVIDIA/Personal-AI-Router#152 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 5 dias
Todas as issues de NVIDIA/Personal-AI-Router
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 63/100
Mantenedores costumam responder em até 1 dia
-
product/backlog
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
TencentBlueKing/bk-nodemgr#3645 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
modelcontextprotocol/go-sdk#1387 ·
Mantenedores costumam responder em até 1 dia