Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BL opt converged to a worse likelihood score #183

Open
fluttercork opened this issue May 22, 2024 · 10 comments
Open

BL opt converged to a worse likelihood score #183

fluttercork opened this issue May 22, 2024 · 10 comments

Comments

@fluttercork
Copy link

          @fluttercork thanks for reporting, but this is completely different error.

Which installation method have you used? We saw similar errors before on macOS/M2 due to (presumably) weird compilation issues.
Can you reproduce the error with the pre-compiled binary?

https://github.com/amkozlov/raxml-ng/releases/download/1.2.2/raxml-ng_v1.2.2_macos.zip

Originally posted by @amkozlov in #170 (comment)

@fluttercork
Copy link
Author

Thanks. I've created a new issue for it. And the error is coming from the pre-compiled binary.


Here is the original error message:

libc++abi: terminating due to uncaught exception of type std::runtime_error: ERROR in SPR round (LIBPLL-2240): BL opt converged to a worse likelihood score by -59510.203966771397972 units

And the call on an Apple M2 (8 cores, 24 GB RAM) macOS 14.5:

raxml-ng --msa strepsirrhini_batchNG.phylip --msa-format PHYLIP --data-type DNA --prefix strepsirrhini --redo --seed 4384 --model strepsirrhini_genePartitions.txt --all --bs-trees 1000 --tree rand{10},pars{10} --outgroup Tupaia_belangeri --threads auto{4} --workers auto{4}

@amkozlov
Copy link
Owner

OK I see, could you please upload strepsirrhini_batchNG.phylip?

@fluttercork
Copy link
Author

Here it is, together with the partition file.
strepsirrhini_batchNG.phylip.txt
strepsirrhini_genePartitions.txt

@amkozlov
Copy link
Owner

Thank you, could you please also upload full raxml-ng execution log?

@fluttercork
Copy link
Author

Thanks for looking into this. Here it is.
strepsirrhini.raxml.log.txt

@amkozlov
Copy link
Owner

I don't have easy access to M2, but I just tested on M1 and it runs without errors.

Could you please post the result of:

which raxml-ng | xargs md5

@fluttercork
Copy link
Author

It's

MD5 (/Users/xxx/bin/raxml-ng) = a1d48b44edbfa7d172c23d5b3f766500

@amkozlov
Copy link
Owner

Thanks, this looks good.

So it does indeed look like the problem is specific to the M2 hardware, which is quite surprising tbh, and makes it challenging to debug.

As a quick workaround, you can try the following:

  • run in rosetta, I guess it would be something like arch -x86_64 raxml-ng
  • run with --blopt nr_safe

@fluttercork
Copy link
Author

I tried the --blopt option first and it died with a different error:

Assertion failed: (new_loglikelihood - loglikelihood > new_loglikelihood * BETTER_LL_TRESHOLD), function pllmod_opt_optimize_branch_lengths_local_multi, file pll_optimize.c, line 1903.

Here's the log file: strepsirrhini.raxml.log.txt

Will now try running raxml-ng in Rosetta ...

@fluttercork
Copy link
Author

A quick update: running it in Rosetta worked. Thanks for the workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants