Pular para o conteúdo principal

Não há mais suporte para esse navegador.

Atualize o Microsoft Edge para aproveitar os recursos, o suporte técnico e as atualizações de segurança mais recentes.

Baixar o Microsoft Edge Mais informações sobre o Internet Explorer e o Microsoft Edge
microsoft-foundry.rest.security.o-auth2-auth

FineTuningSessions

Create a fine-tuning session

POST /fine_tuning/sessions

Create a new fine-tuning session and allocate it to a GPU engine. The response contains a single session identifier and a request identifier to poll for session initialization.

Parâmetros do cabeçalho

Foundry-Features enum exigido

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

FineTuningSessions=V1Preview

Parâmetros de consulta

api-version string exigido

The API version to use for this operation.

Corpo da solicitação

Configuration of the fine-tuning session to create.

Content-Type: application/json
type string | enum exigido

Fine-tuning session type.

Qualquer uma das seguintes opções:
string
enum
training
base_model string exigido

Base model to use for the new training session.

lora_config SessionFineTuning.LoRAConfig exigido

LoRA adapter configuration. If optional settings are omitted, the service applies the defaults described below.

rank integer exigido

Number of LoRA rank dimensions required by the service.

alpha number

LoRA scaling factor (effective scale = alpha / rank). If omitted, the service defaults to 32.0.

seed integer

Seed for LoRA weight initialisation. If omitted, the service picks a random seed and echoes it back.

freeze_vision_tower boolean

Whether to freeze the vision tower during training. If omitted, the service defaults to true.

freeze_multi_modal_projector boolean

Whether to freeze the multimodal projector during training. If omitted, the service defaults to true.

user_metadata object | null

Caller-provided metadata whose values can be any JSON value.

from_checkpoint SessionFineTuning.FineTuningFromCheckpoint | null

Training checkpoint to load while initializing the session, when provided.

source_session_id string exigido

Identifier of the session containing the source training checkpoint.

checkpoint_id string exigido

Identifier of the training checkpoint within the source session.

training_type string | enum

Training tiers available for fine-tuning sessions.

Qualquer uma das seguintes opções:
string
enum
GlobalStandardDatazoneStandardDeveloperTier

Respostas

The request has succeeded.

Corpo

Content-Type: application/json
session_id string exigido

Identifier of the newly created fine-tuning session.

type string | enum exigido

Fine-tuning session type.

Qualquer uma das seguintes opções:
string
enum
training
base_model string exigido

Base model used by the session.

lora_config SessionFineTuning.LoRAConfig exigido

LoRA adapter configuration. If optional settings are omitted, the service applies the defaults described below.

rank integer exigido

Number of LoRA rank dimensions required by the service.

alpha number

LoRA scaling factor (effective scale = alpha / rank). If omitted, the service defaults to 32.0.

seed integer

Seed for LoRA weight initialisation. If omitted, the service picks a random seed and echoes it back.

freeze_vision_tower boolean

Whether to freeze the vision tower during training. If omitted, the service defaults to true.

freeze_multi_modal_projector boolean

Whether to freeze the multimodal projector during training. If omitted, the service defaults to true.

status string | enum exigido

Lifecycle status of a fine-tuning session. Uses the canonical fine-tuning job vocabulary for steady states and includes the initial created state returned during session creation.

Qualquer uma das seguintes opções:
string
enum
createdqueuedrunningsucceededfailed
request_id string exigido

Request identifier used to poll for session initialization.

info_message string | null

Informational message associated with session creation, when available.

warning_message string | null

Warning associated with session creation, when available.

user_metadata object | null

Caller-provided metadata associated with the session.

Client error

Cabeçalhos

x-ms-error-code string

String error code indicating what went wrong.

Corpo

Content-Type: application/json
error OpenAI.Error exigido
code string | null exigido
message string exigido
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string exigido

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Server error

Cabeçalhos

x-ms-error-code string

String error code indicating what went wrong.

Corpo

Content-Type: application/json
error OpenAI.Error exigido
code string | null exigido
message string exigido
param string | null
type string
misalignment OpenAI.MisalignmentErrorDetailsResource
review_target string | null
error_type string | enum
Qualquer uma das seguintes opções:
string
enum
potentially_unintended_data_transferpotentially_unintended_data_accesspotentially_unintended_destructive_activityother
detailed_explanation string

The public explanation for this block.

steer OpenAI._MisalignmentSteer
message string exigido

The public continuation instruction.

details OpenAI.Error[]

Additional errors that contributed to this failure.

additionalInfo object

Additional structured information about the failure.

debugInfo object

Diagnostic information supplied by the service for troubleshooting.

Solicitar

POST /fine_tuning/sessions HTTP/1.1

Resposta

Status: 200
Content-Type: application/json
Status: 4XX
Content-Type: application/json
Status: 5XX
Content-Type: application/json
pt-br
Suas escolhas de privacidade
  • Aviso de isenção de responsabilidade sobre a IA
  • Versões anteriores
  • Blog
  • Contribuir
  • Privacidade
  • Privacidade da Integridade do Consumidor
  • Termos de Uso
  • Marcas Comerciais
  • © Microsoft 2026