mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	convert-hf : check for unprocessed Jamba experts
This commit is contained in:
		| @@ -2470,6 +2470,15 @@ class JambaModel(Model): | ||||
|  | ||||
|         yield new_name, data_torch | ||||
|  | ||||
|     def write_tensors(self): | ||||
|         super().write_tensors() | ||||
|  | ||||
|         if self._experts is not None: | ||||
|             # flatten `list[dict[str, Tensor]]` into `list[str]` | ||||
|             experts = [k for d in self._experts for k in d.keys()] | ||||
|             if len(experts) > 0: | ||||
|                 raise ValueError(f"Unprocessed experts: {experts}") | ||||
|  | ||||
|     # same as Mamba | ||||
|     def extra_f32_tensors(self, name: str, new_name: str, bid: int | None, n_dims: int) -> bool: | ||||
|         del n_dims  # unused | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Francis Couture-Harpin
					Francis Couture-Harpin