train-fasttext

Guide FastText supervised text classification training under accuracy and size constraints.

127|27|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill train-fasttext-lazyfroglol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: train-fasttext
Source: https://github.com/lazyFrogLOL/Harness_Engineering/tree/main/skills/train-fasttext
Command: npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill train-fasttext-lazyfroglol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Training FastText supervised text classification models under tight accuracy and model-size constraints, helping teams deploy efficient classifiers.

Core Features & Use Cases

  • Phase-based training guidance: quick exploration with small samples, systematic parameter search, and final full-training with evaluation.
  • Size-accuracy tradeoff guidance: tuning dim, bucket, minCount, wordNgrams, and other hyperparameters to meet constraints.
  • Quantization planning: evaluate when quantization is appropriate and how it affects performance and footprint.
  • Use Case: building a memory-efficient classifier for on-device or edge deployments on constrained hardware.

Quick Start

Run a FastText supervised training on your labeled dataset with tuned parameters to balance accuracy and model size.

Frequently Asked Questions about train-fasttext

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train a FastText model while balancing accuracy and model size?

To train FastText models with size constraints, you tune hyperparameters like dim, bucket, minCount, and wordNgrams. This process balances classification accuracy against the model footprint, ensuring the final output meets strict deployment limits for constrained hardware.

What is the best way to reduce FastText model size for edge deployment?

Reducing FastText model size for edge deployment involves optimizing hyperparameters such as dimension and bucket size, and evaluating quantization. Quantization compresses the model footprint significantly while carefully managing the tradeoff in text classification performance.

What is the best way to reduce FastText model size for on-device deployment?

Reducing FastText model size for on-device deployment involves optimizing hyperparameters such as dimension and bucket size, and evaluating quantization. Quantization compresses the model footprint significantly while carefully managing the tradeoff in text classification performance.

How does quantization affect FastText text classification performance?

Quantization affects FastText text classification by shrinking the model footprint for constrained hardware, but introduces a tradeoff with accuracy. You must evaluate this impact during training to ensure the quantized model still meets your required performance criteria.

Which FastText hyperparameters should I tune to optimize text classification?

To optimize FastText text classification, you should tune hyperparameters including dim, epoch, lr, wordNgrams, minCount, bucket, minn, maxn, and loss. Systematically searching these parameters helps identify the optimal balance between model accuracy and size constraints.

Can I use FastText for building a memory-efficient classifier on constrained hardware?

Yes, you can use FastText for building memory-efficient classifiers on constrained hardware. By applying phase-based training guidance, systematic parameter search, and quantization decisions, you can deploy accurate text classification models within strict memory limits.