Skip to content

Commit

Permalink
chore: fix style + bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Jun 8, 2024
1 parent 93d72e5 commit 7e0412f
Show file tree
Hide file tree
Showing 40 changed files with 668 additions and 1,616 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ serde_json = "1.0"
safetensors = "0.4.0"

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "=0.2.84"
wasm-bindgen = "=0.2.90"
getrandom = { version = "0.2", features = ["js"] }
js-sys = "0.3.61"
js-sys = "0.3.67"
4 changes: 2 additions & 2 deletions crates/tokenizers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ serde = {version = "1.0", features = ["derive"]}
serde_json = "1.0"
serde-wasm-bindgen = "0.6.0"
tokenizers = { version="0.14.1", default-features=false, features = ["unstable_wasm"]}
wasm-bindgen = "=0.2.84"
wasm-bindgen = "=0.2.90"
getrandom = { version = "0.2", features = ["js"] }
js-sys = "0.3.61"
js-sys = "0.3.67"
4 changes: 2 additions & 2 deletions data/data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Rank, Tensor } from "../mod.ts";
import { CsvLoaderConfig, loadCsv } from "./datasets/csv.ts";
import type { Rank, Tensor } from "../mod.ts";
import { type CsvLoaderConfig, loadCsv } from "./datasets/csv.ts";
import type { DataLike } from "./types.ts";

export class Data {
Expand Down
2 changes: 1 addition & 1 deletion data/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Rank, Tensor } from "../mod.ts";
import type { Rank, Tensor } from "../mod.ts";

export interface DataLike {
/**
Expand Down
7 changes: 4 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@denosaurs/netsaur",
"version": "0.3.1-patch",
"version": "0.3.2",
"exports": {
".": "./mod.ts",
"./tokenizers": "./tokenizers/mod.ts",
"./visualizer": "./visualizer/mod.ts",
"./data": "./data/mod.ts"
},
"tasks": {
Expand All @@ -27,7 +28,7 @@
"build": "deno task build:cpu && deno task build:wasm && deno task build:tokenizers",
"build:cpu": "cargo build --release -p netsaur",
"build:gpu": "cargo build --release -p netsaur-gpu",
"build:wasm": "deno run -A https://deno.land/x/wasmbuild@0.11.0/main.ts -p netsaur --out src/backends/wasm/lib",
"build:tokenizers": "deno run -A https://deno.land/x/wasmbuild@0.11.0/main.ts -p netsaur-tokenizers --out tokenizers/lib"
"build:wasm": "deno run -Ar https://deno.land/x/wasmbuild@0.15.6/main.ts -p netsaur --out src/backends/wasm/lib",
"build:tokenizers": "deno run -Ar https://deno.land/x/wasmbuild@0.15.6/main.ts -p netsaur-tokenizers --out tokenizers/lib"
}
}
Loading

0 comments on commit 7e0412f

Please sign in to comment.