LoRA: Difference between revisions

From CTPwiki

No edit summary
No edit summary
Line 3: Line 3:
On his personal page on the CivitAI website, the user BigHeadTF promotes his recent creation, a small model called The Incredible Hulk (2008). Compared to earlier movies of the Hulk, the 2008 version shows a tormented Bruce Banner who transforms into a green creature with "[https://civitai.com/models/1266100/the-incredible-hulk-2008 detailed musculature, dark green skin, and an almost tragic sense of isolation]". The model helps generate characters resembling this iconic version of Hulk in new images.  
On his personal page on the CivitAI website, the user BigHeadTF promotes his recent creation, a small model called The Incredible Hulk (2008). Compared to earlier movies of the Hulk, the 2008 version shows a tormented Bruce Banner who transforms into a green creature with "[https://civitai.com/models/1266100/the-incredible-hulk-2008 detailed musculature, dark green skin, and an almost tragic sense of isolation]". The model helps generate characters resembling this iconic version of Hulk in new images.  


To demonstrate the capabilities of his model, BigHeadTF has selected a few pictures of his own.  
To demonstrate the capabilities of his model, BigHeadTF has selected a few pictures of his own. Hulk is in turn depicted as cajoling a teddy bear or crossdressing as Shrek's Princess Fiona. The images play with the contrast between Hulk's overblown virility and childlike or female connotations. The images demonstrate the model's ability to expand the hero's universe into other registers or fictional worlds. The Incredible Hulk (2008) doesn't just reproduce faithfully existing images of Hulk, it also opens new avenues for creation and combinations for the green hero. 


To generate an image, one needs a model suited for the kind of picture they want. The best known such as Stable Diffusion or Flux are rather general-purpose. These 'base' or 'foundation' models can be used to generate images in many styles and can handle a huge variety of prompts. But they may show limitations when a user wants a specific output such as a particular genre of manga, a style that emulates black and white film noir or when an improvement is needed for some details (specific hands positions, etc) or to produce legible text. This is where LoRAs come in. A LoRA  is a smaller model created with a technique that makes it possible to improve the performance of a base model on a given task.  
This blend of pop and remix culture that strives on the blurring of boundaries between genres infuses a large number of creations made with generative AI. However what distinguishes BigHeadTF is that he doesn't share only images but the software component that makes his images distinctive. The model he distributes on his page is called a LoRA. The most famous models such as Stable Diffusion or Flux are rather general-purpose. These 'base' or 'foundation' models can be used to generate images in many styles and can handle a huge variety of prompts. But they may show limitations when a user wants a specific output such as a particular genre of manga, a style that emulates black and white film noir or when an improvement is needed for some details (specific hands positions, etc) or to produce legible text. This is where LoRAs come in. A LoRA  is a smaller model created with a technique that makes it possible to improve the performance of a base model on a given task.  


== What is a LoRA? ==
== What is a LoRA? ==

Revision as of 16:05, 1 July 2025

https://civitai.com/models/1266100/the-incredible-hulk-2008, LoRA The Incredible Hulk (2008)

On his personal page on the CivitAI website, the user BigHeadTF promotes his recent creation, a small model called The Incredible Hulk (2008). Compared to earlier movies of the Hulk, the 2008 version shows a tormented Bruce Banner who transforms into a green creature with "detailed musculature, dark green skin, and an almost tragic sense of isolation". The model helps generate characters resembling this iconic version of Hulk in new images.

To demonstrate the capabilities of his model, BigHeadTF has selected a few pictures of his own. Hulk is in turn depicted as cajoling a teddy bear or crossdressing as Shrek's Princess Fiona. The images play with the contrast between Hulk's overblown virility and childlike or female connotations. The images demonstrate the model's ability to expand the hero's universe into other registers or fictional worlds. The Incredible Hulk (2008) doesn't just reproduce faithfully existing images of Hulk, it also opens new avenues for creation and combinations for the green hero.

This blend of pop and remix culture that strives on the blurring of boundaries between genres infuses a large number of creations made with generative AI. However what distinguishes BigHeadTF is that he doesn't share only images but the software component that makes his images distinctive. The model he distributes on his page is called a LoRA. The most famous models such as Stable Diffusion or Flux are rather general-purpose. These 'base' or 'foundation' models can be used to generate images in many styles and can handle a huge variety of prompts. But they may show limitations when a user wants a specific output such as a particular genre of manga, a style that emulates black and white film noir or when an improvement is needed for some details (specific hands positions, etc) or to produce legible text. This is where LoRAs come in. A LoRA is a smaller model created with a technique that makes it possible to improve the performance of a base model on a given task.

What is a LoRA?

Initially developed for LLMLow-Rank Adaptation of Large Language Models. Technically the LoRA freezes an existing model and insert a smaller number of weights to adjust the model's behaviour to a particular need. Instead of a full retraining of the model, LoRAs only require the training of the weights that have been inserted. Therefore LoRAs are quite lightweight and able to leverage the capabilities of larger models. Users equipped with a consumer-grade GPU can train their own LoRAs reasonably fast (on a mac M3, a LoRA can be produced in 30 minutes). LoRAs are quite popular within communities of amateurs and developers alike. At the time of writing, the AI platform Hugging Face lists 71,312 LoRAs.

What is the network that sustains this object?

How does it evolve through time?

  • From the Microsoft lab to platforms and informed amateurs, diversification of offer
  • Expansion of the image generation pipeline

How does it create value? Or decrease / affect value?

Rewards for the best creative use of a LoRA, https://civitai.com/bounties/8690/5k-crazywhatever

What is its place/role in techno cultural strategies?

  • Curation, classification, defining styles
  • Demystify the idea that you can generate anything
  • Exploiting the bias, reversing the problem, work with it
  • Conceptual labour
  • Sharing
  • Visibility in communities
  • Needs are defined bottom-up

How does it relate to autonomous infrastructure?

  • Regain control over the training, re-appropriation of the model via fine-tuning
  • (Partial) Decentralization of model production
  • The question of the means of production
  • Ambivalence

Images

Two images generated with the prompt "Student apartment in Budapest with mezzanine". Image on the right with a LoRA
Two images generated with the prompt "Student apartment in Budapest with mezzanine". Image on the right has been generated with a LoRA trained with images of mezzanines
The LoRA decomposition as explained by a coder
The LoRA decomposition as explained by a coder
Screengrab of the LoRA page on the civit.ai platform
Screengrab of the LoRA page on the civit.ai platform
LoRA: How to Adapt LLMs Efficiently and Without Latency, By Elisa Terumi, https://exploringartificialintelligence.substack.com/p/lora-how-to-adapt-llms-efficiently