Comments (1)
Hi - Because ASE operations and methods are CPU-only, a CUDA calculator will have transferring overhead from CPU->GPU->CPU. With that said, depending on the application this overhead may be trivial compared to the model forward pass. I have opened a PR with these changes: #333. To create a CUDA supported calculator:
calc = OCPCalculator(checkpoint=/path/to/checkpoint.pt, device=0)
atoms.set_calculator(calc)
energy = atoms.get_potential_energy()
Where device
is the GPU you wish to use if on a multi-gpu machine. If not specified, it'll default to the original CPU implementation. Hope this helps!
Note - To avoid the overhead you can always implement the ASE functions in pytorch to properly support GPU usage. This is what we did for the system relaxations, but I'd only recommend this if you plan on using a particular function or operation in a high throughput manner.
from ocp.
Related Issues (20)
- Request for raw Open DAC S2EF dataset in *.extxyz HOT 2
- adsorbate isotherms in the opendac dataset HOT 1
- Ask for your help about training on OC22 with multiple GPUs. HOT 3
- Update trainer documentation
- Redundant `.to(device)` in base_trainer?
- Remove old example configs?
- Use OC22 data to fine-tune the OC20 IS2RE pretrained models
- OC20 uses old version of PyG to serialize the data HOT 1
- Add models to the Hugging Face Hub HOT 1
- DEF energy values for CO2 and H2O in ODAC 2023 HOT 1
- ASE databases incompatible with current fine-tuning tutorial HOT 10
- How to get all datasets HOT 6
- E+F trajectory data for ood_* splits HOT 1
- Explanation of ODAC23 database keys HOT 1
- Request for VASP config / settings HOT 3
- OCPCalculator fails when loading checkpoints HOT 2
- Equiformer v2 PyPI release HOT 1
- Suggestions to improve changes in #639
- Balanced Sampler QOL
- Question about preprocessing relaxed trajectories HOT 3
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 ocp.