Skip to content

Commit

Permalink
final py/js/declvm -> *ctrl renames
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Jan 11, 2024
1 parent 8af4cb0 commit 2e3ace8
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 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 declctrl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aici_declvm"
name = "aici_declctrl"
version = "0.1.0"
edition = "2021"

Expand All @@ -17,5 +17,5 @@ vob = "3.0.3"
rustc-hash = "1.1.0"

[[bin]]
name = "aici_declvm"
name = "aici_declctrl"
path = "src/declctrl.rs"
2 changes: 1 addition & 1 deletion declctrl/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
set -e
cargo build --release
BIN=$(cd ../target; pwd)
cp $BIN/wasm32-wasi/release/aici_declvm.wasm $BIN/opt.wasm
cp $BIN/wasm32-wasi/release/aici_declctrl.wasm $BIN/opt.wasm
ls -l $BIN/opt.wasm
if [ "X$1" = "Xbuild" ] ; then
exit
Expand Down
4 changes: 2 additions & 2 deletions jsctrl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aici_jsvm"
name = "aici_jsctrl"
version = "0.1.0"
edition = "2021"

Expand All @@ -19,7 +19,7 @@ rquickjs = { git = "https://github.com/mmoskal/rquickjs", rev = "5b0e3b24d5021d3
# rquickjs = { path = "../tmp/rquickjs", features = ["array-buffer", "macro"] }

[[bin]]
name = "aici_jsvm"
name = "aici_jsctrl"
path = "src/jsctrl.rs"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion jsctrl/ts/aici.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export class AiciAsync {
this.post_process = this.post_process.bind(this);
f()
.then(async () => {
console.log("JSVM: done");
console.log("JsCtrl: done");
while (true) {
await new StopToken().run();
}
Expand Down
20 changes: 10 additions & 10 deletions promptlib/notebooks/aici_server_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -776,7 +776,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -814,7 +814,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand All @@ -838,7 +838,7 @@
"metadata": {},
"outputs": [],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -877,7 +877,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -925,7 +925,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -962,7 +962,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down Expand Up @@ -2125,7 +2125,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
Expand Down Expand Up @@ -2153,7 +2153,7 @@
"metadata": {},
"outputs": [],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
Expand Down Expand Up @@ -2237,7 +2237,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrlrlrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion promptlib/notebooks/ignore-check.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion promptlib/notebooks/test_token_boundaries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"metadata": {},
"outputs": [],
"source": [
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declvm/target/opt.wasm\")\n",
"ep = AICI(base_url=\"http://127.0.0.1:8080/v1/\", wasm_runner_path=\"/workspaces/aici/declctrl/target/opt.wasm\")\n",
"\n",
"endpoint = PromptNode().set_endpoint(ep)\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions pyctrl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "aici_pyvm"
name = "aici_pyctrl"
version = "0.1.0"
edition = "2021"

Expand All @@ -18,7 +18,7 @@ once_cell = "1.18.0"
indexmap = { version = "2.1.0", features = ["std"] }

[[bin]]
name = "aici_pyvm"
name = "aici_pyctrl"
path = "src/pyctrl.rs"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion pyctrl/wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x
set -e
cargo build --release
BIN=$(cd ../target; pwd)
cp $BIN/wasm32-wasi/release/aici_pyvm.wasm $BIN/opt.wasm
cp $BIN/wasm32-wasi/release/aici_pyctrl.wasm $BIN/opt.wasm
ls -l $BIN/opt.wasm
# curl -X POST -T "$BIN/opt.wasm" "http://127.0.0.1:8080/v1/aici_modules"
if [ "X$1" = "Xbuild" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def upload_wasm():
)
if r.returncode != 0:
sys.exit(1)
file_path = prj_dir + "/target/wasm32-wasi/release/aici_declvm.wasm"
file_path = prj_dir + "/target/wasm32-wasi/release/aici_declctrl.wasm"
pyaici.rest.log_level = 0
ast_module = pyaici.rest.upload_module(file_path)

Expand Down

0 comments on commit 2e3ace8

Please sign in to comment.