Skip to content
SupportLogin

List available base models for training

autoscientist.list_models() -> AutoscientistListModelsResponse
GET/api/v1/autoscientist/models

Returns the set of base models that can be used as the model field when creating an AutoScientist run.

ReturnsExpand Collapse
class AutoscientistListModelsResponse:
models: List[Model]
id: str

Identifier to pass as model when creating a job.

display_name: str

Human-readable model name.

model_size: Optional[object]

Parameter count label (e.g. "8B", "70B").

context_length: Optional[object]

Maximum context window in tokens.

methods: List[str]

Training methods supported (e.g. ["sft", "dpo"]).

training_types: List[str]

Training types supported (e.g. ["lora", "full"]).

List available base models for training

import os
from adaption import Adaption

client = Adaption(
    api_key=os.environ.get("ADAPTION_API_KEY"),  # This is the default and can be omitted
)
response = client.autoscientist.list_models()
print(response.models)
{
  "models": [
    {
      "id": "id",
      "display_name": "display_name",
      "model_size": {},
      "context_length": {},
      "methods": [
        "string"
      ],
      "training_types": [
        "string"
      ]
    }
  ]
}
Returns Examples
{
  "models": [
    {
      "id": "id",
      "display_name": "display_name",
      "model_size": {},
      "context_length": {},
      "methods": [
        "string"
      ],
      "training_types": [
        "string"
      ]
    }
  ]
}