Spectral-Basis-Adapter
1
license:apache-2.0
by
ysn-rfd
Other
OTHER
New
0 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
4. Training Workflowpython
model_id = "stabilityai/stable-diffusion-xl-base-1.0"
unet = UNet2DConditionModel.from_pretrained(model_id, subfolder="unet")
inject_sba_into_diffusers_unet(
unet,
rank=16, # Rank for low-rank adaptation
num_bases=4, # Number of spectral bases
inject_into_ffn=False,
inject_into_resnet=False # Disabled to save VRAM
)Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.