Skip to content

[Docs] ggml: add TriLM and BitNet documents in basic/README.md #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions wasmedge-ggml/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,26 @@ $ wasmedge --dir .:. \
--nn-preload default:GGML:AUTO:grok-1-Q2_K-split-00001-of-00009.gguf \
wasmedge-ggml-basic.wasm default 'hello'
```

## TriLM & BitNet Models

After the following pull requests are merged, the `TriLM` and `BitNet` models will be supported by the `ggml` plugin with model type `TQ1_0` and `TQ2_0`:
- https://github.com/ggerganov/llama.cpp/pull/7931
- https://github.com/ggerganov/llama.cpp/pull/8151

### Get the Model

Download the `TriLM` model:

```bash
curl -LO https://huggingface.co/Green-Sky/TriLM_3.9B-GGUF/resolve/main/TriLM_3.9B_Unpacked-4.0B-TQ2_0.gguf
```

### Execute

```console
$ wasmedge --dir .:. \
--env n_predict=100 \
--nn-preload default:GGML:AUTO:TriLM_3.9B_Unpacked-4.0B-TQ2_0.gguf \
wasmedge-ggml-basic.wasm default
```
Loading