> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# SFT 트레이닝 작업 생성

> 새 SFT(지도 파인튜닝) 트레이닝 작업을 생성합니다.



## OpenAPI

````yaml /ko/serverless-training/api-reference/openapi.json post /v1/preview/sft-training-jobs
openapi: 3.1.0
info:
  title: Serverless Training
  version: 1.0.0
servers: []
security: []
paths:
  /v1/preview/sft-training-jobs:
    post:
      tags:
        - training-jobs
      summary: SFT 트레이닝 작업 생성
      description: 새 SFT(지도 파인튜닝) 트레이닝 작업을 생성합니다.
      operationId: Create_SFT_Training_Job_v1_preview_sft_training_jobs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSFTTrainingJob'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrainingJobResponse'
          description: 성공 응답
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: 검증 오류
      security:
        - HTTPBearer: []
components:
  schemas:
    CreateSFTTrainingJob:
      description: >-
        새 SFT(Supervised Fine-Tuning) TrainingJob을 생성하기 위한 스키마입니다.


        클라이언트는 트레이닝 데이터(trajectories.jsonl 및 metadata.json)를 W&B Artifacts에
        업로드하고 artifact URL을 제공해야 합니다.
      properties:
        config:
          anyOf:
            - $ref: '#/components/schemas/SFTTrainingConfig'
            - type: 'null'
        experimental_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Experimental Config
        model_id:
          format: uuid
          title: Model Id
          type: string
        training_data_url:
          description: >-
            트레이닝 데이터용 W&B artifact 경로(예:
            'wandb-artifact:///entity/project/artifact-name:version')
          title: Training Data Url
          type: string
      required:
        - model_id
        - training_data_url
      title: CreateSFTTrainingJob
      type: object
    TrainingJobResponse:
      description: TrainingJob 응답 스키마.
      properties:
        id:
          format: uuid
          title: Id
          type: string
      required:
        - id
      title: TrainingJobResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    SFTTrainingConfig:
      description: SFT 트레이닝 설정 스키마입니다.
      properties:
        batch_size:
          anyOf:
            - type: integer
            - const: auto
              type: string
            - type: 'null'
          title: Batch Size
        learning_rate:
          anyOf:
            - type: number
            - items:
                type: number
              type: array
            - type: 'null'
          title: Learning Rate
        metric_logging:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metric Logging
      title: SFTTrainingConfig
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http

````