mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-07 11:23:56 +01:00
gguf : update convert-llama-h5-to-gguf.py
This commit is contained in:
parent
32e037ffbe
commit
87c34e4dd4
@ -5,13 +5,13 @@ import sys
|
||||
import struct
|
||||
import json
|
||||
import numpy as np
|
||||
from typing import List
|
||||
from typing import Any, List
|
||||
from pathlib import Path
|
||||
from transformers import AutoModelForCausalLM
|
||||
from sentencepiece import SentencePieceProcessor
|
||||
|
||||
|
||||
NDArray: 'TypeAlias' = 'np.ndarray[Any, Any]'
|
||||
NDArray = np.ndarray[Any, Any]
|
||||
|
||||
|
||||
def permute(weights: NDArray, n_head: int) -> NDArray:
|
||||
|
Loading…
Reference in New Issue
Block a user