Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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