1. 10 Sep, 2025 1 commit
    • Daniel Hiltgen's avatar
      Add v12 + v13 cuda support (#12000) · 17a023f3
      Daniel Hiltgen authored
      * Add support for upcoming NVIDIA Jetsons
      
      The latest Jetsons with JetPack 7 are moving to an SBSA compatible model and
      will not require building a JetPack specific variant.
      
      * cuda: bring back dual versions
      
      This adds back dual CUDA versions for our releases,
      with v11 and v13 to cover a broad set of GPUs and
      driver versions.
      
      * win: break up native builds in build_windows.ps1
      
      * v11 build working on windows and linux
      
      * switch to cuda v12.8 not JIT
      
      * Set CUDA compression to size
      
      * enhance manual install linux docs
      17a023f3
  2. 15 Aug, 2025 1 commit
  3. 13 Aug, 2025 1 commit
    • Daniel Hiltgen's avatar
      cuda: leverage JIT for smaller footprint (#11635) · dc5a6454
      Daniel Hiltgen authored
      Prior to this change our official binaries contained both JIT PTX code and
      the cubin binary code for our chosen compute capabilities. This change
      switches to only compile the PTX code and rely on JIT at runtime for
      generating the cubin specific to the users GPU.  The cubins are cached
      on the users system, so they should only see a small lag on the very
      first model load for a given Ollama release.  This also adds the first
      generation of Blackwell GPUs so they aren't reliant on the Hopper PTX.
      
      This change reduces the ggml-cuda.dll from 1.2G to 460M
      dc5a6454
  4. 05 Aug, 2025 1 commit
  5. 23 Jun, 2025 1 commit
    • Daniel Hiltgen's avatar
      Re-remove cuda v11 (#10694) · 1c6669e6
      Daniel Hiltgen authored
      * Re-remove cuda v11
      
      Revert the revert - drop v11 support requiring drivers newer than Feb 23
      
      This reverts commit c6bcdc42.
      
      * Simplify layout
      
      With only one version of the GPU libraries, we can simplify things down somewhat.  (Jetsons still require special handling)
      
      * distinct sbsa variant for linux arm64
      
      This avoids accidentally trying to load the sbsa cuda libraries on
      a jetson system which results in crashes.
      
      * temporary prevent rocm+cuda mixed loading
      1c6669e6
  6. 20 Jun, 2025 1 commit
  7. 13 May, 2025 1 commit
  8. 07 May, 2025 1 commit
    • Daniel Hiltgen's avatar
      remove cuda v11 (#10569) · fa393554
      Daniel Hiltgen authored
      This reduces the size of our Windows installer payloads by ~256M by dropping
      support for nvidia drivers older than Feb 2023.  Hardware support is unchanged.
      
      Linux default bundle sizes are reduced by ~600M to 1G.
      fa393554
  9. 25 Apr, 2025 1 commit
  10. 27 Mar, 2025 1 commit
  11. 17 Mar, 2025 1 commit
  12. 28 Feb, 2025 1 commit
  13. 26 Feb, 2025 1 commit
    • Daniel Hiltgen's avatar
      Add cuda Blackwell architecture for v12 (#9350) · e12af460
      Daniel Hiltgen authored
      * Add cuda Blackwell architecture for v12
      
      * Win: Split rocm out to separate zip file
      
      * Reduce CC matrix
      
      The 6.2 and 7.2 architectures only appear on Jetsons, so they were wasting space.
      The 5.0 should be forward compatible with 5.2 and 5.3.
      e12af460
  14. 25 Feb, 2025 1 commit
  15. 07 Feb, 2025 1 commit
  16. 29 Jan, 2025 1 commit
    • Michael Yang's avatar
      next build (#8539) · dcfb7a10
      Michael Yang authored
      
      
      * add build to .dockerignore
      
      * test: only build one arch
      
      * add build to .gitignore
      
      * fix ccache path
      
      * filter amdgpu targets
      
      * only filter if autodetecting
      
      * Don't clobber gpu list for default runner
      
      This ensures the GPU specific environment variables are set properly
      
      * explicitly set CXX compiler for HIP
      
      * Update build_windows.ps1
      
      This isn't complete, but is close.  Dependencies are missing, and it only builds the "default" preset.
      
      * build: add ollama subdir
      
      * add .git to .dockerignore
      
      * docs: update development.md
      
      * update build_darwin.sh
      
      * remove unused scripts
      
      * llm: add cwd and build/lib/ollama to library paths
      
      * default DYLD_LIBRARY_PATH to LD_LIBRARY_PATH in runner on macOS
      
      * add additional cmake output vars for msvc
      
      * interim edits to make server detection logic work with dll directories like lib/ollama/cuda_v12
      
      * remove unncessary filepath.Dir, cleanup
      
      * add hardware-specific directory to path
      
      * use absolute server path
      
      * build: linux arm
      
      * cmake install targets
      
      * remove unused files
      
      * ml: visit each library path once
      
      * build: skip cpu variants on arm
      
      * build: install cpu targets
      
      * build: fix workflow
      
      * shorter names
      
      * fix rocblas install
      
      * docs: clean up development.md
      
      * consistent build dir removal in development.md
      
      * silence -Wimplicit-function-declaration build warnings in ggml-cpu
      
      * update readme
      
      * update development readme
      
      * llm: update library lookup logic now that there is one runner (#8587)
      
      * tweak development.md
      
      * update docs
      
      * add windows cuda/rocm tests
      
      ---------
      Co-authored-by: default avatarjmorganca <jmorganca@gmail.com>
      Co-authored-by: default avatarDaniel Hiltgen <daniel@ollama.com>
      dcfb7a10