Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit e1685e6

Browse files
authored
feature: init cli, upgrade llama-node with latest ggml implementation (#10)
* fix: download incorrect artifacts branch * feat: impl cli * fix: cli * feat: upgrade to newest ggml * feat: init cli * chore: version * fix: ci * fix: ci * chore: add cache to npm
1 parent c59495c commit e1685e6

26 files changed

+1319
-3753
lines changed

.github/workflows/llama-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ jobs:
4444
- uses: actions/setup-node@v3
4545
with:
4646
node-version: '18'
47+
cache: 'npm'
4748
# - name: Install ziglang
4849
# uses: goto-bus-stop/setup-zig@v1
4950
# with:
5051
# version: 0.10.0
5152
# - run: cargo install cargo-xwin
5253
- run: npm install
5354
- run: cargo clippy --all-targets --all-features
55+
working-directory: ./packages/core
5456
- run: npm run --workspace=packages/core cross-compile
5557
- run: npm run type-check
5658
- uses: actions/upload-artifact@v3

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
target/
22
node_modules/
33
*.bin
4-
dist/
4+
dist/
5+
miscellaneous/models/7B

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __test__/
33
node_modules/
44
target/
55
*.bin
6-
rustfmt.toml
6+
rustfmt.toml
7+
miscellaneous/

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rust-analyzer.linkedProjects": [
3+
"packages/core/Cargo.toml",
4+
]
5+
}

Cargo.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,4 @@ llama
249249
- [ ] prompt extensions
250250
- [ ] more platforms and cross compile (performance related)
251251
- [ ] tweak embedding API, make end token configurable
252+
- [ ] cli and interactive
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eeec4125e9c7560836b4873b6f8e3025 tokenizer.model

0 commit comments

Comments
 (0)