• Michael Yang's avatar
    fix(cmd): unload model before removal (#12832) · ed78e127
    Michael Yang authored
    this change fixes two bugs with `ollama rm`:
    
    1. before a model is removed, it will first be stopped. this only
       happens for the first argument and skipped for all other models
    2. models are unloaded indiscriminately. this errors for cloud models
       and should be omitted
    ed78e127
cmd.go 45.7 KB