HiggsfieldMCP / tools /gpu_lora_import.md
StarpowerTechnology's picture
Upload 333 files
7f635f8 verified
|
Raw History Blame Contribute Delete
1.17 kB
Save a LoRA adapter from a Hugging Face or Civitai link into the user's GPU LoRAs, for gpu_generate. Charges nothing and rents nothing. Only public .safetensors files up to 2 GiB; fnf checks the file and its hash. Importing the same file again returns the existing LoRA (deduped). A LoRA only works with its base model; pass base_model when the source does not name one. Not for Soul ID characters.
```ts
mcp__Higgsfield__gpu_lora_import(args: {
// model_id from gpu_list_models the LoRA was trained for; needed only when the source does not say.
base_model?: string, // minLength: 1, maxLength: 200
// Display name; defaults to the file or Civitai model name.
name?: string, // minLength: 1, maxLength: 100
// https link to one .safetensors LoRA: a Hugging Face file (huggingface.co/<org>/<repo>/resolve/<rev>/<file>.safetensors) or repo holding exactly one, or a Civitai model page or download link.
url: string, // maxLength: 2048, format: "uri"
}): Promise<{ base_model_id: string | null, bytes: number, deduped: boolean, lora_id: string, name: string, next_step: string, sha256: string, status: string, trigger_word?: string | null, [key: string]: any }>;
```