Comments (3)
Just worked it out @chrispan68 :
- Set
device_map=True
infrom_pretrained()
from HuggingFace (in scriptecco/src/ecco/__init__.py
). - Set
gpu=False
infrom_pretrained()
from Ecco (in your own script that uses ecco), to avoid moving the model and data to a specific device (see huggingface/transformers#25145).
Then you can run Ecco with multiple GPUs just like using huggingface.
from ecco.
No similar feature exists in Ecco currently. A PR is welcomed!
from ecco.
@chrispan68 To fit your model to limited GPUs, there are mainly two ways to go:
- Modify the ecco source code to save only attribution features you would like to gain.
- Implement multi-GPU implementation, which would require gradient backprop across several GPUs on a single node.
I'm also looking into these two approaches. We can have a discussion if you're still interested.
from ecco.
Related Issues (20)
- Install ecco on Apple M1 Max clip fails HOT 1
- Google Colab support only Python 3.10 HOT 7
- How to add my own model like chinese-bert-wwm-ext
- How to retrieve salience of some specific words? HOT 1
- Support for pre-generated output
- How to serialize the LMOutput object?
- installing ecco HOT 2
- Decoder hidden states not found HOT 3
- baseline for sentence classification task using IG/Deeplift?
- Installing Ecco, unable to install in Colab HOT 3
- Presence of character Ġ before each token in output HOT 2
- import ecco ERRO HOT 9
- llama support HOT 4
- bug -object has no attribute 'lm_head'- HOT 2
- lm.generate and HuggingFace's generate give different results with do_sample=False
- Request for feature addition: Visualization of Neuron Activations and Clustered Neuron Firings HOT 1
- Adding GENRE model to ecco HOT 1
- I can't find jupyter notebook for Input_Saliency.
- Error encountered when comparing activation matrices in batch generation loop
- Support to LLM like LLAMA-2 and Vicuna? HOT 15
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 ecco.