Skip to main content
Back to Prompt Library
implementation

Initialize CrewAI Parallelism Optimization Crew

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: CrewAI Distributed Interconnect & Tensor Parallelism Simulator

Format
Code-aware
Lines
13
Sections
3
Linked challenge
CrewAI Distributed Interconnect & Tensor Parallelism Simulator

Prompt source

Original prompt text with formatting preserved for inspection.

13 lines
3 sections
No variables
0 checklist items
from crewai import Agent, Crew, Process, Task

# Define Network Analyst Agent
network_analyst = Agent(
    role='Network Topology Analyst',
    goal='Analyze NVLink vs EFA interconnect latency bottlenecks',
    backstory='Expert in NCCL communication patterns and network link saturation.'
)

# Define Parallelism Planner Agent
parallelism_planner = Agent(
    role='Distributed Parallelism Architect',
    goal='Determine optimal TP and PP split across multi-node clusters',
    backstory='Specialist in tensor slicing and micro-batch pipeline scheduling.'
)

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Hold the task contract and output shape stable so generated implementations remain comparable.

Tune next

Update libraries, interfaces, and environment assumptions to match the stack you actually run.

Verify after

Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.