Comments (3)
Around 50 GB VRAM. You can use accelerate (https://github.com/huggingface/accelerate) for the model parallel.
from easyedit.
Thank you!
Do you have an example to support accelerate? or is this built in the library already
from easyedit.
Thank you! Do you have an example to support accelerate? or is this built in the library already
- Sorry, we don't support Model Parallel yet. Model editing requires modifying the weights of internal parameters, which is a complex process combined with
accelerate
. - My suggestion is that you can use
device_map='auto'
, using the native model parallel ofhuggingface
. You can refer here(https://huggingface.co/docs/accelerate/usage_guides/big_modeling) for learningdevice_map
.- For example, to edit the llama, you should modify the code here. https://github.com/zjunlp/EasyEdit/blob/main/easyeditor/editors/editor.py#L73
from easyedit.
Related Issues (20)
- ROME vs r-ROME and obtaining generalization metric HOT 6
- Question about finetuning the backbone(mulitmodal editing) HOT 3
- KeyError: 'Subject_Aliasing_acc' HOT 9
- R-ROME RuntimeError: expected scalar type Half but found Float HOT 10
- [BUG] GRACE editor with large eps. HOT 9
- Is SEARC's training loss same with paper? HOT 5
- SERAC的portability在edit之后降低了? HOT 6
- About KE and KN in edit.py HOT 3
- Finding a Bug HOT 5
- Finding a Bug HOT 26
- MEND running error HOT 1
- run llama2 ROME error HOT 2
- run llama2 ROME error HOT 4
- How to compute locality? HOT 3
- why need download wiki , has 18G ? HOT 3
- error when cache file exist HOT 6
- When will the WISE pipeline implementation be publicized? HOT 4
- Can i edit quantized model? HOT 1
- LoRA does not work HOT 4
- 关于portability和locality的评估具体应该怎么设置呢 HOT 6
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 easyedit.