POST
/
lora
curl --request POST \
  --url https://app.empower.dev/api/v1/lora \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "hf_revision": "c1b0db933684edbfe29a06fa47eb19cc48025e93",
  "hf_token": "hf_**********************************",
  "model_name": "IlyaGusev/saiga_mistral_7b_lora",
  "model_source": "HF_HUB",
  "name": "custom_mistral_7b_lora"
}'
{
  "active_deployment": {
    "base_model_name": "meta-llama/Llama-2-7b-chat-hf",
    "created_at": 1706652711,
    "creator": {
      "actor_type": "USER",
      "api_key": {
        "name": "<string>"
      },
      "user": {
        "email": "<string>",
        "first_name": "<string>",
        "last_name": "<string>",
        "profile_image_url": "<string>"
      }
    },
    "hf_revision": "c1b0db933684edbfe29a06fa47eb19cc48025e93",
    "model_name": "IlyaGusev/saiga_mistral_7b_lora",
    "model_source": "HF_HUB"
  },
  "name": "custom_mistral_7b_lora",
  "unit_price": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Lora is deployed successfully.

The response is of type object.