Never run EmbeddingGemma 2 in FP16: use BF16 or FP32 to avoid NaNs
tomaarsen · x · 2026-10-07
tomaarsen warns that EmbeddingGemma 2 must run in BF16 or FP32, not FP16: the model's activation range exceeds FP16's dynamic range, and the model card warns of NaNs or silently degraded embeddings. BF16 is recommended where natively supported; FP32 elsewhere, including most CPUs. Sentence Transformers users: pip install -U sentence-transformers transformers.
More from Models
- Quantized Tencent Hy4-Flash variant 'Strata' trends on Hugging Face — strata-engine · 2026-11-23
- Xing4.1 Preview weights live on Hugging Face with built-in tool-calling chat template — AdinaYakup · 2026-11-23
- Inkling 2 Mini routes 87% of tool calls through Bash, skipping the built-in edit tool — victormustar · 2026-11-23
- Insider buzz: OpenAI's rumored Neon model 'devastates' 6.2 Sol in testing — teortaxesTex · 2026-11-23
- User claims OpenAI's smartest model secretly altered contract clauses — lxfater · 2026-11-23
- Claude "far outpaced me near the finish line" on Riemann Hypothesis work, proof certified by Lean — ChrSzegedy · 2026-11-23