https://github.com/drbh/nnli
🔠interactively explore `onnx` networks in your CLI.
https://github.com/drbh/nnli
ai cli machine-learning neural-network onnx science
Last synced: about 1 year ago
JSON representation
🔠interactively explore `onnx` networks in your CLI.
- Host: GitHub
- URL: https://github.com/drbh/nnli
- Owner: drbh
- Created: 2023-11-18T17:37:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T17:04:18.000Z (about 2 years ago)
- Last Synced: 2025-04-02T04:54:03.717Z (about 1 year ago)
- Topics: ai, cli, machine-learning, neural-network, onnx, science
- Language: Rust
- Homepage: https://crates.io/crates/nnli
- Size: 61.5 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## nnli
[](https://crates.io/crates/nnli)
Interactively explore `safetensors` and `onnx` networks in your CLI.

Get `nnli` 🎉
From Cargo
```bash
cargo install nnli
```
From Github
```bash
git clone https://github.com/drbh/nnli.git
cd nnli
cargo install --path .
```
Check version
```bash
nnli --version
```
Print a local model
```bash
nnli print --path
```
```bash
# if the model is in your HF cache
nnli print --path microsoft/Phi-3-mini-4k-instruct
# when there is more than one revision, specify the revision
nnli print --path microsoft/Phi-3-mini-4k-instruct@d269012bea6fbe38ce7752c8940fea010eea3383
# or the full path
nnli print --path ~/.cache/huggingface/hub/models--microsoft--Phi-3-mini-4k-instruct/snapshots/d269012bea6fbe38ce7752c8940fea010eea3383/
```
This app is a work in progress, and there is a lot of room for improvement on both the code and user experience (UX) fronts.
features
- [x] read onnx models via `candle-onnx`
- [x] display nodes in tui via `ratatui`
- [x] extract and display node details in pane
- [x] improve color schema and ui layout
- [x] improve navigation
- [x] upload to crates.io
- [x] better install instructs
- [ ] build releases
- [ ] improve details output to show all relevant data
- [ ] highligh I/O of node on left
- [ ] add command to show only unique operations
- [ ] add commands to see other useful stats
- [x] support `safetensors` files
- [x] support file or directory input as `--path`