Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SJTU-DeepVisionLab/FLoRA
/ functions
Functions
29 in github.com/SJTU-DeepVisionLab/FLoRA
⨍
Functions
29
◇
Types & classes
7
↓ 5 callers
Method
__init__
(self, base_layer: nn.Module, flora_cfg: Dict, **kwargs)
flora/layers.py:134
↓ 4 callers
Method
get_new_weight
(self)
flora/layers.py:130
↓ 2 callers
Function
define_flora_block
(base_layer)
flora/flora.py:13
↓ 1 callers
Method
build_FLoRA
(self, model: nn.Module, target_keys: List, base
flora/flora.py:34
↓ 1 callers
Method
disable_base_weight_grad
(self)
flora/layers.py:117
↓ 1 callers
Method
forward
(self, inputs)
flora/layers.py:144
↓ 1 callers
Method
forward_inference
(self, inputs, **kwargs)
flora/flora.py:59
↓ 1 callers
Method
forward_train
(self, inputs, **kwargs)
flora/flora.py:56
↓ 1 callers
Method
init_parameters
(self)
flora/layers.py:111
↓ 1 callers
Function
load_pretrained_ckpt
(base_model, pretrained_ckpt)
example.py:22
↓ 1 callers
Function
main
()
example.py:4
↓ 1 callers
Method
make_flora_layer
(self, **kwargs)
flora/layers.py:120
↓ 1 callers
Method
set_dims
(self,)
flora/layers.py:106
Method
__init__
(self, layer_type: str, #========= channels =========== #di
flora/layers.py:17
Method
__init__
(self, base_layer: nn.Module, flora_cfg: Dict, base_name: st
flora/layers.py:85
Method
__init__
(self, base_layer: nn.Module, flora_cfg: Dict, **kwargs)
flora/layers.py:158
Method
__init__
(self, base_layer: nn.Module, flora_cfg: Dict, **kwargs)
flora/layers.py:195
Method
__init__
(self, base_layer: nn.Module, flora_cfg: Dict, **kwargs)
flora/layers.py:232
Method
__init__
(self, model, target_keys=list(), base_name='model', cls_types=['linear'], **kwargs)
flora/flora.py:22
Method
__repr__
(self)
flora/layers.py:76
Method
forward
(self, style='v2', src_weight_mean=1.0)
flora/layers.py:61
Method
forward
(self, inputs)
flora/layers.py:177
Method
forward
(self, inputs)
flora/layers.py:214
Method
forward
(self, inputs)
flora/layers.py:245
Method
forward
(self, inputs, mode='train', **kwargs)
flora/flora.py:63
Method
init_parameters
(self)
flora/layers.py:49
Method
set_dims
(self)
flora/layers.py:167
Method
set_dims
(self)
flora/layers.py:204
Method
set_dims
(self)
flora/layers.py:240