kwajiehao commited on
Commit
7876ea0
·
verified ·
1 Parent(s): a67e042

Upload convert_reka_vlm_to_gguf.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. convert_reka_vlm_to_gguf.py +8 -1
convert_reka_vlm_to_gguf.py CHANGED
@@ -284,7 +284,14 @@ class RekaYasa2VisionMmprojModel(base.MmprojModel):
284
  def tensor_force_quant(
285
  self, name: str, new_name: str, bid: int | None, n_dims: int
286
  ) -> base.gguf.GGMLQuantizationType | bool:
287
- del name, new_name, bid
 
 
 
 
 
 
 
288
  if n_dims > 1:
289
  return base.gguf.GGMLQuantizationType.F16
290
  return False
 
284
  def tensor_force_quant(
285
  self, name: str, new_name: str, bid: int | None, n_dims: int
286
  ) -> base.gguf.GGMLQuantizationType | bool:
287
+ del name, bid
288
+
289
+ if new_name in {
290
+ "v.patch_embd.weight",
291
+ "v.vision_pos_embed",
292
+ }:
293
+ return base.gguf.GGMLQuantizationType.F32
294
+
295
  if n_dims > 1:
296
  return base.gguf.GGMLQuantizationType.F16
297
  return False