Models

Export to Hugging Face

Export the aligned model's weights to the given Hugging Face repository.

Path Parameters:

  • model_id: Unique identifier of the aligned model

Request Body:

  • hf_repo (optional): Target repository, e.g. org/model-name. Defaults to the token's own namespace plus the model id.
  • visibility: private or public
  • token: Hugging Face access token

Runs in the background. Poll GET /models/{model_id}/export-hf/status for progress. Export is open for base models within the supported size range. Other sizes need an Enterprise licence and answer with status FAILED and a message.

post/api/v3/models/{model_id}/export-hf

Request

  • Base URL
    https://api.nugen.in
  • Auth
    HTTP bearer

Path parameters

model_idstring required

ID of the model, as listed by GET /models/aligned or GET /models/base

Request body

hf_repostring nullable

Target repository, e.g. org/model-name. Defaults to the token's own namespace plus the model id.

visibility'private' | 'public'

private or public

tokenstring required

Hugging Face access token. Used only to perform the export; never logged or stored.

Response

Acknowledges the export request for the aligned model.

export_idstring required

Identifier of the export request. Poll status with it.

model_idstring required

Aligned model the export was requested for.

status'QUEUED' | 'PROCESSING' | 'READY' | 'FAILED' | 'STOPPED' required

Lifecycle status of a resource that runs asynchronously. Stored as is and returned as is, with no translation in between.

  • QUEUED: accepted and waiting for its workflow to start
  • PROCESSING: running
  • READY: finished successfully
  • FAILED: failed at any stage
  • STOPPED: stopped by the user before completion
messagestring nullable

Why the export was refused, when the status is FAILED.

Changes

No recorded changes to this operation across all 1 revision of this API.