Skip to content

Changed -Ofast to -O3 as -Ofast breaks larger models (>4B)#4

Open
andsam wants to merge 1 commit intoadriancable:mainfrom
andsam:main
Open

Changed -Ofast to -O3 as -Ofast breaks larger models (>4B)#4
andsam wants to merge 1 commit intoadriancable:mainfrom
andsam:main

Conversation

@andsam
Copy link

@andsam andsam commented Jul 22, 2025

Changed compilation parameter -Ofast to -O3 for openmp, win64, gnu and gnuopenmp as -Ofast seems not to work properly when using larger models like Qwen3-8B or 32B (the code eventually starts producing just !-signs or nothing due to nans in computation).

Bug and fix confirmed using openmp on both WSL2/Ubuntu and native RHEL8.

Changed compilation parameter -Ofast to -O3 for openmp, win64, gnu and gnuopenmp as -Ofast seems not to work properly when using larger models like Qwen3-8B or 32B (the code eventually starts producing just !-signs or nothing due to nans in computation). 

Bug and fix confirmed using openmp on both WSL2/Ubuntu and native RHEL8.
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

Successfully merging this pull request may close these issues.

1 participant