Skip to content

Not possible to use the same model as a judge and teacher #49

@cedricvidal

Description

@cedricvidal

steps to reproduce

  • run configure_models.py
  • select same model for two roles

Getting

ERROR: error executing step command 'provision': deployment failed: error deploying infrastructure: validating deployment to subscription:

Validation Error Details:
InvalidTemplate: Deployment template validation failed: 'The template variable 'roles' is not valid: The lambda expression parameter at index '1' of function 'toObject' returned a duplicate key 'openai-gpt-4'. Object keys must be strings that are case-insensitively unique. Please see https://aka.ms/arm-functions for usage details.. Please see https://aka.ms/arm-functions for usage details.'.

The mapping from model name to role forces model names to only have one function:
https://github.com/Azure-Samples/raft-distillation-recipe/blob/main/infra/azd/main.bicep#L62-L78

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions