train-fasttext
Installation
SKILL.md
Train FastText
Overview
This skill provides guidance for training FastText text classification models, particularly when facing dual constraints like model size limits and accuracy requirements. It covers systematic experimentation strategies, hyperparameter tuning approaches, and common pitfalls to avoid.
Constraint Prioritization Strategy
When facing competing constraints (e.g., model size < X MB AND accuracy >= Y%), establish a clear strategy:
- Identify which constraint is harder to satisfy - Accuracy is typically harder to recover after compression
- First achieve the accuracy target with an unconstrained model
- Then apply size reduction techniques (quantization, dimension reduction, pruning)
- Track the accuracy-size trade-off at each compression step