daft-udf-tuning
Installation
SKILL.md
Daft UDF Tuning
Optimize User-Defined Functions for performance.
UDF Types
| Type | Decorator | Use Case |
|---|---|---|
| Stateless | @daft.func |
Simple transforms. Use async for I/O-bound tasks. |
| Stateful | @daft.cls |
Expensive init (e.g., loading models). Supports gpus=N. |
| Batch | @daft.func.batch |
Vectorized CPU/GPU ops (NumPy/PyTorch). Faster. |
Quick Recipes
1. Async I/O (Web APIs)
Related skills