How to stop the model fingerprint from changing

Mason 45 Reputation points
2025-10-06T20:15:56.94+00:00

How can I stop the fingerprint of my deployed base models I have deployed in azure from changing automatically? It has been changing about once a month. There is a "Model version upgrade policy" option when deploying a base model, but I think that is for the model version (i.e. 2021-08-11, etc.).

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
{count} votes

1 answer

Sort by: Most helpful
  1. Aryan Parashar 1,850 Reputation points Microsoft External Staff Moderator
    2025-10-07T08:18:36.24+00:00

    Hi Mason,

    Even if you don’t change your model, the system_fingerprint can still change because it reflects the whole environment that runs your model, not just the model itself. The computers, software, and safety systems behind the scenes are sometimes updated or moved around to keep things fast, safe, and reliable. These small background changes—like better hardware, new safety checks, or updated tools—can make the system’s “fingerprint” look different, even though your model and its settings stay exactly the same.

    You can minimize changes by:

    Make sure you have selected Opt out of automatic model version upgrades as shown below: Go to Azure AI Foundry, select Models + endpoints, and select your model, then click on Edit, click on Customize, and select Opt out of automatic model version upgrades as shown below:

    User's image

    Select the Opt out of automatic model version upgrades:

    User's image

    Below is the python code to check the model_fingerprint:

    from openai import AzureOpenAI
    from azure.identity import DefaultAzureCredential, get_bearer_token_provider
    
    endpoint = "<MODEL-ENDPOINT>"
    deployment = "<DEPLOYMENT-NAME>"
    api_version = "<API-VERSION>"
    
    token_provider = get_bearer_token_provider(
        DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"
    )
    
    client = AzureOpenAI(
        api_version=api_version,
        azure_endpoint=endpoint,
        azure_ad_token_provider=token_provider,
    )
    
    response = client.chat.completions.create(
        model=deployment,
        messages=[
            {"role": "user", "content": "test"},
        ],
        seed=42,
        max_completion_tokens=5,
    )
    
    print(response.system_fingerprint)
    
    

    Additionally, same responses are not guaranteed even with same fingerprint and seed_parameter. Here is the supported documentation:
    https://free.blessedness.top/en-us/azure/ai-foundry/openai/how-to/reproducible-output?tabs=pyton#output-1

    Feel free to accept this as an answer.

    Thankyou for reaching out to the Microsoft QNA Portal.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.