0
0
Prompt Engineering / GenAIml~20 mins

Emerging trends (smaller models, edge AI) in Prompt Engineering / GenAI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Edge AI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why are smaller AI models important for edge devices?

Edge devices like smartphones and IoT sensors have limited power and memory. Why is using smaller AI models on these devices beneficial?

ASmaller models require constant internet connection to work properly on edge devices.
BSmaller models use less memory and power, making them faster and more efficient on edge devices.
CSmaller models always provide higher accuracy than larger models.
DSmaller models increase the need for cloud computing, reducing edge device independence.
Attempts:
2 left
💡 Hint

Think about the limitations of battery and storage on small devices.

Predict Output
intermediate
1:30remaining
Output of model size comparison code

Given the following Python code comparing two model sizes, what is the printed output?

Prompt Engineering / GenAI
model_a_size = 25000000  # 25 million parameters
model_b_size = 5000000   # 5 million parameters

if model_b_size < model_a_size:
    print(f"Model B is smaller by {model_a_size - model_b_size} parameters")
else:
    print("Model A is smaller or equal in size")
AModel B is smaller by 20000000 parameters
BModel A is smaller or equal in size
CModel B is smaller by 30000000 parameters
DSyntaxError due to missing colon
Attempts:
2 left
💡 Hint

Check which model size is bigger and subtract accordingly.

Model Choice
advanced
2:00remaining
Best model type for real-time edge AI

You want to deploy an AI model on a wearable device that must respond instantly and use very little battery. Which model type is best?

AA large transformer model with billions of parameters
BA cloud-based model accessed via internet
CA deep recurrent neural network with many layers
DA small convolutional neural network optimized for mobile
Attempts:
2 left
💡 Hint

Consider model size and power use for wearables.

Hyperparameter
advanced
2:00remaining
Which hyperparameter tuning helps reduce model size for edge AI?

To make a model smaller and faster for edge deployment, which hyperparameter adjustment is most effective?

AUsing a higher learning rate
BIncreasing the batch size during training
CApplying pruning to remove less important weights
DIncreasing the number of layers
Attempts:
2 left
💡 Hint

Think about removing parts of the model that are not needed.

Metrics
expert
2:30remaining
Evaluating edge AI model trade-offs

You have two edge AI models:
Model X: 90% accuracy, 50ms latency, 10MB size
Model Y: 85% accuracy, 20ms latency, 5MB size

Which metric best captures the trade-off between accuracy and latency for edge use?

AAccuracy divided by latency
BLatency alone
CAccuracy alone
DModel size alone
Attempts:
2 left
💡 Hint

Think about a metric that balances speed and correctness.