File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -232,8 +232,8 @@ paths:
232232 deprecated : false
233233 post :
234234 tags : ["Models"]
235- summary : Upload a custom model
236- description : Upload a custom model from Hugging Face or S3
235+ summary : Upload a custom model or adapter
236+ description : Upload a custom model or adapter from Hugging Face or S3
237237 operationId : uploadModel
238238 requestBody :
239239 required : true
@@ -253,6 +253,14 @@ paths:
253253 type : string
254254 description : The source location of the model (Hugging Face repo or S3 path)
255255 example : " unsloth/Qwen2.5-72B-Instruct"
256+ model_type :
257+ type : string
258+ description : Whether the model is a full model or an adapter
259+ default : " model"
260+ enum :
261+ - model
262+ - adapter
263+ example : " model"
256264 hf_token :
257265 type : string
258266 description : Hugging Face token (if uploading from Hugging Face)
@@ -261,9 +269,17 @@ paths:
261269 type : string
262270 description : A description of your model
263271 example : " Finetuned Qwen2.5-72B-Instruct by Unsloth"
272+ base_model :
273+ type : string
274+ description : The base model to use for an adapter if setting it to run against a serverless pool. Only used for model_type `adapter`.
275+ example : " Qwen/Qwen2.5-72B-Instruct"
276+ lora_model :
277+ type : string
278+ description : The lora pool to use for an adapter if setting it to run against, say, a dedicated pool. Only used for model_type `adapter`.
279+ example : " my_username/Qwen2.5-72B-Instruct-lora"
264280 responses :
265281 " 200 " :
266- description : Model upload job created successfully
282+ description : Model / adapter upload job created successfully
267283 content :
268284 application/json :
269285 schema :
You can’t perform that action at this time.
0 commit comments