Connect a model

Scorable subscription provides a set of modelsarrow-up-right you can use in your Judges and proxy. You are not limited by that selection, though. Integrating with cloud providers' models or connecting to locally hosted models is possible via UI, through the SDKarrow-up-right or the REST API.

Huggingface example

To use an HF inference endpointarrow-up-right, add the model endpoint via the SDK or through the REST API

curl --request POST \
     --url https://api.scorable.ai/v1/models/ \
     --header 'Authorization: Api-Key $SCORABLE_API_KEY' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
               {
                 "name": "huggingface/meta-llama/Meta-Llama-3-8B",
                 "url": "https://my-endpoint.huggingface.cloud",
                 "default_key": "$HF_KEY"
               }
            '

After adding the model, you can use it like any other model in your evaluators.

skill = client.evaluators.create(
    name="My model test", prompt="Hello, my model!", model="huggingface/meta-llama/Meta-Llama-3-8B"
)

Last updated