Comments (1)
Thanks for your comment, the project is basically compatible with any PyTorch-based models.
To apply OpenDelta to a new model that we haven't tested, please follow the instructions in the docs, basically,
- visualize and understand the parameter/modular structure of the pre-trained model using Visualization
- specify the modified modules according to your knowledge about the delta methods, e.g., if applying Lora, any linear can be specified, if applying adapters, any submodules that have hidden state as the output can be specified.
- freeze the irrelevant parameters.
However, as a kind reminder, prefix-tuning is not supported due to its compicated nature to process the attention mask.
If you still have any other questions, feel free to let us know.
from opendelta.
Related Issues (20)
- tutorial$ python 0_basic.py 存在错误
- 为什么没有中文的README HOT 1
- Failed to load adapter layer using OpenDelta+BMTrain HOT 1
- pip install opendelta报错 HOT 4
- How to perform inference on already trained checkpoints.
- Where to find the trained delta checkpoints?
- Fix for a Bug in BitFit for T5
- Examples related to the paper "Delta Tuning: A Comprehensive Study of Parameter Efficient Methods for Pre-trained Language Models" HOT 2
- Do this method have speedup function for LLM? (in inference time)
- colab -- opendelta_must_try.ipynb, HTTP Error 502: Bad Gateway
- opendalta支持delta model. 的 p-tuning v2 嘛?
- Opendelta是否计划加入llama系列模型?
- pip install git+https://github.com/thunlp/OpenDelta.git 安装报错 HOT 3
- DeltaCenter库找不到,是怎么回事?
- Clarification on the Difference Between OpenDelta and Peft
- 推理减速问题
- A significant difference between the results obtained from testing after training and reloading the model after saving. How to save and reload the model correctly for reasoning?
- cannot import name 'Visualization' from 'opendelta' HOT 1
- 在训练deltamodel时如何定义优化器
- function attach() could not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendelta.