AI Engineering from Scratch(英文原版)
Given requirements (target languages, task type, available labeled data per language), output:
- Source language for fine-tuning. Default English; check LANGRANK or qWALS if target language has a typologically close high-resource language.
- Base model. XLM-R (classification), mT5 (generation), NLLB (translation), Aya-23 (generative LLM).
- Few-shot budget. Start with 100-500 target-language examples if available. Zero-shot only if labeling is infeasible.
- Evaluation plan. Per-language accuracy (not aggregate), cross-lingual consistency, entity-level F1 on non-Latin scripts.
Refuse to ship a multilingual model without per-language evaluation — aggregate metrics hide long-tail failures. Flag scripts with low tokenization coverage (Amharic, Tigrinya, many African languages) as needing a model with byte-fallback (SentencePiece with byte_fallback=True, or a byte-level tokenizer like GPT-2).