MCPcopy Index your code
hub / github.com/SJTU-DeepVisionLab/FLoRA

github.com/SJTU-DeepVisionLab/FLoRA @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
36 symbols 79 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

FLoRA: Low-Rank Core Space for N-dimension

The official implementation of paper: "FLoRA: Low-Rank Core Space for N-dimension".

Links: Arxiv

FLoRA

Update log

  • 2024.07.22: For NLP task (GLUE benchmark), please refer to Subspace-Tuning.
  • 2024.07.04: We refactor the core code of FLoRA for simplicity and release the code (the core implementations are as same as the original implementations). Please open an issue if you encounter bugs. You can integrate our code into your project easily (see example). Currently, we provide FLoRA layers for linear(2 dims), conv2d(4 dims), conv3d(5 dims), embeddings(1 dims). We also provide a base N-dims-FLoRA layer for high dimensions of weights. You can refer to our implementations of class Linear, Conv2D in layers.py for more details and then customize your class.

TODO

  • [x] Refactor the code and release it
  • [ ] Release the PEFT-style code
  • [ ] Release the task-specific code in our paper.

Reference

@article{si2024flora,
  title={FLoRA: Low-Rank Core Space for N-dimension},
  author={Si, Chongjie* and Wang, Xuehui* and Yang, Xue and Xu, Zhengqin and Li, Qingyun and Dai, Jifeng and Qiao, Yu and Yang, Xiaokang and Shen, Wei},
  journal={arXiv preprint arXiv:2405.14739},
  year={2024}
}

Core symbols most depended-on inside this repo

get_new_weight
called by 4
flora/layers.py
define_flora_block
called by 2
flora/flora.py
main
called by 1
example.py
load_pretrained_ckpt
called by 1
example.py
set_dims
called by 1
flora/layers.py
init_parameters
called by 1
flora/layers.py
disable_base_weight_grad
called by 1
flora/layers.py
make_flora_layer
called by 1
flora/layers.py

Shape

Method 26
Class 7
Function 3

Languages

Python100%

Modules by API surface

flora/layers.py27 symbols
flora/flora.py7 symbols
example.py2 symbols

For agents

$ claude mcp add FLoRA \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact