Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tamaroning/lv8
An experimental wasm runtime for non-web embeddings based on V8
https://github.com/tamaroning/lv8
Last synced: about 1 month ago
JSON representation
An experimental wasm runtime for non-web embeddings based on V8
- Host: GitHub
- URL: https://github.com/tamaroning/lv8
- Owner: tamaroning
- License: other
- Created: 2024-11-04T10:25:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T07:36:53.000Z (3 months ago)
- Last Synced: 2024-11-07T08:28:37.289Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.v8
Awesome Lists containing this project
README
# LV8
An experimental wasm runtime leveraging V8.
# Build
```bash
git clone [email protected]:tamaroning/lv8.git
cd lv8
V8_FORCE_DEBUG=true cargo build
```# Run
```bash
cargo run
```To run the hello world example:
```bash
cargo run examples/hello.wasm
```## Run LLM (llama2.c)
The current directory (and its children) is mounted to the wasm runtime, so you can run the LLM example like this:
```bash
cd examples/llama2-c
cargo run llama2-c.wasm -- model.bin -n 256 -i 'Once upon a time'
```# License
MIT