Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: emptyngton/llama-cpp-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: JamePeng/llama-cpp-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 27 files changed
  • 2 contributors

Commits on Jul 26, 2026

  1. fix(loader): guard HIP_PATH and VULKAN_SDK dirs with os.path.exists

    os.add_dll_directory() raises FileNotFoundError [WinError 3] when the
    directory does not exist, so a stale HIP_PATH or VULKAN_SDK left behind by
    an uninstalled SDK makes "import llama_cpp" fail outright on Windows.
    
    The CUDA_PATH branch above already guards each candidate directory with
    os.path.exists(); this applies the same pattern to the HIP and Vulkan
    branches. Valid directories are still added individually, so a partially
    removed SDK contributes whichever of bin/lib remain instead of raising.
    emptyngton committed Jul 26, 2026
    Configuration menu
    Copy the full SHA
    866bed9 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2026

  1. Merge pull request JamePeng#158 from emptyngton/fix-add-dll-directory…

    …-missing-path
    
    fix: guard HIP_PATH and VULKAN_SDK dirs with os.path.exists before add_dll_directory
    JamePeng authored Jul 27, 2026
    Configuration menu
    Copy the full SHA
    734623d View commit details
    Browse the repository at this point in the history
  2. Update Submodule vendor/llama.cpp 8bb9093..b77d646

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    8e1ea5e View commit details
    Browse the repository at this point in the history
  3. fix(ctypes): support GCC/Clang mangled symbols for optional llama_ext…

    … APIs
    
    - Add missing `_Z` Itanium C++ ABI symbol variants to ctypes function
    lookup lists. This improves compatibility with Linux and macOS builds
    where C++ symbols are exported using GCC/Clang name mangling.
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    194dfb2 View commit details
    Browse the repository at this point in the history
  4. feat(tools): add cross-platform ABI inspection utility

    Inspect PE, ELF, and Mach-O exports and normalize platform-specific symbol names. Validate optional llama_ext ctypes aliases across Windows, Linux, and macOS builds. Keep artifacts and timestamped privacy-safe reports local to the repository.
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 27, 2026
    Configuration menu
    Copy the full SHA
    1e49f9d View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2026

  1. Update Submodule vendor/llama.cpp b77d646..7e1e28c

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 28, 2026
    Configuration menu
    Copy the full SHA
    7708b3d View commit details
    Browse the repository at this point in the history
  2. feat(llama): support llama_model_params load_mode

    - Update model loading configuration to use the new `load_mode` field from
    llama_model_params and align with the latest llama.cpp API changes.
    
    - Remove deprecated internal handling of legacy loading flags and keep
    backward compatibility by warning users when `use_mmap`, `use_direct_io`,
    or `use_mlock` are still used.
    
    - This prepares the Python bindings for the updated llama.cpp model loading
    interface while providing a smoother migration path for existing users.
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 28, 2026
    Configuration menu
    Copy the full SHA
    00591a5 View commit details
    Browse the repository at this point in the history
  3. docs: document load_mode migration

    - Replace references to the legacy model loading flags with load_mode, document all supported loading modes for the Python API and server, and update the performance tuning example.
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 28, 2026
    Configuration menu
    Copy the full SHA
    bab3061 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2026

  1. Update Submodule vendor/llama.cpp 7e1e28c..e1a1abb

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 30, 2026
    Configuration menu
    Copy the full SHA
    f8bc6b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2026

  1. Update Submodule vendor/llama.cpp e1a1abb..876a432

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 31, 2026
    Configuration menu
    Copy the full SHA
    9ac3f54 View commit details
    Browse the repository at this point in the history
  2. feat(llama): expose additional model loading options

    - add `no_alloc` and `load_mtp` parameters
    - enable `extra buffer types` by default
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 31, 2026
    Configuration menu
    Copy the full SHA
    6f60d03 View commit details
    Browse the repository at this point in the history
  3. fix(ctypes): correct llama-ext binding signatures

    - use uint32_t for layer IDs
    - fix void return type for embedding extraction control
    - return target layer count as uint32_t
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 31, 2026
    Configuration menu
    Copy the full SHA
    aafc6fb View commit details
    Browse the repository at this point in the history
  4. Bump version to 0.3.45

    - This release focuses on reactivating and modernizing Llama’s built-in embedding capabilities, aligning the Python bindings with the latest llama.cpp APIs, and improving reliability across platforms.
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Jul 31, 2026
    Configuration menu
    Copy the full SHA
    d9d27a7 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2026

  1. Update Submodule vendor/llama.cpp 876a432..221f0f6

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Aug 2, 2026
    Configuration menu
    Copy the full SHA
    07c0425 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2026

  1. Update Submodule vendor/llama.cpp 221f0f6..563dec8

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    88fce16 View commit details
    Browse the repository at this point in the history
  2. fix(windows): handle conflicting OpenMP and ggml libraries

    - Allow duplicate OpenMP runtimes in complex environments such as ComfyUI
    - Stop searching the deprecated /bin directory for ggml dynamic libraries
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    62d3ae5 View commit details
    Browse the repository at this point in the history
  3. feat(internals): expose NextN embedding APIs on LlamaContext

    - Add accessors for NextN and layer input embeddings
    - Support selecting the NextN layer offset
    - Expose the auxiliary context handle
    - Validate layer IDs, offsets, and unavailable outputs
    
    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Aug 3, 2026
    Configuration menu
    Copy the full SHA
    9af4ec3 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2026

  1. Update Submodule vendor/llama.cpp 563dec8..1c3c967

    Signed-off-by: JamePeng <jame_peng@sina.com>
    JamePeng committed Aug 4, 2026
    Configuration menu
    Copy the full SHA
    00a8412 View commit details
    Browse the repository at this point in the history
Loading