2 files changed
+16
-11
lines changed- .gitignore+2
- README.md+3-3
- build.zig+29-13
- examples/CMakeLists.txt+1
- examples/common.cpp+43
- examples/common.h+18-1
- examples/dolly-v2/main.cpp+7-7
- examples/gpt-2/main.cpp+7-7
- examples/gpt-j/main.cpp+8-8
- examples/gpt-neox/main.cpp+7-7
- examples/mpt/main.cpp+7-7
- examples/python/README.md+115
- examples/python/api.h+14
- examples/python/example_add_quant.py+25
- examples/python/example_test_all_quants.py+68
- examples/python/ggml/__init__.py+58
- examples/python/ggml/__init__.pyi+2.4k
- examples/python/ggml/cffi.py+11
- examples/python/ggml/ffi/__init__.pyi+7
- examples/python/ggml/utils.py+182
- examples/python/regenerate.py+42
- examples/python/stubs.py+128
- examples/python/test_tensor.py+258
- examples/replit/main.cpp+7-7
- examples/sam/CMakeLists.txt+13
- examples/sam/README.md+89
- examples/sam/convert-pth-to-ggml.py+134
- examples/sam/main.cpp+2.2k
- examples/starcoder/convert-hf-to-ggml.py+3-1
- examples/starcoder/main.cpp+7-7
- examples/stb_image.h+8.0k
- examples/stb_image_write.h+1.7k
- include/ggml/ggml-alloc.h+26
- include/ggml/ggml.h+237-37
- scripts/sync-llama.sh+2
- src/CMakeLists.txt+5-1
- src/ggml-alloc.c+579
- src/ggml-cuda.cu+1.0k-392
- src/ggml-cuda.h+19-23
- src/ggml-metal.h+9-3
- src/ggml-metal.m+88-128
- src/ggml-metal.metal+473-498
- src/ggml.c+1.9k-372
- tests/CMakeLists.txt+25
- tests/test-conv-transpose.c+175
- tests/test-rel-pos.c+84
- tests/test-xpos.c+87
Lines changed: 15 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 |
| |
255 | 260 |
| |
256 | 261 |
| |
| |||
899 | 904 |
| |
900 | 905 |
| |
901 | 906 |
| |
902 |
| - | |
| 907 | + | |
903 | 908 |
| |
904 | 909 |
| |
905 | 910 |
| |
| |||
929 | 934 |
| |
930 | 935 |
| |
931 | 936 |
| |
932 |
| - | |
| 937 | + | |
933 | 938 |
| |
934 | 939 |
| |
935 | 940 |
| |
| |||
1122 | 1127 |
| |
1123 | 1128 |
| |
1124 | 1129 |
| |
1125 |
| - | |
| 1130 | + | |
1126 | 1131 |
| |
1127 | 1132 |
| |
1128 | 1133 |
| |
| |||
1424 | 1429 |
| |
1425 | 1430 |
| |
1426 | 1431 |
| |
1427 |
| - | |
| 1432 | + | |
1428 | 1433 |
| |
1429 | 1434 |
| |
1430 | 1435 |
| |
| |||
1815 | 1820 |
| |
1816 | 1821 |
| |
1817 | 1822 |
| |
1818 |
| - | |
| 1823 | + | |
1819 | 1824 |
| |
1820 | 1825 |
| |
1821 | 1826 |
| |
| |||
1919 | 1924 |
| |
1920 | 1925 |
| |
1921 | 1926 |
| |
1922 |
| - | |
| 1927 | + | |
1923 | 1928 |
| |
1924 | 1929 |
| |
1925 | 1930 |
| |
| |||
1941 | 1946 |
| |
1942 | 1947 |
| |
1943 | 1948 |
| |
1944 |
| - | |
| 1949 | + | |
1945 | 1950 |
| |
1946 | 1951 |
| |
1947 | 1952 |
| |
| |||
2028 | 2033 |
| |
2029 | 2034 |
| |
2030 | 2035 |
| |
2031 |
| - | |
| 2036 | + | |
2032 | 2037 |
| |
2033 | 2038 |
| |
2034 | 2039 |
| |
| |||
2253 | 2258 |
| |
2254 | 2259 |
| |
2255 | 2260 |
| |
2256 |
| - | |
| 2261 | + | |
2257 | 2262 |
| |
2258 | 2263 |
| |
2259 | 2264 |
| |
| |||
2435 | 2440 |
| |
2436 | 2441 |
| |
2437 | 2442 |
| |
2438 |
| - | |
| 2443 | + | |
2439 | 2444 |
| |
2440 | 2445 |
| |
2441 | 2446 |
| |
|
0 commit comments