1. 14 Aug, 2024 2 commits
  2. 13 Aug, 2024 3 commits
    • Blake Mizerany's avatar
      server: reduce max connections used in download (#6347) · 8e1050f3
      Blake Mizerany authored
      The previous value of 64 was WAY too high and unnecessary. It reached
      diminishing returns and blew past it. This is a more reasonable number
      for _most_ normal cases. For users on cloud servers with excellent
      network quality, this will keep screaming for them, without hitting our
      CDN limits. For users with relatively poor network quality, this will
      keep them from saturating their network and causing other issues.
      8e1050f3
    • Michael Yang's avatar
      lint · 2697d7f5
      Michael Yang authored
      - fixes printf: non-constant format string in call to fmt.Printf
      - fixes SA1032: arguments have the wrong order
      - disables testifylint
      2697d7f5
    • royjhan's avatar
      Load Embedding Model on Empty Input (#6325) · 8b00a415
      royjhan authored
      * load on empty input
      
      * no load on invalid input
      8b00a415
  3. 12 Aug, 2024 3 commits
  4. 11 Aug, 2024 1 commit
  5. 09 Aug, 2024 1 commit
  6. 08 Aug, 2024 2 commits
  7. 07 Aug, 2024 3 commits
    • Jesse Gross's avatar
      image: Clarify argument to WriteManifest is config · 97ec8cfd
      Jesse Gross authored
      When creating a model the config layer is appended to the list of
      layers and then the last layer is used as the config when writing the
      manifest. This change directly uses the config layer to write the
      manifest. There is no behavior change but it is less error prone.
      97ec8cfd
    • 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
  8. 06 Aug, 2024 1 commit
    • Daniel Hiltgen's avatar
      Ensure sparse files on windows during download · fc85f50a
      Daniel Hiltgen authored
      The file.Truncate call on windows will write the whole file
      unless you set the sparse flag, leading to heavy I/O at the
      beginning of download.  This should improve our
      I/O behavior on windows and put less stress on the users disk.
      fc85f50a
  9. 02 Aug, 2024 2 commits
  10. 01 Aug, 2024 5 commits
  11. 31 Jul, 2024 5 commits
  12. 30 Jul, 2024 2 commits
    • royjhan's avatar
      Add Metrics to `api\embed` response (#5709) · 1b44d873
      royjhan authored
      * add prompt tokens to embed response
      
      * rm slog
      
      * metrics
      
      * types
      
      * prompt n
      
      * clean up
      
      * reset submodule
      
      * update tests
      
      * test name
      
      * list metrics
      1b44d873
    • Daniel Hiltgen's avatar
      Prevent partial loading on mixed GPU brands · 34542099
      Daniel Hiltgen authored
      In mult-brand GPU setups, if we couldn't fully load the model we
      would fall through the scheduler and mistakenly try to load across
      a mix of brands.  This makes sure we find the set of GPU(s) that
      best fit for the partial load.
      34542099
  13. 26 Jul, 2024 3 commits
  14. 25 Jul, 2024 1 commit
  15. 22 Jul, 2024 6 commits