unityaisolutions/adapter-merger
Merges a Lora adapter back with its base model.
Public
1
run
Run unityaisolutions/adapter-merger with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| lora_adapter |
string
|
Path to the uploaded LoRA adapter (e.g., adapter_model.bin or a directory)
|
|
| base_model_name |
string
|
HuggingFace model ID of the original base model (e.g., 'meta-llama/Llama-2-7b-hf')
|
|
| use_unsloth |
boolean
|
False
|
Whether to use Unsloth for optimized merging
|
{
"type": "object",
"title": "Input",
"required": [
"lora_adapter",
"base_model_name"
],
"properties": {
"use_unsloth": {
"type": "boolean",
"title": "Use Unsloth",
"default": false,
"x-order": 2,
"description": "Whether to use Unsloth for optimized merging"
},
"lora_adapter": {
"type": "string",
"title": "Lora Adapter",
"format": "uri",
"x-order": 0,
"description": "Path to the uploaded LoRA adapter (e.g., adapter_model.bin or a directory)"
},
"base_model_name": {
"type": "string",
"title": "Base Model Name",
"x-order": 1,
"description": "HuggingFace model ID of the original base model (e.g., 'meta-llama/Llama-2-7b-hf')"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}