Introduction
Big AI models need lots of power and time, which can be slow and costly. New trends focus on making AI smaller and smarter so it can work quickly on devices nearby, not just in big data centers.
Jump into concepts and practice - no test required
Imagine carrying a big heavy toolbox versus a small, well-organized one with just the tools you need. Also, think of a security guard who watches your home directly instead of calling a distant office for every decision.
┌───────────────┐ ┌───────────────┐
│ Big AI Model │──────▶│ Cloud Server │
└───────────────┘ └───────────────┘
▲ ▲
│ │
┌───────────────┐ ┌───────────────┐
│ Smaller Model │──────▶│ Edge Device │
│ (Lightweight) │ │ (Phone, IoT) │
└───────────────┘ └───────────────┘predict runs inference, which is typical for edge AI. Training or uploading is not common on edge devices.class SmallModel:
def predict(self, x):
return x * 2
model = SmallModel()
result = model.predict(5)
print(result)x by 2 and returns it.result is 10.input_data = [1, 2, 3]
model = load_model('small_model.tflite')
result = model.train(input_data)
print(result)train on the model is incorrect for edge AI; it should be predict.