]>
git.djapps.eu Git - pkg/ggml/sources/llama.cpp/log
cduk [Fri, 13 Dec 2024 22:21:49 +0000 (23:21 +0100)]
Removes spurious \r in output that causes logging in journalctl to treat lines as binary and therefore hidden by default (#10771)
Signed-off-by: Charles Darke <redacted>
Co-authored-by: Charles Darke <redacted>
lhez [Fri, 13 Dec 2024 20:23:52 +0000 (12:23 -0800)]
Introducing experimental OpenCL backend with support for Qualcomm Adreno GPUs (#10693)
* [cl][adreno] Add Adreno GPU support
Add new OpenCL backend to support Adreno GPUs
---------
Co-authored-by: Skyler Szot <redacted>
Co-authored-by: Shangqing Gu <redacted>
Co-authored-by: Alexander Angus <redacted>
Co-authored-by: Hongqiang Wang <redacted>
Co-authored-by: Max Krasnyansky <redacted>
* [cl][ci] Add workflow for CL
* [cl][adreno] Fix memory leak for non SMALL_ALLOC path
* opencl: integrate backend dyn.load interface and fix compiler and format warnings
* opencl: remove small-alloc support and fix build errors for non-opencl platforms
* opencl: fixed merge conflict (MUSA added twice in cmake)
* opencl-ci: use RUNNER_TEMP instead of github.workspace
* opencl: fix embed tool invocation with python3
* opencl: CI workflow fixes
* opencl: Clean up small-alloc in CMake files
* opencl: cleanup ggml-opencl2 header file
* opencl: use ulong for offsets and strides in ADD kernel
* opencl: use cl_ulong for all offsets
* opencl: use cl_ulong for sizes and strides
* opencl: use `GGML_LOG_xxx` instead of `fprintf(stderr, ...)`
* opencl: rename backend `opencl2` -> `opencl`
* opencl: rename kernel files `ggml-opencl2` -> `ggml-opencl`
* opencl: make OpenCL required, remove redundant lib and inc directories
* `ggml-base`, `..` and `.` are added by `ggml_add_backend_library`
* opencl: rename backend - funcs, structs, etc `opencl2` -> `opencl`
* opencl: remove copyright marker since main license already covers
* opencl: replace some more OPENCL2 leftovers
* opencl: remove limits on `tensor_extra`
* opencl: use pools for `tensor_extra`
* opencl: fix compiler warnings with GCC and Clang
Still getting the warning about clCreateCmdQueue being obsolete.
Will fix that separately.
* opencl: fail gracefully if opencl devices are not available
Also for unsupported GPUs.
* opencl: fix MSVC builds (string length error)
* opencl: check for various requirements, allow deprecated API
* opencl: update log message for unsupported GPUs
---------
Co-authored-by: Skyler Szot <redacted>
Co-authored-by: Shangqing Gu <redacted>
Co-authored-by: Alexander Angus <redacted>
Co-authored-by: Hongqiang Wang <redacted>
Co-authored-by: Max Krasnyansky <redacted>
Eric Curtin [Fri, 13 Dec 2024 18:34:25 +0000 (18:34 +0000)]
Opt class for positional argument handling (#10508)
Added support for positional arguments `model` and `prompt`. Added
functionality to download via strings like:
llama-run llama3
llama-run ollama://granite-code
llama-run ollama://granite-code:8b
llama-run hf://QuantFactory/SmolLM-135M-GGUF/SmolLM-135M.Q2_K.gguf
llama-run huggingface://bartowski/SmolLM-1.7B-Instruct-v0.2-GGUF/SmolLM-1.7B-Instruct-v0.2-IQ3_M.gguf
llama-run https://example.com/some-file1.gguf
llama-run some-file2.gguf
llama-run file://some-file3.gguf
Signed-off-by: Eric Curtin <redacted>
Corentin REGAL [Fri, 13 Dec 2024 17:23:50 +0000 (18:23 +0100)]
fix: graceful shutdown for Docker images (#10815)
Jett Janiak [Fri, 13 Dec 2024 14:48:44 +0000 (15:48 +0100)]
gguf-py : numpy 2 newbyteorder fix (#9772)
谢乃闻 [Fri, 13 Dec 2024 12:56:07 +0000 (12:56 +0000)]
Fix crash caused by ggml_backend_load_all when launching on Android Activity (#10812)
* Fix crash caused by ggml_backend_load_all when launching on AndroidActivity.
Details:
Calling ggml_backend_load_all during initialization in the AndroidActivity project leads to a crash with the error:
terminating with uncaught exception of type std::__ndk1::__fs::filesystem::filesystem_error: filesystem error: in directory_iterator::directory_iterator(...): Permission denied [./].
This issue occurs because AndroidActivity restricts file access due to sandboxing.
Reproduction:
In the example folder, the LlamaAndroid project can reproduce the crash by calling ggml_backend_load_all first in Java_android_llama_cpp_LLamaAndroid_backend_1init.
* Update ggml/src/ggml-backend-reg.cpp
---------
Co-authored-by: Diego Devesa <redacted>
Eve [Fri, 13 Dec 2024 08:42:04 +0000 (08:42 +0000)]
vulkan: small mul_mat_vec optimizations (#10665)
* double the number of rows per workgroup
* Update ggml-vulkan.cpp
* Vulkan: Add VK_EXT_subgroup_size_control support to ensure full subgroups for coopmats
* only increase the number of rows for amd and subgroup size 64
* fix missing NUM_ROWS for mul_mat_vec_iq4_nl_f16_f32, untested
* use subgroup min and max to check for gcn (requires https://github.com/ggerganov/llama.cpp/pull/10721)
* manual merge ggml-vulkan.cpp
* set min and max subgroup size in any case
* Also double the number of rows for Intel GPUs
Akarshan Biswas [Fri, 13 Dec 2024 06:42:15 +0000 (12:12 +0530)]
SYCL: Reduce most of the compiler warnings (#10748)
* Try to reduce some unused and typecast warnings
* Reduce compiler warnings step 2
* add a newline at the end of the file
* Initialize nreduce as size_t
* [SYCL] Remove pragma directives from mmq.cpp
* SYCL: mmq add condition to prevent blocks_per_tile_x_row variable from becoming 0
* SYCL softmax: Initialize nreduce as size_t
* ggml-sycl.cpp: fix some trailing whitespaces
* SYCL: remove the unused variables instead of commenting it out
* SYCL poo2d kernel: set NAN for invalid pooling op
* SYCL gemm.hpp: remove pragma directives
* SYCL gemm.hpp: use const cast to properly support dnnl::memory
* SYCL: wkv6 remove a comment
* SYCL: clean comments step 2
* SYCL: clean comments and variables step 3
* SYCL: Use GGML_UNUSED for unused variables
* SYCL: remove extra empty lines and a comment
* Remove TODO
* cleanup spaces
* add a stdout for unsupported op
* use sycl printf over fprintf
* remove prints for CI
* SYCL ggml-sycl: pool2D use sycl::nan and remove if-else block
---------
Co-authored-by: Abhilash Majumder <redacted>
Karol Kontny [Fri, 13 Dec 2024 00:04:19 +0000 (01:04 +0100)]
ggml : Fix compilation issues on ARM platform when building without fp16 (#10811)
Xuan Son Nguyen [Thu, 12 Dec 2024 21:53:05 +0000 (22:53 +0100)]
common : improve -ctv -ctk CLI arguments (#10806)
* common : improve ctv ctk cli argument
* regenerate docs
* even better approach
* use std::vector
Xuan Son Nguyen [Thu, 12 Dec 2024 19:52:28 +0000 (20:52 +0100)]
contrib : add ngxson as codeowner (#10804)
a3sh [Thu, 12 Dec 2024 18:09:50 +0000 (02:09 +0800)]
CUDA: faster non-contiguous concat (#10760)
* faster uncontiguous concat
* Use a lambda to avoid code duplication
Co-authored-by: Diego Devesa <redacted>
* Update ggml/src/ggml-cuda/concat.cu
* add constexpr and static assert
---------
Co-authored-by: Diego Devesa <redacted>
Diego Devesa [Thu, 12 Dec 2024 18:02:49 +0000 (19:02 +0100)]
remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS (#10797)
other windows build fixes
0cc4m [Thu, 12 Dec 2024 17:36:00 +0000 (18:36 +0100)]
Vulkan: Use improved q4_k and q5_k dequant code in dequant shaders (#10798)
0cc4m [Thu, 12 Dec 2024 17:35:37 +0000 (18:35 +0100)]
Vulkan: Add VK_EXT_subgroup_size_control support to ensure full subgroups for coopmats (#10721)
* Vulkan: Add VK_EXT_subgroup_size_control support to ensure full subgroups for coopmats
* Fix subgroup size control extension support check
Add accf32 and accf16 checks for coopmats
* Also disable coopmats on amdvlk
Xuan Son Nguyen [Thu, 12 Dec 2024 15:57:32 +0000 (16:57 +0100)]
common : add missing env var for speculative (#10801)
CentricStorm [Wed, 11 Dec 2024 22:40:40 +0000 (22:40 +0000)]
docs: update server streaming mode documentation (#9519)
Provide more documentation for streaming mode.
Georgi Gerganov [Wed, 11 Dec 2024 21:14:46 +0000 (23:14 +0200)]
Merge pull request #10788 from ggerganov/gg/gguf-py-0.11.0
Georgi Gerganov [Wed, 11 Dec 2024 21:13:31 +0000 (23:13 +0200)]
gguf-py : bump version to 0.11.0
Xuan Son Nguyen [Wed, 11 Dec 2024 19:52:14 +0000 (20:52 +0100)]
server : (UI) add tok/s, get rid of completion.js (#10786)
* get rid of completion.js
* extract chat bubble to a component
* add tok/s info
* sync
* fix BASE_URL
* only extract timings when it's enabled
* fix auto scroll
qingy1337 [Wed, 11 Dec 2024 15:16:32 +0000 (07:16 -0800)]
Update README.md (#10772)
Xuan Son Nguyen [Wed, 11 Dec 2024 13:59:41 +0000 (14:59 +0100)]
ci : pin nodejs to 22.11.0 (#10779)
kallewoof [Wed, 11 Dec 2024 13:48:04 +0000 (22:48 +0900)]
bug-fix: snprintf prints NULL in place of the last character (#10419)
* bug-fix: snprintf prints NULL in place of the last character
We need to give snprintf enough space to print the last character and the null character, thus we allocate one extra byte and then ignore it when converting to std::string.
* add comment about extra null-term byte requirement
CentricStorm [Wed, 11 Dec 2024 10:47:43 +0000 (10:47 +0000)]
docs: fix server documentation formatting (#10776)
Gilad S. [Wed, 11 Dec 2024 00:47:21 +0000 (02:47 +0200)]
ggml: load all backends from a user-provided search path (#10699)
* feat: load all backends from a user-provided search path
* fix: Windows search path
* refactor: rename `ggml_backend_load_all_in_search_path` to `ggml_backend_load_all_from_path`
* refactor: rename `search_path` to `dir_path`
* fix: change `NULL` to `nullptr`
Co-authored-by: Diego Devesa <redacted>
* fix: change `NULL` to `nullptr`
---------
Co-authored-by: Diego Devesa <redacted>
Jeff Bolz [Tue, 10 Dec 2024 20:23:17 +0000 (14:23 -0600)]
vulkan: request round-to-even for fp16 in im2col/rope_head (#10767)
Vulkan doesn't mandate a specific rounding mode, but the shader_float_controls
feature allows rounding mode to be requested if the implementation supports it.
Eve [Tue, 10 Dec 2024 19:33:23 +0000 (19:33 +0000)]
vulkan: dynamic subgroup size for the remaining k quants (#10745)
* q5_k
q4_k
q3_k
q2_k
q6_k multi row example
* revert as multi row isnt faster for k quants
Bartowski [Tue, 10 Dec 2024 17:23:50 +0000 (12:23 -0500)]
imatrix : Add imatrix to --no-context-shift (#10766)
This allows for setting the --no-context-shift value in llama-imatrix which is required for models like DeepSeek
Andreas Kieslinger [Tue, 10 Dec 2024 17:23:24 +0000 (18:23 +0100)]
CUDA: rename macros to avoid conflicts with WinAPI (#10736)
* Renames NVIDIA GPU-architecture flags to avoid name clashes with WinAPI. (e.g. CC_PASCAL, GPU architecture or WinAPI pascal compiler flag?)
* Reverts erroneous rename in SYCL-code.
* Renames GGML_CUDA_MIN_CC_DP4A to GGML_CUDA_CC_DP4A.
* Renames the rest of the compute capability macros for consistency.
Yüg [Tue, 10 Dec 2024 17:22:34 +0000 (17:22 +0000)]
server : add flag to disable the web-ui (#10762) (#10751)
Co-authored-by: eugenio.segala <redacted>
Jeff Bolz [Tue, 10 Dec 2024 17:22:20 +0000 (11:22 -0600)]
vulkan: disable spirv-opt for coopmat shaders (#10763)
There are some bugs in the 1.3.296 SDK, so disable this. It isn't strictly
necessary anyway.
Add missing dependency on vulkan-shaders-gen, so shaders get recompiled when it
changes.
Fix coopmat support reporting when glslc doesn't support NV_coopmat2.
Johannes Gäßler [Mon, 9 Dec 2024 19:07:12 +0000 (20:07 +0100)]
CUDA: fix shared memory access condition for mmv (#10740)
Srihari-mcw [Mon, 9 Dec 2024 17:40:19 +0000 (23:10 +0530)]
Changes to CMakePresets.json to add ninja clang target on windows (#10668)
* Update cmakepreset.json to use clang with ninja by default
* Update cmakepreset.json to add clang and ninja based configs
* Updates to build.md file
* Make updates to rename preset targets
* Update with .cmake file
* Remove additional whitespaces
* Add .cmake file for x64-windows-llvm
* Update docs/build.md
* Update docs/build.md
---------
Co-authored-by: Max Krasnyansky <redacted>
Jeff Bolz [Mon, 9 Dec 2024 07:24:01 +0000 (01:24 -0600)]
vulkan: fix compile warnings (#10731)
Borislav Stanimirov [Mon, 9 Dec 2024 07:15:13 +0000 (09:15 +0200)]
cmake : simplify msvc charsets (#10672)
Xuan Son Nguyen [Sun, 8 Dec 2024 22:04:29 +0000 (23:04 +0100)]
server : fix format_infill (#10724)
* server : fix format_infill
* fix
* rename
* update test
* use another model
* update test
* update test
* test_invalid_input_extra_req
Xuan Son Nguyen [Sun, 8 Dec 2024 19:38:51 +0000 (20:38 +0100)]
server : bring back info of final chunk in stream mode (#10722)
* server : bring back into to final chunk in stream mode
* clarify a bit
* traling space
stduhpf [Sun, 8 Dec 2024 18:19:19 +0000 (19:19 +0100)]
Vulkan: fix NaN in tanh.comp with AMD proprietary driver on Windows (#10723)
* Vulkan: fix NaN in tanh.comp
* Faster NaN-free tanh
Diego Devesa [Sun, 8 Dec 2024 11:14:54 +0000 (12:14 +0100)]
llama : use cmake for swift build (#10525)
* llama : use cmake for swift build
* swift : <> -> ""
* ci : remove make
* ci : disable ios build
* Revert "swift : <> -> """
This reverts commit
d39ffd9556482b77d4ea5b118b453fc1c097a31d .
* ci : try fix ios build
* ci : cont
* ci : cont
---------
Co-authored-by: Georgi Gerganov <redacted>
Jeff Bolz [Sun, 8 Dec 2024 08:05:55 +0000 (02:05 -0600)]
vulkan: compile a test shader in cmake to check for coopmat2 support (#10713)
Robert Collins [Sat, 7 Dec 2024 21:12:27 +0000 (16:12 -0500)]
llama : add 128k yarn context for Qwen (#10698)
* add 128k yarn context for Qwen
* added property for model tensors
* removing useless line
Xuan Son Nguyen [Sat, 7 Dec 2024 19:21:09 +0000 (20:21 +0100)]
server : (refactor) no more json in server_task input (#10691)
* server : (refactor) no more json in server_task input
* add test for slots endpoint
* add tests for /props and /slots
* remove task inf_type
* fix CI by adding safe_json_to_str
* add "model_path" to /props
* update readme
Georgi Gerganov [Sat, 7 Dec 2024 16:38:15 +0000 (18:38 +0200)]
ggml : disable iq4_nl interleave size 8 (#10709)
ggml-ci
Georgi Gerganov [Sat, 7 Dec 2024 16:02:05 +0000 (18:02 +0200)]
server : various fixes (#10704)
* server : various fixes
ggml-ci
* server : show curent seed in slot_params
ggml-ci
* fix /slots endpoint
* Update examples/server/server.cpp
Co-authored-by: Georgi Gerganov <redacted>
* server : reflect endpoint response changes in the readme
ggml-ci
---------
Co-authored-by: Xuan Son Nguyen <redacted>
Co-authored-by: Xuan Son Nguyen <redacted>
Djip007 [Sat, 7 Dec 2024 12:37:50 +0000 (13:37 +0100)]
ggml : refactor online repacking (#10446)
* rename ggml-cpu-aarch64.c to .cpp
* reformat extra cpu backend.
- clean Q4_0_N_M and IQ4_0_N_M
- remove from "file" tensor type
- allow only with dynamic repack
- extract cpu extra bufts and convert to C++
- hbm
- "aarch64"
- more generic use of extra buffer
- generalise extra_supports_op
- new API for "cpu-accel":
- amx
- aarch64
* clang-format
* Clean Q4_0_N_M ref
Enable restrict on C++
* add op GGML_OP_MUL_MAT_ID for Q4_0_N_M with runtime repack
* added/corrected control on tensor size for Q4 repacking.
* Update ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
Co-authored-by: Georgi Gerganov <redacted>
* Update ggml/src/ggml-cpu/ggml-cpu-aarch64.cpp
Co-authored-by: Georgi Gerganov <redacted>
* add debug logs on repacks.
---------
Co-authored-by: Georgi Gerganov <redacted>
Georgi Gerganov [Sat, 7 Dec 2024 09:52:44 +0000 (11:52 +0200)]
server : fix free of spec context and batch (#10651)
ggml-ci
0cc4m [Sat, 7 Dec 2024 09:24:15 +0000 (10:24 +0100)]
Vulkan: VK_KHR_cooperative_matrix support to speed up prompt processing (#10597)
* Vulkan: Implement VK_KHR_cooperative_matrix support in the matrix matrix multiplication shader
* Improve performance with better q4_k and q5_k dequant and store unrolling
* Add Vulkan MUL_MAT and MUL_MAT_ID accumulator precision selection
* Rework mulmat shader selection and compilation logic, avoid compiling shaders that won't get used by device
* Vulkan: Implement accumulator switch for specific mul mat mat shaders
* Vulkan: Unroll more loops for more mul mat mat performance
* Vulkan: Add VK_AMD_shader_core_properties2 support to read Compute Unit count for split_k logic
* Disable coopmat support on AMD proprietary driver
* Remove redundant checks
* Add environment variable GGML_VK_DISABLE_COOPMAT to disable VK_KHR_cooperative_matrix support
* Fix rebase typo
* Fix coopmat2 MUL_MAT_ID pipeline selection
Robert Ormandi [Sat, 7 Dec 2024 07:55:01 +0000 (01:55 -0600)]
metal : Extend how Llama.cpp locates metal resources (#10676)
* metal : Extend how Llama.cpp locates metal resources (#10675)
* It searches the resource file in the directory where the current
binary is located as well.
* Resolves symbolic links.
Rationale:
When we plug this dependency into a Bazel build and run it in the
context of Bazel (e.g. testing):
* the execution directory is often very different from where the files
are located and no direct control over this (Bazel sandboxing),
* the Bazel sandbox often use symbolic links to make files available.
With this patch, we can have the resource file added to the target,
can build and run tests in the context of Bazel.
* Update ggml/src/ggml-metal/ggml-metal.m
Co-authored-by: Georgi Gerganov <redacted>
* Update ggml/src/ggml-metal/ggml-metal.m
Co-authored-by: Georgi Gerganov <redacted>
---------
Co-authored-by: Georgi Gerganov <redacted>
Sukriti Sharma [Sat, 7 Dec 2024 07:02:14 +0000 (00:02 -0700)]
convert : add support for Roberta embeddings (#10695)
Georgi Gerganov [Fri, 6 Dec 2024 19:33:15 +0000 (21:33 +0200)]
convert : add custom attention mapping
Xuan Son Nguyen [Fri, 6 Dec 2024 12:29:05 +0000 (13:29 +0100)]
common : bring back --no-warmup to server (#10686)
Xuan Son Nguyen [Fri, 6 Dec 2024 10:14:32 +0000 (11:14 +0100)]
server : (refactoring) do not rely on JSON internally (#10643)
* server : (refactoring) reduce usage of json internally
* move all response types to struct
* wip [no ci]
* many fixes
* add virtual function
* fix index
* minor style fix
* add std::move
* refactor handle_completions_generic
* add virtual functions
* remove server.hpp
* clarify server_sent_event RFC specs
* apply review comments
* fix model_alias and completion_probabilities
* small clean up
* remove virtual for to_json_oai_compat()
* naming oai_compat --> oaicompat
* fix unwanted recursive call
* update docs
Plamen Minev [Thu, 5 Dec 2024 21:36:41 +0000 (23:36 +0200)]
fix(server) : not show alert when DONE is received (#10674)
Jeff Bolz [Thu, 5 Dec 2024 19:15:05 +0000 (13:15 -0600)]
vulkan: Add VK_NV_cooperative_matrix2 support for mul_mat and flash attention (#10206)
Riccardo Orlando [Thu, 5 Dec 2024 18:30:59 +0000 (19:30 +0100)]
llama : add Minerva 7B model support (#10673)
* Support for Minerva 7B
* Update convert_hf_to_gguf_update.py
Georgi Gerganov [Thu, 5 Dec 2024 11:27:42 +0000 (13:27 +0200)]
sync : ggml
PAB [Wed, 4 Dec 2024 08:19:30 +0000 (09:19 +0100)]
ggml: add `GGML_SET` Metal kernel + i32 CPU kernel (ggml/1037)
* implemented cpu kernel
* add i32 test cases in test-backend-ops
* typedef `ggml_metal_kargs_set`
* implemented `kernel_set`
* memcpy
PAB [Tue, 3 Dec 2024 19:20:04 +0000 (20:20 +0100)]
ggml : add `GGML_PAD_REFLECT_1D` operation (ggml/1034)
* ggml_pad_reflect_1d defined in header
* implemented on CPU
* called the forward pass
* impl Metal kernel
* added Metal kernel
* added OP_PAD_REFLECT_1D in test-backend-ops.cpp
* add test-pad-reflect-1d test case
* test case support multiple backend
Daniel Bevenius [Thu, 5 Dec 2024 07:47:55 +0000 (08:47 +0100)]
py : update outdated copy-paste instructions [no ci] (#10667)
This commit updates the copy-paste instruction in
convert_hf_to_gguf_update.py to reflect that convert_hf_to_gguf.py
will have already been updated with the new get_vocab_base_pre()
function when this script completes.
aryantandon01 [Wed, 4 Dec 2024 22:19:20 +0000 (03:49 +0530)]
Update deprecation-warning.cpp (#10619)
Fixed Path Separator Handling for Cross-Platform Support (Windows File Systems)
Georgi Gerganov [Wed, 4 Dec 2024 20:38:20 +0000 (22:38 +0200)]
server : fix speculative decoding with context shift (#10641)
* server : fix speculative decoding with context shift
ggml-ci
* server : take into account speculative limits
ggml-ci
* server : add tests
Diego Devesa [Wed, 4 Dec 2024 13:45:40 +0000 (14:45 +0100)]
ggml : add predefined list of CPU backend variants to build (#10626)
* ggml : add predefined list of CPU backend variants to build
* update CPU dockerfiles
Diego Devesa [Wed, 4 Dec 2024 13:40:44 +0000 (14:40 +0100)]
ggml-cpu : fix HWCAP2_I8MM value (#10646)
ltoniazzi [Wed, 4 Dec 2024 09:45:48 +0000 (09:45 +0000)]
Fix HF repo commit to clone lora test models (#10649)
JFLFY2255 [Wed, 4 Dec 2024 09:42:50 +0000 (17:42 +0800)]
llama: Support MiniCPM-1B (with & w/o longrope) (#10559)
Jeff Bolz [Wed, 4 Dec 2024 07:28:59 +0000 (01:28 -0600)]
vulkan: Implement "fast divide" (mul+shift) for unary ops like copy (#10642)
Nicolò Scipione [Wed, 4 Dec 2024 01:29:20 +0000 (02:29 +0100)]
SYCL : Move to compile time oneMKL interface backend selection for NVIDIA backend (#10584)
* [SYCL] Move to Compile Time backend selection on oneMKL Interface for NVIDIA backend
Move to compile time selection to backend to avoid latency at run time.
Add it to all mkl gemm calls and only for NVIDIA backend.
Signed-off-by: nscipione <redacted>
* Formatting
* Address PR comments to increase readibility
---------
Signed-off-by: nscipione <redacted>
Wang Ran (汪然) [Wed, 4 Dec 2024 01:22:50 +0000 (09:22 +0800)]
fix typo of README.md (#10605)
Frankie Robertson [Wed, 4 Dec 2024 00:41:37 +0000 (02:41 +0200)]
Avoid using __fp16 on ARM with old nvcc (#10616)
Benson Wong [Wed, 4 Dec 2024 00:40:36 +0000 (16:40 -0800)]
Add docs for creating a static build (#10268) (#10630)
* Add notes for a static build
* Update docs/build.md
---------
Co-authored-by: Diego Devesa <redacted>
piDack [Wed, 4 Dec 2024 00:26:37 +0000 (08:26 +0800)]
clip : add sycl support (#10574)
Co-authored-by: piDack <redacted>
Jeff Bolz [Tue, 3 Dec 2024 19:29:54 +0000 (13:29 -0600)]
vulkan: optimize and reenable split_k (#10637)
Use vector loads when possible in mul_mat_split_k_reduce. Use split_k
when there aren't enough workgroups to fill the shaders.
Xuan Son Nguyen [Tue, 3 Dec 2024 18:38:44 +0000 (19:38 +0100)]
server : (web ui) Various improvements, now use vite as bundler (#10599)
* hide buttons in dropdown menu
* use npm as deps manager and vite as bundler
* fix build
* fix build (2)
* fix responsive on mobile
* fix more problems on mobile
* sync build
* (test) add CI step for verifying build
* fix ci
* force rebuild .hpp files
* cmake: clean up generated files pre build
Georgi Gerganov [Tue, 3 Dec 2024 17:42:30 +0000 (19:42 +0200)]
scripts : remove amx sync
ggml-ci
Georgi Gerganov [Tue, 3 Dec 2024 17:40:25 +0000 (19:40 +0200)]
sync : ggml
mahorozte [Tue, 3 Dec 2024 13:11:43 +0000 (21:11 +0800)]
CUDA: remove unnecessary warp reduce in FA (ggml/1032)
* kqmax_new_j in every thread within warp is same after operate at line 199,this reduce can be omit
* same problem in vec32
---------
Co-authored-by: ZhaoXiaoYu <redacted>
PAB [Mon, 2 Dec 2024 18:27:24 +0000 (19:27 +0100)]
feat: add `GGML_UNARY_OP_ARGMAX` Metal kernel (ggml/1019)
* implemented argmax kernel
* tpig -> tgpig
* change to strides
* contiguous assertions
* kernel working and tested
* argmax simd parallel implementation
* added 2 new tests for argmax in test-backend-ops
* cosmit
* added 3 tests cases for perf eval
* add test_argmax in make_test_cases_perf
* Update test-backend-ops.cpp
Co-authored-by: Diego Devesa <redacted>
---------
Co-authored-by: Diego Devesa <redacted>
PAB [Thu, 28 Nov 2024 08:25:06 +0000 (09:25 +0100)]
metal : add `GGML_OP_CONV_TRANSPOSE_1D` kernels (ggml/1026)
* wip
* wip implementation f32
* kernel conv transpose 1d f32 working
* initial commit
Xuan Son Nguyen [Tue, 3 Dec 2024 11:54:30 +0000 (12:54 +0100)]
llama : add missing LLAMA_API for llama_chat_builtin_templates (#10636)
Nikolaos Pothitos [Tue, 3 Dec 2024 10:50:08 +0000 (12:50 +0200)]
readme : add option, update default value, fix formatting (#10271)
* readme : document --no-display-prompt
* readme : update default prompt context size
* readme : remove unnecessary indentation
Indenting a line with four spaces makes Markdown treat that section as
plain text.
* readme : indent commands under bullets
* readme : indent commands in lettered list
Georgi Gerganov [Tue, 3 Dec 2024 09:52:33 +0000 (11:52 +0200)]
metal : small-batch mat-mul kernels (#10581)
* metal : small-batch mat-mul kernels
ggml-ci
* metal : add rest of types
ggml-ci
* metal : final adjustments
ggml-ci
* metal : add comments
ggml-ci
Georgi Gerganov [Tue, 3 Dec 2024 09:21:43 +0000 (11:21 +0200)]
github : minify link [no ci] (revert)
this doesn't work as expected
Georgi Gerganov [Tue, 3 Dec 2024 09:20:35 +0000 (11:20 +0200)]
github : minify link [no ci]
Georgi Gerganov [Tue, 3 Dec 2024 09:20:00 +0000 (11:20 +0200)]
server : fix default draft model parameters (#10586)
* server : force F16 KV cache for the draft model
ggml-ci
* server : fix draft params
ggml-ci
* server : various params fixes
ggml-ci
Xuan Son Nguyen [Mon, 2 Dec 2024 21:10:19 +0000 (22:10 +0100)]
llama : add enum for built-in chat templates (#10623)
* llama : add enum for supported chat templates
* use "built-in" instead of "supported"
* arg: print list of built-in templates
* fix test
* update server README
Georgi Gerganov [Mon, 2 Dec 2024 19:22:53 +0000 (21:22 +0200)]
make : deprecate (#10514)
* make : deprecate
ggml-ci
* ci : disable Makefile builds
ggml-ci
* docs : remove make references [no ci]
* ci : disable swift build
ggml-ci
* docs : remove obsolete make references, scripts, examples
ggml-ci
* basic fix for compare-commits.sh
* update build.md
* more build.md updates
* more build.md updates
* more build.md updates
* Update Makefile
Co-authored-by: Diego Devesa <redacted>
---------
Co-authored-by: slaren <redacted>
haopeng [Mon, 2 Dec 2024 13:45:54 +0000 (21:45 +0800)]
server: Add "tokens per second" information in the backend (#10548)
* add cmake rvv support
* add timings
* remove space
* update readme
* fix
* fix code
* remove empty line
* add test
---------
Co-authored-by: Xuan Son Nguyen <redacted>
Akarshan Biswas [Mon, 2 Dec 2024 07:04:11 +0000 (12:34 +0530)]
SYCL: Fix and switch to GGML_LOG system instead of fprintf (#10579)
* Switched to GGML_LOG
* Fix missing semicolon
Georgi Gerganov [Mon, 2 Dec 2024 06:53:27 +0000 (08:53 +0200)]
contrib : refresh (#10593)
* contrib : refresh
* contrib : expand [no ci]
* contrib : expand test-backend-ops instructions
* contrib : add CODEOWNERS
* prs : update template to not have checkbox [no ci]
Juk Armstrong [Sun, 1 Dec 2024 22:09:49 +0000 (22:09 +0000)]
Add `mistral-v1`, `mistral-v3`, `mistral-v3-tekken` and `mistral-v7` chat template types (#10572)
* Templates: `mistral-v1`, `mistral-v2`, `mistral-v3`, `mistral-v3-tekken`
* Changed system message logic and added tests for all 4
* Invalid `system_message` instead of `content` fixed
* Removed tab-indented lines
* Added template code and test for `mistral-v7`
* Added all tests. Fixed bug with `tmpl == "llama2"` test.
* Replaced tabs with spaces.
* Removed `'mistral-v2'` option as no (open) models ever used it
* Removed all references to 'v2' template from comments
* Update llama.cpp
Fixed `trim_assistant_message` bug
Georgi Gerganov [Sun, 1 Dec 2024 19:37:54 +0000 (21:37 +0200)]
grammars : add English-only grammar (#10612)
Wang Qin [Sun, 1 Dec 2024 18:11:42 +0000 (10:11 -0800)]
ci: add error handling for Python venv creation in run.sh (#10608)
Diego Devesa [Sun, 1 Dec 2024 15:12:41 +0000 (16:12 +0100)]
ggml : automatic selection of best CPU backend (#10606)
* ggml : automatic selection of best CPU backend
* amx : minor opt
* add GGML_AVX_VNNI to enable avx-vnni, fix checks
alek3y [Sun, 1 Dec 2024 11:33:12 +0000 (12:33 +0100)]
server : bind to any port when specified (#10590)
Georgi Gerganov [Sun, 1 Dec 2024 09:25:17 +0000 (11:25 +0200)]
readme : update the usage section with examples (#10596)
* readme : update the usage section with examples
* readme : more examples
Wang Qin [Sun, 1 Dec 2024 03:19:44 +0000 (19:19 -0800)]
build: update Makefile comments for C++ version change (#10598)
Adrien Gallouët [Sat, 30 Nov 2024 17:13:18 +0000 (18:13 +0100)]
ggml-cpu: replace AArch64 NEON assembly with intrinsics in ggml_gemv_q4_0_4x4_q8_0() (#10567)
Signed-off-by: Adrien Gallouët <redacted>
Georgi Gerganov [Sat, 30 Nov 2024 08:09:21 +0000 (10:09 +0200)]
readme : remove old badge
Georgi Gerganov [Sat, 30 Nov 2024 07:47:07 +0000 (09:47 +0200)]
readme : refresh (#10587)
* readme : refresh
* readme : move section [no ci]
* readme : clarify [no ci]
* readme : fixes [no ci]
* readme : more fixes [no ci]
* readme : simplify [no ci]
* readme : clarify GGUF
Eve [Sat, 30 Nov 2024 07:00:02 +0000 (07:00 +0000)]
vulkan: Dynamic subgroup size support for Q6_K mat_vec (#10536)
* subgroup 64 version with subgroup add. 15% faster
scalable version
tested for subgroup sizes 16-128
* check for subgroup multiple of 16 and greater than 16
* subgroup sizes are always a power of 2 (https://github.com/KhronosGroup/GLSL/issues/45)
* force 16 sequential threads per block
* make 16 subgroup size a constant