Merge pull request #1250 from jmorganca/mxyng/create-layer

refactor layer creation
This commit is contained in:
Michael Yang
2023-12-05 14:32:52 -08:00
committed by GitHub
7 changed files with 200 additions and 226 deletions

View File

@@ -179,7 +179,7 @@ const (
FILE_MAGIC_GGUF_BE = 0x47475546
)
func DecodeGGML(r io.ReadSeeker) (*GGML, error) {
func DecodeGGML(r io.Reader) (*GGML, error) {
var ggml GGML
binary.Read(r, binary.LittleEndian, &ggml.magic)