We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e51fd1f commit a5cf45aCopy full SHA for a5cf45a
convert_hf_to_gguf.py
@@ -3849,9 +3849,10 @@ def set_gguf_parameters(self):
3849
self.gguf_writer.add_clip_projector_type(gguf.VisionProjectorType.EAGLE2VL)
3850
3851
# Vision attention layernorm eps: use config if available, else 1e-6
3852
- eps = 1e-6
3853
- if isinstance(self.global_config, dict):
3854
- eps = self.global_config.get("rms_norm_eps", eps)
+ vc = self.get_vision_config() or {}
+ eps = 1e-6
+ if isinstance(vc, dict) and "layer_norm_eps" in vc:
3855
+ eps = vc["layer_norm_eps"]
3856
self.gguf_writer.add_vision_attention_layernorm_eps(eps)
3857
3858
# 2x2 spatial merge
0 commit comments