# kushagra-2023/parameter-efficient-finetuning-lora architecture

> Architecture diagram of the GitHub repository kushagra-2023/parameter-efficient-finetuning-lora, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kushagra-2023/parameter-efficient-finetuning-lora
- Repository: https://github.com/kushagra-2023/parameter-efficient-finetuning-lora

## Overview

This repository is an experimental study of parameter-efficient fine-tuning for DINOv2 on Oxford-IIIT Pet, comparing LoRA with full fine-tuning. The documented workflow adapts a pretrained vision model, evaluates accuracy and resource use, and investigates LoRA rank and learned-update structure. The tree exposes a notebook and figures, but the notebook source was not available to inspect; relationships below are therefore limited to capabilities and connections stated in the README.

Main entry points: [`parameter_efficient_finetuning_lora.ipynb`](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb) (LoRA fine-tuning), [`figures`](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/tree/main/figures) (Experiment figures)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs"]
  node_petdata[("Oxford-IIIT Pet")]
  node_dinov2["DINOv2-small"]
end

subgraph group_training["Model training"]
  node_lora["LoRA fine-tuning"]
  node_fullft["Full fine-tuning"]
  node_classifier["37-class head"]
end

subgraph group_analysis["Evaluation and analysis"]
  node_evaluation["Model evaluation"]
  node_rankablation["Rank ablation"]
  node_svd["Update SVD analysis"]
end

subgraph group_outputs["Visual outputs"]
  node_plots["Experiment figures"]
end

node_user(("Experimenter"))

node_user -->|"runs experiment"| node_lora
node_petdata -->|"trains on"| node_lora
node_dinov2 -->|"adapts backbone"| node_lora
node_dinov2 -->|"fine-tunes backbone"| node_fullft
node_lora -->|"trains head"| node_classifier
node_fullft -->|"trains head"| node_classifier
node_lora -->|"evaluates results"| node_evaluation
node_fullft -->|"evaluates results"| node_evaluation
node_lora -->|"varies rank"| node_rankablation
node_lora -->|"analyzes updates"| node_svd
node_evaluation -->|"visualizes metrics"| node_plots
node_rankablation -->|"visualizes results"| node_plots
node_svd -->|"visualizes spectrum"| node_plots

click node_lora "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_fullft "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_classifier "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_evaluation "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_rankablation "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_svd "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb"
click node_plots "https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/tree/main/figures"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_petdata,node_dinov2 toneBlue
class node_lora,node_fullft,node_classifier toneAmber
class node_evaluation,node_rankablation,node_svd toneMint
class node_plots toneRose
class node_user toneIndigo
```

## Components

### Inputs

- **Oxford-IIIT Pet**
- **DINOv2-small**

### Model training

- [LoRA fine-tuning](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`
- [Full fine-tuning](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`
- [37-class head](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`

### Evaluation and analysis

- [Model evaluation](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`
- [Rank ablation](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`
- [Update SVD analysis](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/blob/main/parameter_efficient_finetuning_lora.ipynb): `parameter_efficient_finetuning_lora.ipynb`

### Visual outputs

- [Experiment figures](https://github.com/kushagra-2023/parameter-efficient-finetuning-lora/tree/main/figures): `figures`

### Other components

- **Experimenter**

## Connections

- Experimenter → LoRA fine-tuning: runs experiment (evidence: `README.md`)
- Oxford-IIIT Pet → LoRA fine-tuning: trains on (evidence: `README.md`)
- DINOv2-small → LoRA fine-tuning: adapts backbone (evidence: `README.md`)
- DINOv2-small → Full fine-tuning: fine-tunes backbone (evidence: `README.md`)
- LoRA fine-tuning → 37-class head: trains head (evidence: `README.md`)
- Full fine-tuning → 37-class head: trains head (evidence: `README.md`)
- LoRA fine-tuning → Model evaluation: evaluates results (evidence: `README.md`)
- Full fine-tuning → Model evaluation: evaluates results (evidence: `README.md`)
- LoRA fine-tuning → Rank ablation: varies rank (evidence: `README.md`)
- LoRA fine-tuning → Update SVD analysis: analyzes updates (evidence: `README.md`)
- Model evaluation → Experiment figures: visualizes metrics (evidence: `README.md`)
- Rank ablation → Experiment figures: visualizes results (evidence: `README.md`)
- Update SVD analysis → Experiment figures: visualizes spectrum (evidence: `README.md`)
