Comments (15)
Hi Vivian,
I have been doing some tests but have had no problem resuming with MCMC or PolyChord.
The last line in out_...
suggests that resuming is not possible because the previous run was send with a different number of MPI processes from the new one. Do you think that's the case? If it is, I am afraid, this is a limitation that is hard to tackle right now.
Also, I am a little surprised that the chains files are deleted. This should never happen! Does it delete the chains when it tries to resume but fails?
(Sorry for the delay with this! I have too many projects going on right now)
from cobaya.
from cobaya.
from cobaya.
You are right, sorry! It does in the case in which there is a different number of MPI processes. This should definitely not happen! Fixing it right now! I hope you haven't lost anything important :(
from cobaya.
from cobaya.
Wow, I am really very sorry!!!
from cobaya.
from cobaya.
Thanks! :)
Still debugging: it's a tricky one! But won't close for today until I get it done. Stay tuned!
from cobaya.
Done! It was a error in my MPI-wrapping of the output
class. I am very grateful to you for suffering through all these bugs!
On Monday, I'll try to incorporate your fix for the new Planck likelihood code, so that you don't need to keep your own version.
from cobaya.
I am not suffering! I am enjoying your new very cool code! I am glad I can contribute in some small ways!
from cobaya.
Hi I still get problems. Now this
Traceback (most recent call last):
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/bin/cobaya-run", line 11, in
load_entry_point('cobaya', 'console_scripts', 'cobaya-run')()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 126, in run_script
run(info)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 45, in run
_force_reproducible, _force_reproducible_default))
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/output.py", line 208, in get_Output
return Output(*args, **kwargs)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/output.py", line 191, in init
setattr(self, var, comm.bcast(getattr(self, var), root=0))
AttributeError: 'Output_MPI' object has no attribute 'resuming'
Best
from cobaya.
And if I run without mpirun I get the error
Traceback (most recent call last):
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/bin/cobaya-run", line 11, in
load_entry_point('cobaya', 'console_scripts', 'cobaya-run')()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 126, in run_script
run(info)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/run.py", line 66, in run
modules=info.get(_path_install)) as sampler:
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/sampler.py", line 202, in get_sampler
info_sampler[name], posterior, output_file, resume=resume, modules=modules)
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/sampler.py", line 161, in init
self.initialize()
File "/scratch/midway2/viniciusvmb/krause/cosmo_cobaya/cosmolike_core/cobaya/cobaya/samplers/mcmc/mcmc.py", line 65, in initialize
get_mpi_comm().barrier()
AttributeError: 'NoneType' object has no attribute 'barrier'
So I can't use Cobaya at all now
from cobaya.
I was able to create the following workaround on output.py
from cobaya.
Thanks for the fix, and sorry! Nothing goods come out of a last-minute Friday-evening attempt of a bugfix.
from cobaya.
from cobaya.
Related Issues (20)
- Backward Compatibility with python 3.9 HOT 4
- "The sum of logpriors in the sample is not consistent." when resuming chains HOT 3
- Something went wrong when looking for a covmat HOT 1
- Script invocation is broken on Python 3.9 HOT 4
- Python invocation not doing anything HOT 4
- FutureWarning
- Interpolation error creating a delta chi2 = 20 on DESI likelihood HOT 7
- Installing DESI data: could not be found error HOT 4
- cobaya-install cannot name '__obsolete__' from 'cobaya' (unknown location) HOT 4
- cobaya-install planck_2018_highl_plik.TTTEEE fails HOT 2
- bao.generic likelihood not working for the distances of type Dv_over_rs HOT 6
- Error with the .yaml file generated from cosmo generator HOT 3
- *ERROR* Requested fast/slow separation, but all parameters have the same speed HOT 3
- NPIPE likelihood HOT 2
- Cobaya 3.5.1 and ACT HOT 2
- Sampling over HMCode params HOT 2
- module 'clik' has no attribute 'lkl' HOT 5
- pytest-forked HOT 2
- numpy 2 in tests HOT 1
- Github actions
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 cobaya.