Skip to content

Commit

Permalink
Fix module/rank dropout
Browse files Browse the repository at this point in the history
  • Loading branch information
rockerBOO committed Jan 29, 2025
1 parent a04068b commit 577e170
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ build-wasm:
build-frontend:
yarn --cwd $(WASM_DIR) build

.PHONY: build-frontend
preview:
make build-wasm && yarn --cwd $(WASM_DIR) preview

build:
make build-wasm && make build-frontend

# Start a local HTTP server for serving the WASM package (simple)
.PHONY: dev-wasm
dev-wasm:
Expand All @@ -43,6 +50,9 @@ dev-wasm:
dev-wasm-cors:
cd $(WASM_DIR) && python simple-cors-server.py

deploy:
fly deploy

.PHONY:
wasm-bindgen-test:
wasm-pack test --headless --firefox crates/lora-inspector-wasm
Expand Down
4 changes: 2 additions & 2 deletions crates/lora-inspector-wasm/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,13 @@ function Network({ metadata }) {
name: "Module dropout",
valueClassName: "number",
value:
"module_dropout" in networkArgs ? networkArgs.module_dropout : "None",
networkArgs && "module_dropout" in networkArgs ? networkArgs.module_dropout : "None",
}),
h(MetaAttribute, {
name: "Rank dropout",
valueClassName: "number",
value:
"rank_dropout" in networkArgs ? networkArgs.rank_dropout : "None",
networkArgs && "rank_dropout" in networkArgs ? networkArgs.rank_dropout : "None",
}),
),
h(
Expand Down

0 comments on commit 577e170

Please sign in to comment.