Configure GitLab to access GitLab Duo Self-Hosted
- Tier: Ultimate with GitLab Duo Enterprise - Start a GitLab Duo Enterprise trial on a paid Ultimate subscription
- Offering: GitLab Self-Managed
Prerequisites:
To configure your GitLab instance to access the available self-hosted models in your infrastructure:
- Confirm that a fully self-hosted configuration is appropriate for your use case.
- Configure your GitLab instance to access the AI gateway.
- Configure the self-hosted model.
- Configure the GitLab Duo features to use your self-hosted model.
Configure your GitLab instance to access the AI gateway
- On the left sidebar, at the bottom, select Admin.
- Select GitLab Duo.
- In the GitLab Duo section, select Change configuration.
- Under Local AI Gateway URL, enter your AI Gateway URL.
- Select Save changes.
Configure the self-hosted model
Prerequisites:
- You must be an administrator.
- You must have an Ultimate license.
- You must have a Duo Enterprise license add-on.
To configure a self-hosted model:
On the left sidebar, at the bottom, select Admin.
Select Self-hosted models.
- If the Self-hosted models menu item is not available, synchronize your
subscription after purchase:
- On the left sidebar, select Subscription.
- In Subscription details, to the right of Last sync, select synchronize subscription ( ).
- If the Self-hosted models menu item is not available, synchronize your
subscription after purchase:
Select Add self-hosted model.
Complete the fields:
Deployment name: Enter a name to uniquely identify the model deployment, for example,
Mixtral-8x7B-it-v0.1 on GCP
.Model family: Select the model family the deployment belongs to. Only GitLab-approved models are in this list.
Endpoint: Enter the URL where the model is hosted.
- For more information about configuring the endpoint for models deployed through vLLM, see the vLLM documentation.
API key: Optional. Add an API key if you need one to access the model.
Model identifier: This is a required field if your deployment method is vLLM, Bedrock or Azure. The value of this field is based on your deployment method, and should match the following structure:
Deployment method Format Example vLLM custom_openai/<name of the model served through vLLM>
custom_openai/Mixtral-8x7B-Instruct-v0.1
Bedrock bedrock/<model ID of the model>
bedrock/mistral.mixtral-8x7b-instruct-v0:1
Azure OpenAI azure/<model ID of the model>
azure/gpt-35-turbo
Others The field is optional For more information about configuring the model identifier for models deployed through vLLM, see the vLLM documentation.
Select Create self-hosted model.
Configure self-hosted beta models
Prerequisites:
- You must be an administrator.
- You must have an Ultimate license.
- You must have a Duo Enterprise license add-on.
To enable self-hosted beta models:
- On the left sidebar, at the bottom, select Admin.
- Select GitLab Duo.
- In the GitLab Duo section, select Change configuration.
- Under Self-hosted AI models, select Use beta self-hosted models features.
- Select Save changes.
Turning on beta self-hosted models features also accepts the GitLab Testing Agreement.
For more information, see the list of available beta models under evaluation.
Configure GitLab Duo features to use self-hosted models
Prerequisites:
- You must be an administrator.
- You must have an Ultimate license.
- You must have a Duo Enterprise license add-on.
View configured features
- On the left sidebar, at the bottom, select Admin.
- Select Self-hosted models.
- If the Self-hosted models menu item is not available, synchronize your
subscription after purchase:
- On the left sidebar, select Subscription.
- In Subscription details, to the right of Last sync, select synchronize subscription ( ).
- If the Self-hosted models menu item is not available, synchronize your
subscription after purchase:
- Select the AI-powered features tab.
Configure the feature to use a self-hosted model
Configure the GitLab Duo feature to send queries to the configured self-hosted model:
- On the left sidebar, at the bottom, select Admin.
- Select Self-hosted models.
- Select the AI-powered features tab.
- For the feature you want to configure, from the dropdown list, choose the self-hosted model you want to use. For example,
Mistral
.
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support