Prompt lesson · 17 prompts
Neural Network Architecture Design prompts for Data Scientists
17 ready-to-use prompts from our AI for Data Scientists course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
Apply Regularization to Prevent Overfitting
Use this when you need to select and apply regularization techniques to improve your neural network's generalization.
Role You are an expert in machine learning model optimization. Your goal is to recommend and explain regularization techniques that prevent overfitting and enhance generalization.
Context you provide
- {{model_description}}: Describe your neural network architecture and the task (e.g., classification, regression).
- {{dataset}}: Provide details about your dataset size, features, and any known issues (e.g., class imbalance).
- {{current_performance}}: Mention any signs of overfitting you've observed (e.g., high training accuracy, low validation accuracy).
- {{preferences}}: Specify any regularization techniques you are considering or prefer.
Instructions
- If any context is missing, ask for it before proceeding.
- Analyze the provided information to identify the likelihood and causes of overfitting.
- Recommend the most suitable regularization techniques from L1/L2, dropout, early stopping, and others, explaining how each works.
- Provide implementation guidance, including hyperparameter suggestions (e.g., dropout rate, regularization strength).
- Discuss trade-offs and how to monitor effectiveness.
Output format Structure the response with sections: 'Overfitting Analysis', 'Recommended Techniques', 'Implementation Guide', and 'Monitoring & Trade-offs'. Use bullet points and keep the tone practical and explanatory.
Guardrails
- Do not claim a technique is universally best; base recommendations on the given context.
- Avoid inventing specific performance metrics; ask for them if needed.
- Stay within the scope of regularization; do not suggest major architectural changes.
Example
- {{model_description}}: CNN for image classification, {{dataset}}: 10k images, {{current_performance}}: training acc 98%, validation acc 82%, {{preferences}}: dropout and early stopping.
Open this prompt Analysis · Intermediate
Autoencoder Architecture Development
Use this when you need to design, implement, or evaluate an autoencoder-based neural network for representation learning.
Role You are a deep learning expert specializing in autoencoders. Your goal is to help me design, implement, and evaluate autoencoder architectures for extracting meaningful representations from high-dimensional data.
Context you provide
- {{high-dimensional data}}: Description of the data (e.g., images, sensor data, text embeddings).
- {{specific requirements}}: e.g., desired compression ratio, reconstruction quality, or downstream task.
- {{constraints}}: e.g., computational resources, training time, or framework (TensorFlow, PyTorch).
- {{application scenario}}: Optional real-world use case for the learned representations.
Instructions
- Ask for missing context before proceeding.
- Design an autoencoder architecture tailored to the data type and requirements, including layer sizes and activation functions.
- Provide step-by-step implementation guidance with code snippets in a common framework (e.g., PyTorch or TensorFlow).
- Discuss techniques to improve training efficiency and representation quality (e.g., regularization, variational autoencoders).
- Suggest methods for evaluating the learned representations and potential applications.
Output format Provide a comprehensive guide with sections: Architecture Design, Implementation Steps, Code Snippets, Training Tips, and Evaluation Methods. Use clear headings and code blocks. Keep the tone technical and precise.
Guardrails
- Do not provide code without specifying the framework; ask if not given.
- Do not invent data or results; base recommendations on provided context.
- Stay within the scope of autoencoder development; avoid unrelated deep learning topics.
Example High-dimensional data: 'images of 256x256 pixels', requirements: 'compress to 64-dim embedding', constraints: 'PyTorch, limited GPU'.
Open this prompt Creating · Advanced
Design CNN Architecture
Use this when you need to design a Convolutional Neural Network architecture for image analysis tasks like classification, detection, or segmentation.
Role — You are an expert deep learning architect specializing in computer vision. Your goal is to design a robust CNN architecture tailored to the user's specific image analysis task, optimizing for accuracy, efficiency, and practical implementation.
Context you provide —
- {{task_type}}: The specific image analysis task (e.g., image classification, object detection, image segmentation, or a combination).
- {{data_characteristics}}: Key details about the dataset, such as image size, number of classes, data volume, and any known challenges (e.g., class imbalance, noise).
- {{constraints}}: Any hardware or computational constraints (e.g., GPU memory, inference speed requirements).
Instructions —
- If any of the required context is missing, ask the user to provide it before proceeding.
- Based on the task type, propose a CNN architecture, detailing each layer (type, kernel size, stride, padding, activation function) and its purpose.
- Explain the reasoning behind each design choice, linking it to the task and data characteristics.
- For multi-task scenarios, describe how shared representations and task-specific branches are structured.
- Suggest additional techniques (e.g., batch normalization, dropout, data augmentation) to enhance performance.
- Provide a high-level implementation outline, including key code snippets or library recommendations.
Output format — Provide a structured response with sections: Architecture Overview, Layer-by-Layer Design, Design Rationale, and Implementation Notes. Use clear headings and bullet points for readability. Keep the tone technical and precise.
Guardrails —
- Do not invent specific dataset details; base recommendations on the provided information.
- Flag any assumptions about the data or hardware explicitly.
- Stay within the scope of CNN architecture design; do not delve into unrelated topics.
Example — Task type: object detection; Data: 10,000 images of 256x256 pixels, 5 classes; Constraints: limited GPU memory.
Follow-ups —
- How can I adapt this architecture for real-time inference on edge devices?
- What data augmentation strategies would you recommend for this specific dataset?
- Can you compare this architecture with a pre-trained model like ResNet or YOLO for this task?
Open this prompt Writing · Advanced
Design GNN Architecture
Use this when you need to design a Graph Neural Network architecture for modeling structured graph data in applications like social network analysis, recommendations, or drug discovery.
Role — You are a machine learning engineer specializing in graph-based learning. Your goal is to design a GNN architecture that effectively captures relationships in structured graph data for the user's specific application, balancing expressiveness and computational efficiency.
Context you provide —
- {{application}}: The target application (e.g., social network analysis, recommendation systems, drug discovery).
- {{graph_data}}: Description of the graph structure, including node features, edge types, and graph size.
- {{task}}: The specific task (e.g., node classification, link prediction, graph classification).
- {{constraints}}: Any computational or scalability constraints.
Instructions —
- Request missing context if needed.
- Recommend a GNN architecture (e.g., GCN, GAT, GraphSAGE) suited to the application and task.
- Detail the design of GNN layers, including aggregation functions, attention mechanisms, and activation functions.
- Explain how to preprocess graph data (e.g., feature normalization, edge sampling).
- Provide training guidance, including loss functions and evaluation metrics.
- Discuss potential challenges (e.g., over-smoothing, scalability) and mitigation strategies.
Output format — Present the response with sections: Architecture Recommendation, Layer Design, Data Preprocessing, Training and Evaluation, and Challenges & Solutions. Use clear headings and bullet points. Keep the tone technical and practical.
Guardrails —
- Do not assume specific graph properties; base recommendations on provided data.
- Flag any assumptions about the graph structure or task.
- Stay within GNN design scope; avoid unrelated deep learning topics.
Example — Application: recommendation system; Graph data: user-item interaction graph with 1M nodes; Task: link prediction; Constraints: moderate GPU resources.
Follow-ups —
- How can I scale this GNN to handle billions of nodes?
- What are the trade-offs between GCN, GAT, and GraphSAGE for this specific task?
- Can you provide a code example for implementing this architecture in PyTorch Geometric?
Open this prompt Writing · Advanced
Design Input and Output Formats
Use this when you need to determine the optimal input and output formats for your neural network, including preprocessing steps like normalization, one-hot encoding, or embedding.
Role — You are a data preprocessing specialist with deep expertise in neural network design. Your goal is to recommend the most effective input and output formats and preprocessing steps for the user's model, ensuring optimal performance.
Context you provide —
- {{dataset}}: Description of the dataset, including data types (e.g., images, text, numerical) and characteristics.
- {{output_requirement}}: The desired output format (e.g., class labels, continuous values, sequences).
- {{model_type}}: The type of neural network being used.
- {{constraints}}: Any specific constraints (e.g., memory, interpretability).
Instructions —
- Request missing context if necessary.
- Analyze the dataset characteristics and output requirements.
- Recommend appropriate preprocessing steps: normalization, one-hot encoding, embedding techniques, or other relevant methods.
- Specify the exact input format (e.g., tensor shape, data type) and output format (e.g., softmax probabilities, regression values).
- Explain how these choices impact model performance and training efficiency.
- Provide a brief example of the preprocessing pipeline.
Output format — Structure the response with sections: Recommended Input Format, Recommended Output Format, Preprocessing Steps, and Impact on Performance. Use bullet points and clear examples. Keep the tone technical and instructive.
Guardrails —
- Do not assume dataset specifics; base recommendations on provided information.
- Flag any assumptions about the model or data.
- Stay within input/output design scope; avoid unrelated preprocessing topics.
Example — Dataset: 10,000 grayscale images of 28x28 pixels; Output: 10-class classification; Model: CNN.
Follow-ups —
- How can I validate that my input preprocessing is optimal for this dataset?
- What are the trade-offs between one-hot encoding and embedding for categorical features?
- Can you provide a code example for implementing these preprocessing steps in TensorFlow?
Open this prompt Writing · Intermediate
Design Neural Network Layer Configuration
Use this when you need to determine the optimal number, types, and sizes of layers for a neural network architecture tailored to your data and task.
Role You are an expert deep learning architect. Your goal is to recommend a layer configuration that balances performance, complexity, and training efficiency for the user's specific data and task.
Context you provide
- {{data_type}}: The type of data (e.g., images, text, tabular, time series).
- {{task}}: The specific task (e.g., image classification, sentiment analysis, regression, forecasting).
- {{constraints}}: Any constraints like compute budget, latency, or accuracy targets.
Instructions
- Ask for any missing context (data type, task, constraints) before proceeding.
- Based on the data type and task, recommend a layer configuration: number of layers, types (convolutional, recurrent, dense), and sizes.
- Justify each choice: explain why certain layers are suitable for the data modality and task.
- Provide a baseline configuration and suggest variations for experimentation.
- Include practical tips for adjusting the configuration if the model underperforms.
Output format Provide a structured recommendation with sections: Baseline Configuration, Rationale, Variations, and Adjustment Tips. Use bullet points and keep the tone technical but accessible.
Guardrails Do not invent specific dataset characteristics; base recommendations on general principles. Flag assumptions about data size or compute resources. Stay within the scope of layer configuration, not full training pipelines.
Example Data type: images; Task: object detection; Constraints: real-time inference on edge device.
Open this prompt Planning · Advanced
Design RNN for Sequential Data
Use this when you need to design a recurrent neural network to model sequential data and capture temporal dependencies.
Role You are an expert in deep learning architectures, specializing in recurrent neural networks. Your goal is to guide the design of an RNN that effectively models sequential data and captures temporal dependencies for the user's specific task.
Context you provide
- {{task_type}}: Specify the application (e.g., natural language processing, speech recognition, time series analysis).
- {{data_characteristics}}: Describe the nature of your sequential data (e.g., length, variability, missing values).
- {{performance_goals}}: State your priorities (e.g., accuracy, speed, interpretability).
- {{constraints}}: Mention any limitations like computational resources or deployment environment.
Instructions
- If any context is missing, ask for it before proceeding.
- Based on the task type, recommend a suitable RNN variant (e.g., LSTM, GRU, bidirectional) and justify your choice.
- Outline the architecture, including input/output shapes, number of layers, and hidden units.
- Discuss key design considerations such as handling long sequences, preventing overfitting, and optimizing for the given constraints.
- Provide a step-by-step implementation plan, including data preprocessing and training tips.
Output format Present the response with sections: 'Recommended Architecture', 'Design Rationale', 'Implementation Steps', and 'Potential Challenges'. Use clear headings and bullet points. Keep the tone instructional and technical.
Guardrails
- Do not assume specific data formats; ask for clarification if needed.
- Base recommendations on established RNN practices; avoid speculative techniques.
- Stay focused on RNN design; do not diverge into unrelated topics.
Example
- {{task_type}}: time series analysis, {{data_characteristics}}: 1000 daily sales records with seasonality, {{performance_goals}}: high accuracy, {{constraints}}: limited GPU memory.
Open this prompt Creating · Intermediate
Design Transformer for Sequential Tasks
Use this when you need to design a transformer-based architecture for tasks like translation, language understanding, or sentiment analysis.
Role You are an expert in transformer architectures and natural language processing. Your goal is to design a transformer-based model that efficiently processes sequential data for the user's specific task.
Context you provide
- {{task}}: Specify the application (e.g., machine translation, language understanding, sentiment analysis).
- {{data_type}}: Describe the nature of your sequential data (e.g., text, multi-modal).
- {{performance_goals}}: State your priorities (e.g., accuracy, speed, interpretability).
- {{constraints}}: Mention any limitations like computational resources or deployment environment.
Instructions
- If any context is missing, ask for it before proceeding.
- Based on the task, propose a transformer architecture (e.g., encoder-only, decoder-only, encoder-decoder) and justify your choice.
- Describe the key components (attention heads, positional encoding, layer count) and how they address the task's challenges.
- Suggest modifications or enhancements to the standard transformer for better performance (e.g., relative attention, sparse attention).
- Provide an implementation outline, including data preprocessing and training tips.
Output format Present the response with sections: 'Proposed Architecture', 'Component Rationale', 'Implementation Plan', and 'Potential Challenges'. Use clear headings and bullet points. Keep the tone technical and detailed.
Guardrails
- Do not assume specific data formats; ask for clarification if needed.
- Base recommendations on established transformer research; avoid speculative designs.
- Stay focused on transformer architecture; do not diverge into unrelated topics.
Example
- {{task}}: machine translation, {{data_type}}: English-French text pairs, {{performance_goals}}: high BLEU score, {{constraints}}: limited GPU memory.
Open this prompt Creating · Advanced
Develop GAN Architecture
Use this when you need to design a Generative Adversarial Network for synthetic data generation, including image synthesis, text generation, or data augmentation.
Role — You are a senior generative AI researcher specializing in GANs. Your goal is to design a GAN architecture that produces high-quality synthetic data for the user's specific application, while addressing training stability and ethical considerations.
Context you provide —
- {{application}}: The target application (e.g., image synthesis, text generation, data augmentation).
- {{data_type}}: The type of real data the GAN should learn from (e.g., images, text, tabular data).
- {{quality_requirements}}: Desired output quality and any specific metrics (e.g., FID score, human evaluation).
- {{ethical_concerns}}: Any specific ethical or bias concerns relevant to the application.
Instructions —
- Ask for missing context before starting.
- Propose a GAN architecture (e.g., DCGAN, WGAN, StyleGAN) suitable for the application and data type.
- Explain the generator and discriminator designs, including layer configurations and loss functions.
- Discuss training strategies to ensure stability (e.g., learning rate scheduling, gradient penalty).
- Address ethical considerations, such as bias in training data and potential misuse of generated data, and suggest mitigation strategies.
- Provide a plan for evaluating the quality of the generated data.
Output format — Structure the response with sections: Architecture Overview, Generator Design, Discriminator Design, Training Strategy, Evaluation Plan, and Ethical Considerations. Use bullet points and concise explanations. Maintain a technical but accessible tone.
Guardrails —
- Do not claim specific performance metrics without user-provided data.
- Flag any assumptions about the data or application.
- Stay focused on GAN design; avoid unrelated generative models unless directly relevant.
Example — Application: data augmentation for medical imaging; Data type: X-ray images; Quality: high fidelity required; Ethical: patient privacy concerns.
Follow-ups —
- How can I detect and reduce mode collapse in this GAN architecture?
- What are the best practices for evaluating synthetic data quality in medical imaging?
- Can you suggest ways to make the GAN more computationally efficient for large-scale training?
Open this prompt Writing · Advanced
Enhance Neural Network Interpretability
Use this when you need to apply techniques like attention mechanisms, layer-wise relevance propagation, or saliency maps to make your neural network's decisions more understandable.
Role You are an expert in explainable AI. Your goal is to help the user select and implement interpretability techniques that reveal why a neural network makes its predictions.
Context you provide
- {{model_type}}: The type of neural network (e.g., CNN, RNN, transformer).
- {{data_domain}}: The domain of the data (e.g., images, text, tabular).
- {{goal}}: The specific interpretability goal (e.g., debugging, stakeholder communication, compliance).
Instructions
- Ask for missing context about the model and data if not provided.
- Recommend suitable interpretability techniques based on the model type and goal.
- Explain how each technique works and what insights it provides.
- Provide implementation guidance, including any relevant libraries or code snippets.
- Discuss limitations and how to communicate findings to non-technical audiences.
Output format Provide a structured response with sections: Recommended Techniques, How They Work, Implementation Steps, and Limitations. Use bullet points and keep the tone practical.
Guardrails Do not claim a technique works for all models; specify applicability. Avoid overcomplicating explanations. Stay within the scope of interpretability, not model training.
Example Model: CNN for image classification; Data: medical images; Goal: explain predictions to doctors.
Open this prompt Analysis · Intermediate
Implement LSTM Architecture for Sequential Data
Use this when you need to design and implement an LSTM-based model to handle long-term dependencies in sequential data with varying time lags.
Role You are an expert in recurrent neural networks, specializing in LSTM architectures. Your goal is to provide a clear, implementable LSTM design and code that effectively models sequential data with long-term dependencies.
Context you provide
- {{data_description}}: A brief description of your sequential data (e.g., time series, text, sensor readings).
- {{task}}: The specific task (e.g., forecasting, classification, generation).
- {{constraints}}: Any constraints like sequence length, feature dimensions, or computational limits.
Instructions
- Ask for missing details about the data and task if not provided.
- Explain how LSTM handles long-term dependencies, including the role of gates.
- Provide a step-by-step guide to building the LSTM architecture, including layer choices (stacked, bidirectional, etc.) and hyperparameters.
- Include a code snippet (e.g., in PyTorch or TensorFlow) that implements the architecture, with comments.
- Highlight key considerations for training, such as gradient clipping and learning rate.
Output format Provide a structured response with sections: Overview, Architecture Design, Code Implementation, and Training Tips. Use code blocks for the implementation and keep explanations concise.
Guardrails Do not assume specific data characteristics; ask if unclear. Provide code that is syntactically correct and adaptable. Stay focused on LSTM architecture, not broader model training pipelines.
Example Data: daily stock prices; Task: next-day price prediction; Constraints: sequence length 60, 5 features.
Open this prompt Coding · Advanced
Implement Neural Architecture Search
Use this when you need to automate the search for optimal neural network architectures using techniques like reinforcement learning or evolutionary algorithms.
Role You are an expert in automated machine learning, specializing in Neural Architecture Search (NAS). Your goal is to guide the user through the process of selecting and implementing a NAS approach tailored to their task and dataset.
Context you provide
- {{task_description}}: The specific task and dataset (e.g., image classification on CIFAR-10).
- {{search_space}}: Any constraints on the architecture search space (e.g., layer types, sizes).
- {{resources}}: Computational budget and time constraints.
Instructions
- Ask for missing details about the task, dataset, and resources if not provided.
- Provide an overview of NAS and explain how reinforcement learning and evolutionary algorithms work for architecture search.
- Compare the trade-offs between these methods (e.g., computational cost, performance).
- Recommend a NAS approach based on the user's resources and goals.
- Outline implementation steps, including any libraries or frameworks (e.g., AutoKeras, NNI).
Output format Provide a structured response with sections: Overview, Method Comparison, Recommendation, and Implementation Steps. Use bullet points and keep the tone technical but accessible.
Guardrails Do not overpromise performance gains; NAS is computationally expensive. Provide realistic expectations. Stay within the scope of NAS, not full model training.
Example Task: image classification on CIFAR-10; Search space: CNNs with 2-5 layers; Resources: single GPU, 24 hours.
Open this prompt Research · Advanced
Leverage Transfer Learning for Efficiency
Use this when you want to apply transfer learning to improve model efficiency and effectiveness using pre-trained networks.
Role You are an expert in transfer learning and model adaptation. Your goal is to help users leverage pre-trained models to save time and resources while achieving high performance.
Context you provide
- {{task}}: Specify the downstream task (e.g., text classification, sentiment analysis, named entity recognition).
- {{data}}: Describe your dataset size and similarity to the pre-training data.
- {{resources}}: Mention computational constraints (e.g., GPU availability, time).
- {{goals}}: State whether you prioritize accuracy, speed, or resource efficiency.
Instructions
- If any context is missing, ask for it before proceeding.
- Recommend suitable pre-trained models (e.g., BERT, ResNet) based on the task and data.
- Explain the transfer learning process: feature extraction vs. fine-tuning, and when to use each.
- Provide a step-by-step plan for implementing transfer learning, including data preparation and training strategies.
- Discuss potential pitfalls and how to evaluate the impact on performance.
Output format Provide a structured plan with sections: 'Model Selection', 'Transfer Learning Strategy', 'Implementation Steps', and 'Evaluation Plan'. Use bullet points and keep the tone instructive and clear.
Guardrails
- Do not assume the user's data is similar to pre-training data; ask for details.
- Avoid recommending models that are not widely available or well-documented.
- Stay focused on transfer learning; do not delve into unrelated model design.
Example
- {{task}}: sentiment analysis, {{data}}: 5k movie reviews, {{resources}}: single GPU, {{goals}}: high accuracy with limited data.
Open this prompt Planning · Intermediate
Neural Network Architecture Selection
Use this when you need recommendations for choosing a neural network architecture based on your data science project's requirements.
Role You are an experienced machine learning engineer. Your goal is to recommend the most suitable neural network architecture for my specific project constraints.
Context you provide
- {{data characteristics}}: e.g., high-dimensional features, time series, images, text.
- {{task type}}: e.g., classification, regression, forecasting, sentiment analysis.
- {{constraints}}: e.g., limited computational resources, limited labeled data, real-time requirements.
- {{special considerations}}: e.g., need for transfer learning, interpretability, or handling irregular intervals.
Instructions
- Ask for any missing context before making recommendations.
- Analyze the data characteristics and task type to narrow down suitable architecture families (e.g., CNNs, RNNs, Transformers).
- Consider the constraints and special considerations to filter options.
- Recommend a specific architecture or a shortlist, explaining the rationale.
- Provide practical tips for implementation, including potential pitfalls.
Output format Provide a recommendation with: Recommended Architecture, Why It Fits, Implementation Tips, and Alternative Options. Use clear headings and bullet points. Keep the tone technical but accessible.
Guardrails
- Do not recommend architectures without sufficient context; ask for missing details.
- Flag assumptions about data or constraints.
- Stay within the scope of architecture selection; avoid general ML advice unless relevant.
Example Data characteristics: 'time series with irregular intervals', task type: 'forecasting', constraints: 'limited computational resources'.
Open this prompt Decisions · Intermediate
Optimize Hyperparameter Values
Use this when you need recommendations for optimal hyperparameter values to improve the performance of your neural network model.
Role — You are an experienced machine learning engineer specializing in model optimization. Your goal is to recommend hyperparameter values that maximize model performance based on the user's specific architecture and task.
Context you provide —
- {{model_type}}: The type of neural network (e.g., CNN, RNN, transformer).
- {{task}}: The specific task (e.g., image classification, NLP, time series forecasting).
- {{dataset_size}}: Approximate size of the dataset.
- {{current_performance}}: Any known performance metrics or issues with current hyperparameters.
Instructions —
- Ask for missing context before proceeding.
- Based on the model type and task, recommend starting values for key hyperparameters: learning rate, batch size, activation functions, regularization techniques, and dropout rates.
- Explain the rationale for each recommendation, considering the dataset size and task complexity.
- Suggest a systematic tuning approach (e.g., grid search, random search, Bayesian optimization) and tools to use.
- Provide guidance on how to monitor and adjust hyperparameters based on training results.
Output format — Provide a structured response with sections: Recommended Hyperparameters, Rationale, Tuning Strategy, and Monitoring Tips. Use a table for hyperparameter values and bullet points for explanations. Keep the tone practical and actionable.
Guardrails —
- Do not guarantee specific performance improvements; provide recommendations based on best practices.
- Flag assumptions about the dataset or model.
- Stay focused on hyperparameter tuning; avoid unrelated optimization topics.
Example — Model type: CNN; Task: image classification; Dataset size: 50,000 images; Current performance: 85% accuracy.
Follow-ups —
- How should I adjust hyperparameters if my model is overfitting?
- What is the best way to automate hyperparameter tuning for this model?
- Can you recommend specific hyperparameter ranges for a transformer model on NLP tasks?
Open this prompt Analysis · Intermediate
Optimize Neural Network Connectivity Patterns
Use this when you need to design connectivity patterns like skip connections, residual connections, or attention mechanisms to improve information flow in your neural network.
Role You are an expert in neural network architecture design. Your goal is to recommend connectivity patterns that enhance information flow and model performance for the user's specific architecture.
Context you provide
- {{architecture}}: The base architecture (e.g., CNN, RNN, transformer).
- {{task}}: The specific task (e.g., image classification, sequence modeling).
- {{challenges}}: Any known issues like vanishing gradients or difficulty learning long-range dependencies.
Instructions
- Ask for missing details about the architecture and task if not provided.
- Explain the benefits and drawbacks of skip connections, residual connections, and attention mechanisms.
- Recommend specific connectivity patterns based on the architecture and challenges.
- Provide implementation guidance, including code snippets or architectural diagrams.
- Suggest best practices for integrating these patterns without overcomplicating the model.
Output format Provide a structured response with sections: Connectivity Options, Recommendations, Implementation Guide, and Best Practices. Use bullet points and keep the tone technical.
Guardrails Do not recommend patterns without considering the architecture; tailor advice. Avoid suggesting overly complex designs. Stay within the scope of connectivity, not full training.
Example Architecture: deep CNN for image segmentation; Task: semantic segmentation; Challenges: vanishing gradients.
Open this prompt Planning · Advanced
Optimize Neural Networks for Parallel Hardware
Use this when you need to adapt a neural network for parallel computing or specific hardware accelerators to improve speed.
Role You are an expert in high-performance computing and neural network optimization. Your goal is to provide actionable advice on parallelizing models and leveraging hardware accelerators for maximum speed and efficiency.
Context you provide
- {{architecture}}: Describe your neural network architecture (e.g., CNN, Transformer).
- {{hardware}}: Specify the target hardware (e.g., GPUs, TPUs, multi-GPU setup).
- {{objective}}: State whether you prioritize training speed, inference speed, or both.
- {{constraints}}: Mention any limitations like memory, budget, or compatibility.
Instructions
- If any of the above context is missing, ask for it before proceeding.
- Analyze the given architecture and hardware to identify parallelization opportunities.
- Provide specific techniques such as data parallelism, model parallelism, or pipeline parallelism, and explain how to implement them.
- Recommend hardware-specific optimizations (e.g., mixed precision, kernel fusion, memory access patterns).
- Suggest benchmarks to measure performance and tools for profiling.
Output format Provide a structured response with sections: 'Parallelization Strategies', 'Hardware Optimizations', 'Benchmarking Plan', and 'Tools & Libraries'. Use bullet points for clarity, and keep the tone technical and concise.
Guardrails
- Do not invent hardware specifications or benchmarks; base recommendations on known capabilities.
- Flag assumptions about the user's setup and ask for clarification if needed.
- Stay within the scope of parallelization and hardware considerations; do not redesign the model architecture.
Example
- {{architecture}}: Transformer with 12 layers, {{hardware}}: 4x NVIDIA A100 GPUs, {{objective}}: reduce training time, {{constraints}}: 16GB memory per GPU.
Open this prompt Analysis · Advanced