NLP framework for transfer learning with BERT & Co
Top 25.0% on sourcepulse
FARM (Framework for Adapting Representation Models) is a Python library designed for simplifying transfer learning with transformer-based language models, particularly for Natural Language Processing (NLP) tasks like question answering, text classification, and named entity recognition. It targets developers and researchers seeking efficient model fine-tuning, parallelized preprocessing, and production-ready deployment.
How It Works
FARM employs a modular architecture, separating language models from prediction heads. This allows for easy swapping of models or combining multiple heads for multitask learning. It leverages HuggingFace's Transformers library and offers features like Automatic Mixed Precision (AMP) for faster training and parallelized data preprocessing for significant speedups. The framework also integrates experiment tracking via MLflow and provides tools for caching, checkpointing, and deployment.
Quick Start & Requirements
pip install farm
git clone https://github.com/deepset-ai/FARM.git && cd FARM && pip install -r requirements.txt && pip install --editable .
Highlighted Details
Maintenance & Community
The core modeling parts of FARM have been migrated to the deepset-ai/haystack
repository, and this FARM repo is no longer actively maintained. Development and support have moved to Haystack.
Licensing & Compatibility
Limitations & Caveats
This repository is not actively maintained, with all development shifted to the deepset-ai/haystack
project. Users seeking new features or bug fixes should refer to the Haystack repository.
1 year ago
Inactive