• Michael Yang's avatar
    convert: fix tensor sorting (#12015) · 86834a27
    Michael Yang authored
    there's two bugs here.
    
    1. the check for a layer id is incorrect and should be >= 0 since layer
       0 is valid
    2. if both tensors have an layer identifier, it will only compare the
       layer id which will return 0 if the tensors are in the same layer.
       instead it should fallback to comparing the full tensor name
    86834a27
ggml.go 21 KB