mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-07-24 18:20:09 +00:00
remove types
This commit is contained in:
parent
9bc42f532b
commit
73d69bc90b
@ -65,13 +65,11 @@ func Quantize(infile, outfile string, ftype fileType, fn func(resp api.ProgressR
|
||||
progressInt := atomic.LoadInt32(store)
|
||||
progress := *(*float32)(unsafe.Pointer(&progressInt))
|
||||
fn(api.ProgressResponse{
|
||||
Status: fmt.Sprintf("quantizing model %d/%d", int(progress), tensorCount),
|
||||
Type: "quantize",
|
||||
Status: fmt.Sprintf("quantizing model %d%%", 100*int(progress)/tensorCount),
|
||||
})
|
||||
case <-done:
|
||||
fn(api.ProgressResponse{
|
||||
Status: fmt.Sprintf("quantizing model %d/%d", tensorCount, tensorCount),
|
||||
Type: "quantize",
|
||||
Status: fmt.Sprintf("quantizing model 100%%"),
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -442,7 +442,6 @@ func CreateModel(ctx context.Context, name model.Name, modelFileDir, quantizatio
|
||||
} else if want != ft {
|
||||
fn(api.ProgressResponse{
|
||||
Status: "quantizing model tensors",
|
||||
Type: "quantize",
|
||||
})
|
||||
|
||||
blob, err := GetBlobsPath(baseLayer.Digest)
|
||||
|
Loading…
x
Reference in New Issue
Block a user