austinvhuang
b841620d6b
add using gemma as a library notes to DEVELOPERS
2024-02-29 23:52:59 -05:00
Paul Chang
ae7901c3f4
Minor style fix
...
Remove some obsolete TODOs.
PiperOrigin-RevId: 611571224
2024-02-29 13:08:26 -08:00
Jan Wassenberg
b6aaf6bbb8
Fix for Android's 32-bit off_t. Fixes #62
...
PiperOrigin-RevId: 611249534
2024-02-28 15:30:19 -08:00
Copybara-Service
c805fbe780
Merge pull request #66 from google:dev-cleanup
...
PiperOrigin-RevId: 611207602
2024-02-28 13:22:46 -08:00
austinvhuang
0ea7b993de
remove --log fixing https://github.com/google/gemma.cpp/issues/59 , improve command line args help, add copybara #include sort guards in more source files, add README sections on running faster and related projects
2024-02-28 15:18:40 -05:00
Jan Wassenberg
272f17ddb3
Warning fixes: unused member, cast, unused function
...
PiperOrigin-RevId: 611074887
2024-02-28 05:54:22 -08:00
Copybara-Service
f4a14bfdf2
Merge pull request #58 from google:dev-cleanup
...
PiperOrigin-RevId: 610942948
2024-02-27 18:47:38 -08:00
austinvhuang
060c8862dd
whitespace cleanup
2024-02-27 21:36:43 -05:00
austinvhuang
d37f9c3604
re-enable SortIncludes to conform to vanilla Google style, add comment lines to #includes in gemma.h as barriers to block destructive sorting, update doc + remove shell script
2024-02-27 21:23:33 -05:00
austinvhuang
8f3bd63bf7
Fix copybara include path substitutions errors (which break the google3 build) arising from clang-format linter automation
2024-02-27 17:11:15 -05:00
austinvhuang
f70d2de16f
use `style=Google` - dumped for .clang-format, gemma.h updated
2024-02-27 15:44:03 -05:00
Copybara-Service
1a1dd90287
Merge pull request #33 from shirayu:add_eot_option
...
PiperOrigin-RevId: 610838070
2024-02-27 12:32:01 -08:00
Dan Zheng
874deee302
Update DEVELOPERS.md
2024-02-27 11:32:33 -08:00
austinvhuang
9cdc9223bc
clean up formatting after 129e66ada2, add .clang-format defaults, minor updates to DEVELOPERS doc
2024-02-27 14:22:02 -05:00
Jan Wassenberg
179ecf9e78
Warn instead of assert for setaffinity. Fixes #49
...
PiperOrigin-RevId: 610638517
2024-02-26 22:46:11 -08:00
Jan Wassenberg
b3fecef45d
Warning fix: sign cast
...
PiperOrigin-RevId: 610635789
2024-02-26 22:31:39 -08:00
Dan Zheng
afc354dcb1
Import from GitHub.
...
PiperOrigin-RevId: 610595796
2024-02-26 19:05:11 -08:00
Dan Zheng
8db89304bd
No public description
...
PiperOrigin-RevId: 610498969
2024-02-26 19:03:48 -08:00
austinvhuang
129e66ada2
Reduce KV cache preallocation to 4096 and make it comptime configurable, add rm build note in readme, add note on comptime options in DEVELOPERS, make multiturn=0 the default
2024-02-26 17:05:32 -05:00
David Coles
7aeade5c9d
Copybara import of the project:
...
--
c64b6fd3a44b385e1502d2057bd8709edaebaa58 by David Coles <dcoles@dcoles.net>:
Include Windows in GitHub Actions build
This also preserves the `gemma` binary as a build artefact
should folks want to grab a pre-built binary.
Dropped the use of the lukka/cmake actions due to conflicts with `--preset`.
This isn't that bad as we were mostly overriding the default behaviour anyway.
It also shaves ~2 min off the build since the GitHub builders already
have CMake pre-installed.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/38 from dcoles:windows-build c64b6fd3a44b385e1502d2057bd8709edaebaa58
PiperOrigin-RevId: 610449220
2024-02-26 10:22:57 -08:00
Naoki Kishida
7ab968c957
Copybara import of the project:
...
--
26b541b666 by kishida <naokikishida@gmail.com>:
add information for the reseting conversation
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/40 from kishida:add_info_for_reset_conv 26b541b666
PiperOrigin-RevId: 610418671
2024-02-26 08:39:27 -08:00
Kewde
4e2efbcbd8
Copybara import of the project:
...
--
f4f2ff3c1a by kewde <kewde@particl.io>:
fix: add -fPIC to libgemma
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/42 from kewde:kewde/enable-fpic f4f2ff3c1a
PiperOrigin-RevId: 610416597
2024-02-26 08:31:06 -08:00
Dan Zheng
4c155bd3df
Restore reverted changes.
...
Sync to 84444c93a4 .
PiperOrigin-RevId: 610263918
2024-02-25 19:32:07 -08:00
Jan Wassenberg
6a3085828f
Fixes #37 , lambda issue: missing HWY_ATTR, and cannot capture SVE in/out vectors.
...
PiperOrigin-RevId: 610260610
2024-02-25 19:09:13 -08:00
Dan Zheng
1243be71c4
Copybara import of the project:
...
--
e0179bad83 by Dan Zheng <danielzheng@google.com>:
Rename BUILD to BUILD.bazel.
This fixes an error on macOS due to `build` and `BUILD` having conflicting names.
--
74b27074e1 by Dan Zheng <danielzheng@google.com>:
Enable macos-latest in GitHub Actions CI.
--
c08de58e6a by Dan Zheng <danielzheng@google.com>:
Fix concurrency key in GitHub Actions.
Use matrix configuration in concurrency key.
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/36 from dan-zheng:rename-build-bzl b4b978f02b
PiperOrigin-RevId: 610156681
2024-02-25 04:34:15 -08:00
Silvio Traversaro
696597383c
Copybara import of the project:
...
--
19694e1f2e by Silvio Traversaro <silvio@traversaro.it>:
Do not pass explicitly -O2 flag to compiler in Release build
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/3 from traversaro:patch-1 19694e1f2e
PiperOrigin-RevId: 610096914
2024-02-24 20:41:33 -08:00
Dan Zheng
84444c93a4
Revert "Copybara configuration update."
...
This reverts commit c03b5da542 .
Restore lost changes due to improper Copybara syncing.
2024-02-24 15:15:14 -08:00
Naoki Kishida
621434e424
reset conversation ( #34 )
2024-02-24 14:54:19 -08:00
Dan Zheng
3af439621e
Rename BUILD to BUILD.bazel. ( #36 )
...
* Rename BUILD to BUILD.bazel.
This fixes an error on macOS due to `build` and `BUILD` having conflicting names.
* Enable macos-latest in GitHub Actions CI.
* Fix concurrency key in GitHub Actions.
Use matrix configuration in concurrency key.
2024-02-24 14:52:59 -08:00
Dan Zheng
5fe31ad0bc
Copybara: rename BUILD to BUILD.bazel.
...
PiperOrigin-RevId: 610039263
2024-02-24 14:45:42 -08:00
austinvhuang
5b5c080b10
Merge branch 'main' into dev
2024-02-24 17:21:41 -05:00
Naoki Kishida
902adc5e62
reset conversation ( #34 )
2024-02-24 17:21:01 -05:00
Jan Wassenberg
e7a6f44ba5
Sync infra
...
PiperOrigin-RevId: 610035407
2024-02-24 13:00:00 -08:00
Dan Zheng
d9e1af7551
Copybara fix.
...
PiperOrigin-RevId: 610032760
2024-02-24 12:02:59 -08:00
Dan Zheng
c03b5da542
Copybara configuration update.
...
PiperOrigin-RevId: 609931218
2024-02-24 12:02:47 -08:00
Dan Zheng
4b1fa03e95
Fix build. ( #35 )
...
* Enable GitHub Actions CI for pull requests.
* Fix sentencepiece include directives.
2024-02-24 11:03:36 -08:00
Austin Huang
830dda09b0
Merge pull request #3 from traversaro/patch-1
...
Do not pass explicitly -O2 flag to compiler in Release build
2024-02-24 12:28:03 -05:00
Austin Huang
34b22c56f5
Merge pull request #6 from dcoles/clang-cl
...
Allow building on Windows using `clang-cl` toolchain
2024-02-24 12:27:40 -05:00
Austin Huang
ff8fb8cb9d
Merge remote-tracking branch 'origin/main' into dev
2024-02-24 11:06:31 -05:00
Austin Huang
d9f0b7bfba
Merge pull request #32 from shirayu/fix_typos
...
Fix typos
2024-02-24 11:03:30 -05:00
Yuta Hayashibe
1a95cf3274
Add --eot_line option
2024-02-24 23:27:33 +09:00
Yuta Hayashibe
65b20f9c55
Fix typos
2024-02-24 19:15:52 +09:00
Jan Wassenberg
4a0d23f47e
Add missing hn::, fixes #25
...
PiperOrigin-RevId: 609914890
2024-02-23 22:34:47 -08:00
Jan Wassenberg
af715d2436
Update readme to match code, see cl/609177092
...
PiperOrigin-RevId: 609912278
2024-02-23 22:34:08 -08:00
Ikko Eltociear Ashimine
e4e02a17d4
Copybara import of the project:
...
--
5c7dbc6599 by Ikko Eltociear Ashimine <eltociear@gmail.com>:
Update build.yml
dispath -> dispatch
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/22 from eltociear:patch-1 5c7dbc6599
PiperOrigin-RevId: 609827161
2024-02-23 22:32:51 -08:00
Jan Wassenberg
8f27580fb6
Merge branch 'dev' into clang-cl
2024-02-24 04:22:42 +01:00
Dan Zheng
7698e3c3de
Merge remote-tracking branch 'origin/main' into dev
2024-02-23 13:54:39 -08:00
Ikko Eltociear Ashimine
52e8b88bb0
Update build.yml ( #22 )
...
dispath -> dispatch
2024-02-23 12:58:39 -08:00
Austin Huang
0dfd720ddb
Merge pull request #24 from google/dev
...
Dev -> Main sync
2024-02-23 15:30:48 -05:00
The gemma.cpp Authors
a16df06cf2
Toward Bazel support: expose BUILD, add WORKSPACE/MODULE.bazel. Refs #16
...
PiperOrigin-RevId: 609734560
2024-02-23 08:23:18 -08:00