Commit 13ee2a2
* chore: add `deno_cache` crate
* feat(sb_core): expose `deno_cache` to js land
**NOTE:** saving cache in `temp folder` consider move it to a better
location
* stamp: add example for cache api
* stamp: add `onnxruntime` cache adapter
- adding a cache adapter that intercepts `transformers-cache`
- fetch and caching models from rust land
* fix: tracing wrong import
* test(sb_ai): adding `ort` snapshots in a separated file
- using a separated file to store `ort` predictions snapshots for both
`x64` and `arm64`.
* stamp(test): add test command with debug support
- Checking for `RUST_LOG` env, then executing tests as `debug` with
tracing enabled
* fix(sb_ai): apply url check before `load_from_url()`
- Applying url check to prevent request errors, matching between `Url`
and `Model Bytes`.
* test(sb_ai): add integration tests for `ort cache`
- Adding tests scenarios for `env.useBrowserCache = true`
* stamp: clippy :)
* chore: rid all things that are related to model downloading
* chore: cleanup ort integration tests
* refactor(sb_ai): polishing and cleanup
* stamp: cleanup
* stamp: polishing
* chore: update dependencies
* chore: update `Cargo.lock`
* stamp(sb_ai): polishing
* chore: allow `install_onnx.sh` able to be used in another os
* chore: add x86_64 snapshots of ort integration tests
* stamp: attach the os prefix to snapshots
* stamp: should be cleanup unused sessions while running integration tests
* chore: add x86_64 (linux) snapshots of ort integration tests
* stamp: snapshots must not be created in CI
* stamp: disabling `Web Cache API` for general use
- blocking `Web Cache API` to only allow caching of `.onnx` files
comming from `transformers.js` lib.
* stamp: format
* stamp: allow cache dir to be specified through env var
* stamp: apply `cargo fmt`
* Revert "stamp(test): add test command with debug support"
This reverts commit d6bf8a7.
* stamp: solve merge conflicts
* chore: add aarch64 (osx) snapshots for integration tests
(cherry picked from commit 8f9a535)
---------
Co-authored-by: Nyannyacha <meow@nnc.gg>
Co-authored-by: Nyannyacha <nyannyacha@nnc.gg>
1 parent 997f2d9 commit 13ee2a2
File tree
132 files changed
+2004
-700
lines changed- .devcontainer
- .github/workflows
- crates
- base
- src
- rt_worker
- utils
- test_cases/ai-ort-rust-backend
- main
- transformers-js
- feature-extraction-cache
- __snapshot__
- feature-extraction
- __snapshot__
- fill-mask-cache
- __snapshot__
- fill-mask
- __snapshot__
- image-classification-cache
- __snapshot__
- image-classification
- __snapshot__
- image-feature-extraction-cache
- __snapshot__
- image-feature-extraction
- __snapshot__
- question-answering-cache
- __snapshot__
- question-answering
- __snapshot__
- summarization-cache
- text-classification-cache
- __snapshot__
- text-classification
- __snapshot__
- text-generation-cache
- text2text-generation-cache
- token-classification-cache
- __snapshot__
- token-classification
- __snapshot__
- translation-cache
- zero-shot-classification-cache
- __snapshot__
- zero-shot-classification
- __snapshot__
- zero-shot-image-classification-cache
- __snapshot__
- zero-shot-image-classification
- __snapshot__
- tests
- sb_ai
- js
- onnxruntime
- onnxruntime
- sb_core
- js
- sb_env
- sb_os
- examples
- cache-api
- k6-ort-rust-backend
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
132 files changed
+2004
-700
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
159 | | - | |
| 160 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
| |||
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
73 | | - | |
74 | 68 | | |
75 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
134 | 141 | | |
135 | 142 | | |
136 | 143 | | |
137 | | - | |
| 144 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
526 | 527 | | |
527 | 528 | | |
528 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
529 | 554 | | |
530 | 555 | | |
531 | 556 | | |
| |||
575 | 600 | | |
576 | 601 | | |
577 | 602 | | |
| 603 | + | |
578 | 604 | | |
579 | 605 | | |
580 | 606 | | |
| |||
694 | 720 | | |
695 | 721 | | |
696 | 722 | | |
697 | | - | |
698 | | - | |
699 | 723 | | |
700 | 724 | | |
701 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
702 | 729 | | |
703 | 730 | | |
704 | 731 | | |
| |||
805 | 832 | | |
806 | 833 | | |
807 | 834 | | |
808 | | - | |
809 | | - | |
| 835 | + | |
| 836 | + | |
810 | 837 | | |
811 | 838 | | |
812 | 839 | | |
| |||
0 commit comments