For each no-code language model, Foundry provides a default model adapter. This default model adapter provides reasonable default parameters and structure for interacting with the language models. The default language model adapters listed below will correctly route to CPU and GPU devices, depending on availability in the deployment infrastructure.
The model adapter currently in use is viewable on the model submission page in the Modeling Objectives application.
This model adapter adds support for sequence-to-sequence language models ↗. The adapter generates text based on the provided input text.
Example: The expected input text and its structure depends on the selected model. We highly recommend reading the model details to ensure correct prompt engineering. The flan-t5-large ↗ model, for example, can perform a wide variety of prompts from translation to summarization to question answering.
This model adapter adds support for Named Entity Recognition pipelines ↗. The model adapter extracts the entities within the text and returns them in a list.
Example: When sending the text “My name is Max and I live in Germany” to the model through a sandbox or a live deployment, the model recognizes two entities: Max and Germany.
5
means the recognized entity is the fifth token in the input text).This model adapter calculates the embedding for a given text based on the model's attention mask ↗. This adapter does "mean pooling" and normalization, which aligns with the sentenced-transformers ↗ defaults.
Example:
This model adapter classifies the input text for a predefined set of classes. Common examples for text classification are sentiment or language detection.
Example:
This model adapter classifies the input text based on a list of classes that are provided at prediction time. This behavior allows the model adapter to classify texts without the need for fine-tuning a language model to a specific use case.
Example: When sending the text “I love to develop new language models” and the candidate labels “Travel”, “Sports”, “Work”, and “Entertainment”, the model will score the labels and rank "Work" as the most likely classification.