1. 07 Aug, 2024 2 commits
    • Jesse Gross's avatar
      manifest: Fix crash on startup when trying to clean up unused files (#5840) · 1829fb61
      Jesse Gross authored
      Currently if the config field is missing in the manifest file (or
      corrupted), Ollama will crash when it tries to read it. This can
      happen at startup or when pulling new models.
      
      This data is mostly just used for showing model information so we
      can be tolerant of it not being present - it is not required to
      run the models. Besides avoiding crashing, this also gives us the
      ability to restructure the config in the future by pulling it
      into the main manifest file.
      1829fb61
    • Jesse Gross's avatar
      manifest: Don't prune layers if we can't open a manifest file · 685a5353
      Jesse Gross authored
      If there is an error when opening a manifest file (corrupted, permission denied, etc.)
      then the referenced layers will not be included in the list of active
      layers. This causes them to be deleted when pruning happens at startup
      or a model is pulled.
      
      In such a situation, we should prefer to preserve data in the hopes that
      it can be recovered rather than being agressive about deletion.
      685a5353
  2. 02 Aug, 2024 1 commit
  3. 31 Jul, 2024 1 commit
  4. 26 Jul, 2024 1 commit
  5. 25 Jul, 2024 1 commit
  6. 22 Jul, 2024 1 commit
  7. 19 Jul, 2024 1 commit
  8. 16 Jul, 2024 1 commit
  9. 15 Jul, 2024 1 commit
  10. 05 Jul, 2024 1 commit
  11. 01 Jul, 2024 4 commits
  12. 25 Jun, 2024 1 commit
    • Blake Mizerany's avatar
      llm: speed up gguf decoding by a lot (#5246) · cb42e607
      Blake Mizerany authored
      Previously, some costly things were causing the loading of GGUF files
      and their metadata and tensor information to be VERY slow:
      
        * Too many allocations when decoding strings
        * Hitting disk for each read of each key and value, resulting in a
          not-okay amount of syscalls/disk I/O.
      
      The show API is now down to 33ms from 800ms+ for llama3 on a macbook pro
      m3.
      
      This commit also prevents collecting large arrays of values when
      decoding GGUFs (if desired). When such keys are encountered, their
      values are null, and are encoded as such in JSON.
      
      Also, this fixes a broken test that was not encoding valid GGUF.
      cb42e607
  13. 21 Jun, 2024 1 commit
  14. 13 Jun, 2024 1 commit
  15. 12 Jun, 2024 1 commit
  16. 07 Jun, 2024 1 commit
  17. 06 Jun, 2024 1 commit
  18. 05 Jun, 2024 1 commit
  19. 04 Jun, 2024 5 commits
  20. 24 May, 2024 1 commit
  21. 20 May, 2024 4 commits
  22. 14 May, 2024 1 commit
  23. 09 May, 2024 1 commit
  24. 08 May, 2024 2 commits
  25. 07 May, 2024 1 commit
  26. 06 May, 2024 3 commits