Large Language Models
Hugging Face
This documentation describes the integration of MindsDB with Hugging Face, a company that develops computer tools for building applications using machine learning. The integration allows for the deployment of Hugging Face models within MindsDB, providing the models with access to data from various data sources.
Prerequisites
Before proceeding, ensure the following prerequisites are met:
- Install MindsDB locally via Docker or use MindsDB Cloud.
- To use Hugging Face within MindsDB, install the required dependencies following this instruction.
Setup
Create an AI engine from the Hugging Face handler.
Create a model using huggingface_engine
as an engine.
Usage
The following usage examples utilize huggingface_engine
to create a model with the CREATE MODEL
statement.
Create a model to classify input text as spam or ham.
Query the model to get predictions.
Here is the output:
Next Steps
Follow this link to see more use case examples.