Georgi Gerganov
139b62a839
common : fix compile warning
2024-02-11 15:33:43 +02:00
Georgi Gerganov
0f2411f154
ggml : fix compile warnings (unused vars) ( #4966 )
2024-02-11 15:33:01 +02:00
Georgi Gerganov
cd9aea63b5
scripts : update sync scripts with new backends
2024-02-10 09:53:05 +02:00
Georgi Gerganov
43b65f5eb8
sync : ggml
2024-02-10 09:30:36 +02:00
Georgi Gerganov
8504d2d0da
tests : .gitignore obj files
2024-02-08 09:46:47 +02:00
Georgi Gerganov and GitHub
906cff55c2
py : handle byte tokens in get_token_type ( #5341 )
...
* py : handle byte tokens in `get_token_type`
* py : fix empty bytes arg
2024-02-06 07:47:22 +02:00
Georgi Gerganov
30679d438d
scripts : fix typos, cleanup ( #5303 )
2024-02-05 09:48:03 +02:00
Georgi Gerganov and GitHub
e437b37fd0
scripts : parse wtype in server-llm.sh ( #5167 )
...
* scripts : parse wtype in server-llm.sh
* scripts : fix check for wfile
2024-02-02 14:23:40 +02:00
Georgi Gerganov
d3bac7d584
llama : reorder build_orion() at correct place ( #5118 )
2024-01-31 18:47:10 +02:00
5cb04dbc16
llama : remove LLAMA_MAX_DEVICES and LLAMA_SUPPORTS_GPU_OFFLOAD ( #5240 )
...
* llama : remove LLAMA_MAX_DEVICES from llama.h
ggml-ci
* Update llama.cpp
Co-authored-by: slaren <slarengh@gmail.com >
* server : remove LLAMA_MAX_DEVICES
ggml-ci
* llama : remove LLAMA_SUPPORTS_GPU_OFFLOAD
ggml-ci
* train : remove LLAMA_SUPPORTS_GPU_OFFLOAD
* readme : add deprecation notice
* readme : change deprecation notice to "remove" and fix url
* llama : remove gpu includes from llama.h
ggml-ci
---------
Co-authored-by: slaren <slarengh@gmail.com >
2024-01-31 17:30:17 +02:00
Georgi Gerganov
efb7bdbbd0
metal : add im2col F32 dst support ( #5132 )
2024-01-31 15:35:41 +02:00
Georgi Gerganov
e0085fdf7c
Revert "server : change deps.sh xxd files to string literals ( #5221 )"
...
This reverts commit 4003be0e5f .
2024-01-30 21:19:26 +02:00
Georgi Gerganov and GitHub
e6f291d158
server : fix context shift ( #5195 )
...
* server : fix context shift + simplify self-extend
* server : take system_tokens into account
* server : more n_past fixes
* server : rever n_past_se changes
2024-01-30 20:17:30 +02:00
Georgi Gerganov
8f8ddfcfad
sync : ggml ( #0 )
2024-01-30 16:21:57 +02:00
Georgi Gerganov
6fb50ebbf0
gguf : fix comparison (ggml/715)
...
ggml-ci
2024-01-30 16:20:25 +02:00
Georgi Gerganov
a4b07c057a
gguf : add input validation, prevent integer overflows (ggml/709)
...
* gguf : add input validation, prevent integer overflows
ggml-ci
* gguf : fix switch default case
* gguf : sanitize info->n_dims and info->type
ggml-ci
* gguf : assert GGUF_TYPE_SIZE access
ggml-ci
* ggml : assert mallocs are successful
ggml-ci
* gguf : prevent integer overflow
* gguf : sanitize tensor info
ggml-ci
* gguf : stricter limit on the number of items
ggml-ci
2024-01-30 16:20:25 +02:00
Georgi Gerganov
549a1e6cd5
ci : fix yolo URLs + fix metal capture (ggml/712)
2024-01-30 16:20:25 +02:00
Georgi Gerganov and GitHub
49f44b5c55
readme : update hot topics
2024-01-30 11:14:44 +02:00
Georgi Gerganov and GitHub
14fef85e2d
py : fix except ( #5194 )
...
ggml-ci
2024-01-29 15:35:54 +02:00
Georgi Gerganov
35dec26cc2
sync : ggml
2024-01-28 19:48:05 +02:00
Georgi Gerganov
d460510c72
ggml : minor type fix (int64_t -> size_t)
2024-01-28 19:47:31 +02:00
Georgi Gerganov and GitHub
b764b8f1d0
flake.lock: Update ( #5162 )
2024-01-28 14:54:54 +00:00
Georgi Gerganov
753eafed0e
sync : ggml
2024-01-27 17:00:24 +02:00
Georgi Gerganov
5f1925a8ce
scripts : move run-with-preset.py from root to scripts folder
2024-01-26 17:09:44 +02:00
Georgi Gerganov
3b7c914de2
tests : gitignore test-c.o
2024-01-26 14:48:15 +02:00
Georgi Gerganov and GitHub
aad0b01d73
readme : update hot topics
2024-01-26 10:52:33 +02:00
Georgi Gerganov
ddc5a5033f
metal : show compile log messages
2024-01-25 11:26:17 +02:00
Georgi Gerganov
26d607608d
metal : disable support for MUL_MAT F32 x F16
2024-01-23 15:50:56 +02:00
Georgi Gerganov and GitHub
89758723c7
minor : clean-up some warnings and style ( #5094 )
...
* minor : clean-up some warnings and style
ggml-ci
* ggml : add comment
2024-01-23 14:12:57 +02:00
942c0107a7
flake.lock: Update ( #5054 )
...
Flake lock file updates:
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/9b19f5e77dd906cb52dade0b7bd280339d2a1f3d' (2024-01-13)
→ 'github:NixOS/nixpkgs/bbe7d8f876fbbe7c959c90ba2ae2852220573261' (2024-01-19)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-21 03:17:27 +00:00
Georgi Gerganov and GitHub
a5cacb22b2
imatrix : add README.md
2024-01-19 15:24:47 +02:00
Georgi Gerganov
de9a147df1
py : fix flake8 lint
2024-01-19 13:52:22 +02:00
Georgi Gerganov and GitHub
8b20858e5e
perplexity : faster Winogrande via batching ( #5024 )
...
* perplexity : faster Winogrande via batching
ggml-ci
* perplexity : remove unused function
* perplexity : only tokenize selected tasks for Winogrande
2024-01-19 10:45:06 +02:00
Georgi Gerganov
9b6ea4263a
cmake : add ggml public headers ( #5011 )
2024-01-18 23:36:07 +02:00
Georgi Gerganov
2d5419d08a
imatrix : fix assert for src0 non-cont check
2024-01-18 21:45:51 +02:00
Georgi Gerganov
d391ae9b49
perplexity : fix winogrande N tasks option
2024-01-18 20:49:00 +02:00
Georgi Gerganov
e9240cdfa0
scripts : add get-winogrande.sh
2024-01-18 20:45:39 +02:00
Georgi Gerganov and GitHub
ad19812cda
perplexity : faster HellaSwag via batching ( #5017 )
...
* perplexity : faster HellaSwag
ggml-ci
* perplexity : clean-up
ggml-ci
* perplexity : no need for decode_helper
ggml-ci
* perplexity : add comments
* perplexity : option to specify max batched tasks via `n_parallel`
* perplexity : remove HellaSwag restruction for n_batch
2024-01-18 15:33:01 +02:00
Georgi Gerganov
dcad445d0c
scritps : add helper script to get hellaswag data in txt format
2024-01-18 11:44:49 +02:00
Georgi Gerganov
6b6916b215
sync : ggml
2024-01-17 20:54:50 +02:00
Georgi Gerganov and GitHub
38566680cd
ggml : add IQ2 to test-backend-ops + refactoring ( #4990 )
...
* ggml : add IQ2 to test-backend-ops + refactoring
ggml-ci
* cuda : update supports_op for IQ2
ggml-ci
* ci : enable LLAMA_CUBLAS=1 for CUDA nodes
ggml-ci
* cuda : fix out-of-bounds-access in `mul_mat_vec_q`
ggml-ci
* tests : avoid creating RNGs for each Q tensor
ggml-ci
* tests : avoid creating RNGs for each tensor
ggml-ci
2024-01-17 18:54:56 +02:00
Georgi Gerganov and GitHub
ba69bbc84c
imatrix : offload to GPU support ( #4957 )
...
* backend : add eval callback
ggml-ci
* backend : group nodes in a single compute when user don't need them
* backend : clean-up the implementation
ggml-ci
* simple : do not perform tensor data copy if not needed
* simple : fix
* imatrix : offload to GPU support
* imatrix : fix ggml_mul_mat_id hanlding
ggml-ci
* ci : add imatrix test
ggml-ci
* ci : rearrange output
ggml-ci
2024-01-17 18:46:30 +02:00
Georgi Gerganov and GitHub
44a1a4a41a
backend : add eval callback ( #4935 )
...
* backend : add eval callback
ggml-ci
* backend : group nodes in a single compute when user don't need them
* backend : clean-up the implementation
ggml-ci
* simple : do not perform tensor data copy if not needed
* simple : fix
* simple : no need for ggml_is_contiguous + fix bool parse
* llama : fix callback placement in llama_context_params
* backend : avoid double-ask callback calls
* simple : restore examples, imatrix will serve as a demo
2024-01-17 18:39:41 +02:00
Georgi Gerganov and GitHub
c918fe8dca
metal : create autorelease pool during library build ( #4970 )
...
* metal : create autorelease pool during library build
ggml-ci
* test : simplify
ggml-ci
2024-01-17 18:38:39 +02:00
Georgi Gerganov
0f83e727af
py : fix whitespace
2024-01-17 18:37:36 +02:00
Georgi Gerganov and GitHub
4f4bf35f46
py : fix missing added_tokens_dict for SPM and BPE vocabs ( #4971 )
...
* py : fix missing added_tokens_dict for SPM vocab
* py : pad with unknown tokens when data is missing
ggml-ci
* py : fix BPE vocab conversion
ggml-ci
* py : fix padded dummy tokens (I hope)
2024-01-17 15:45:03 +02:00
Georgi Gerganov
5c99960901
py : remove unnecessary hasattr ( #4903 )
2024-01-16 20:59:31 +02:00
Georgi Gerganov and GitHub
959ef0c0df
perplexity : fix kv cache handling for hellaswag ( #4981 )
...
ggml-ci
2024-01-16 19:34:54 +02:00
c37b3474e6
flake.lock: update flake-parts, flake-parts/nixpkgs-lib, and nixpkgs ( #4920 )
...
Flake lock file updates:
• Updated input 'flake-parts':
'github:hercules-ci/flake-parts/34fed993f1674c8d06d58b37ce1e0fe5eebcb9f5' (2023-12-01)
→ 'github:hercules-ci/flake-parts/07f6395285469419cf9d078f59b5b49993198c00' (2024-01-11)
• Updated input 'flake-parts/nixpkgs-lib':
'github:NixOS/nixpkgs/e92039b55bcd58469325ded85d4f58dd5a4eaf58?dir=lib' (2023-11-29)
→ 'github:NixOS/nixpkgs/b0d36bd0a420ecee3bc916c91886caca87c894e9?dir=lib' (2023-12-30)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/cfc3698c31b1fb9cdcf10f36c9643460264d0ca8' (2023-12-27)
→ 'github:NixOS/nixpkgs/317484b1ead87b9c1b8ac5261a8d2dd748a0492d' (2024-01-08)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-16 09:13:54 -08:00
Georgi Gerganov
ddb008d845
cuda : fix dequantize kernel names ( #4938 )
2024-01-15 13:27:00 +02:00
Georgi Gerganov and GitHub
bb0c139247
llama : check LLAMA_TRACE env for extra logging ( #4929 )
...
* llama : minor fix indent
* llama : check LLAMA_TRACE env for extra logging
ggml-ci
2024-01-14 13:26:53 +02:00
Georgi Gerganov
9408cfdad6
scripts : sync-ggml-am.sh option to skip commits
2024-01-14 11:08:41 +02:00
Georgi Gerganov
03c5267490
llama : use LLAMA_LOG_ macros for logging
2024-01-14 11:03:19 +02:00
Georgi Gerganov
76484fbfd3
sync : ggml
2024-01-14 00:14:46 +02:00
Georgi Gerganov and GitHub
4be5ef556d
metal : remove old API ( #4919 )
...
ggml-ci
2024-01-13 20:45:45 +02:00
Georgi Gerganov and GitHub
0ea069b87b
server : fix prompt caching with system prompt ( #4914 )
2024-01-13 19:31:26 +02:00
f172de03f1
llama : fix detokenization of non-special added-tokens ( #4916 )
...
Co-authored-by: goerch <jhr.walter@t-online.de >
2024-01-13 18:47:38 +02:00
Georgi Gerganov
2d57de5255
metal : disable log for loaded kernels ( #4794 )
2024-01-13 18:46:37 +02:00
Georgi Gerganov and GitHub
b38b5e93ae
metal : refactor kernel loading code ( #4794 )
...
* metal : detect more GPU families
* metal : refactor kernel loading
* metal : set kernel family requirements
* metal : fix kernel init + fix compile options
* metal : take into account simdgroup reduction support
* metal : print only skipped kernels
* metal : fix check for simdgroup reduction support
* metal : check for Metal 3
* metal : free allocations
* metal : normalize encoder:setComputePipelineStatus calls
ggml-ci
* metal : fix Metal3 family check
ggml-ci
* metal : check for simdgroup matrix mul. feature
ggml-ci
2024-01-13 18:03:45 +02:00
Georgi Gerganov and GitHub
15ebe59210
convert : update phi-2 to latest HF repo ( #4903 )
...
* convert : update phi-2 to latest HF repo
ggml-ci
* py : try to fix flake stuff
2024-01-13 13:44:37 +02:00
Georgi Gerganov
de473f5f8e
sync : ggml
2024-01-12 22:02:43 +02:00
Georgi Gerganov
f238461236
ggml : fix 32-bit ARM compat for IQ2_XS (whisper/1758)
...
* ggml : fix 32-bit ARM compat
* ggml : fix fix
* ggml : fix fix fix
2024-01-12 22:02:11 +02:00
Georgi Gerganov
584d674be6
llama : remove redundant assert for StableLM ( #4901 )
2024-01-12 20:54:12 +02:00
Georgi Gerganov
5537d9d36b
gitignore : imatrix
2024-01-12 14:33:21 +02:00
Georgi Gerganov
3cabe80630
llama : fix typo "imp_embd" -> "inp_embd"
2024-01-12 13:11:15 +02:00
Georgi Gerganov
2d00741e12
py : fix lint ( #4889 )
2024-01-12 13:03:38 +02:00
Georgi Gerganov and GitHub
f445c0e68c
llama : fix llm_build_k_shift to use correct n_rot ( #4889 )
...
* llama : fix llm_build_k_shift to use correct n_rot
ggml-ci
* llama : always use hparams.n_rot for ggml_rope_custom
ggml-ci
* convert : fix persimmon conversion to write correct n_rot
2024-01-12 13:01:56 +02:00
Georgi Gerganov and GitHub
1d118386fe
server : fix infill when prompt is empty ( #4833 )
2024-01-11 23:23:49 +02:00
Georgi Gerganov
7edefbd79c
main : better name for variable n_print ( #4874 )
2024-01-11 22:46:26 +02:00
Georgi Gerganov
3ca63b4538
main : disable token count by default ( #4874 )
2024-01-11 22:43:05 +02:00
Georgi Gerganov
b037787548
swift : track ggml release branch ( #4867 )
2024-01-11 21:58:28 +02:00
Georgi Gerganov and GitHub
3ba5b8ca8e
swift : pin ggml commit + remove ggml.h from spm-headers ( #4878 )
...
ggml-ci
2024-01-11 21:31:31 +02:00
Georgi Gerganov
64802ec00d
sync : ggml
2024-01-11 09:39:08 +02:00
Georgi Gerganov
3267c2abc7
metal : fix deprecation warning (ggml/690)
2024-01-11 09:39:05 +02:00
Georgi Gerganov and GitHub
5c1980d8d4
server : fix build + rename enums ( #4870 )
2024-01-11 09:10:34 +02:00
Georgi Gerganov and GitHub
4dccb38d9a
metal : improve dequantize precision to match CPU ( #4836 )
...
ggml-ci
2024-01-09 19:37:08 +02:00
Georgi Gerganov
9a818f7c42
scripts : improve get-pg.sh ( #4838 )
2024-01-09 19:21:13 +02:00
Georgi Gerganov and GitHub
d9653894df
scripts : script to get Paul Graham essays in txt format ( #4838 )
2024-01-09 16:23:05 +02:00
Georgi Gerganov and GitHub
18c2e1752c
ggml : fix vld1q_s8_x4 32-bit compat ( #4828 )
...
* ggml : fix vld1q_s8_x4 32-bit compat
ggml-ci
* ggml : fix 32-bit ARM compat (cont)
ggml-ci
2024-01-09 10:42:06 +02:00
Georgi Gerganov and GitHub
a9a8c5de3d
readme : add link to SOTA models
2024-01-08 20:25:17 +02:00
Georgi Gerganov and GitHub
668b31fc7d
swift : exclude ggml-metal.metal from the package ( #4822 )
2024-01-08 16:40:51 +02:00
Georgi Gerganov and GitHub
42ea63c5a3
llama.swiftui : update readme
2024-01-08 15:57:36 +02:00
Georgi Gerganov and GitHub
52531fdff8
main : add self-extend support ( #4815 )
...
* examples : add passkey test
* passkey : better prints
* passkey : select pass key pos from CLI
* passkey : simplify n_past logic
* llama : "self-extend"-like context extension
* passkey : add comment
* main : add Self-Extend support
* llama : add comment about llama_kv_cache_seq_div
2024-01-08 11:18:32 +02:00
Georgi Gerganov and GitHub
b0034d93ce
examples : add passkey test ( #3856 )
...
* examples : add passkey test
* passkey : better prints
* passkey : select pass key pos from CLI
* passkey : simplify n_past logic
* make : add passkey target
* passkey : add "self-extend"-like context extension (#4810 )
* llama : "self-extend"-like context extension
* passkey : add comment
* passkey : add readme
2024-01-08 11:14:04 +02:00
Georgi Gerganov
9dede37d81
llama : remove unused vars ( #4796 )
2024-01-07 14:29:36 +02:00
Georgi Gerganov and GitHub
3c36213df8
llama : remove redundant GQA check ( #4796 )
2024-01-07 11:21:53 +02:00
Georgi Gerganov
d117d4dc5d
llama : print tensor meta for debugging
2024-01-07 09:51:12 +02:00
Georgi Gerganov and GitHub
67984921a7
server : fix n_predict check ( #4798 )
2024-01-07 08:45:26 +02:00
Georgi Gerganov
96e80dabc6
examples : improve base-translate.sh script ( #4783 )
2024-01-06 11:40:24 +02:00
Georgi Gerganov
91d38876df
metal : switch back to default.metallib (ggml/681)
...
ggml-ci
2024-01-05 18:02:06 +02:00
Georgi Gerganov
d061bf9405
ggml : fix q2_k bpw in comments (ggml/680)
2024-01-05 18:02:06 +02:00
Georgi Gerganov and GitHub
c1d7cb28d3
ggml : do not sched_yield when calling BLAS ( #4761 )
...
* ggml : do not sched_yield when calling BLAS
ggml-ci
* ggml : fix do_yield logic
ggml-ci
* ggml : simplify do_yield logic
ggml-ci
2024-01-05 15:18:21 +02:00
Georgi Gerganov and GitHub
3681f22443
examples : add few-shot translation example ( #4783 )
2024-01-05 15:11:10 +02:00
Georgi Gerganov and GitHub
012cf349ae
server : send token probs for "stream == false" ( #4714 )
2024-01-04 19:56:33 +02:00
Georgi Gerganov and GitHub
dc891b7f7a
ggml : include stdlib.h before intrin.h ( #4736 )
2024-01-04 10:12:26 +02:00
Georgi Gerganov and slaren
7bed7eba35
cuda : simplify expression
...
Co-authored-by: slaren <slarengh@gmail.com >
2024-01-03 14:38:38 +02:00
Georgi Gerganov
d55356d3ba
cuda : mark I16 and I32 ops as unsupported
...
ggml-ci
2024-01-03 14:38:38 +02:00
Georgi Gerganov
75e3fd8581
sync : ggml
...
ggml-ci
2024-01-03 14:38:38 +02:00
Georgi Gerganov
289313716f
metal : add kernel_get_rows_i32
...
ggml-ci
2024-01-03 14:38:38 +02:00
Georgi Gerganov
ab62fc3e55
scripts : fix sync order + metal sed
2024-01-03 14:38:38 +02:00