MAV
Project description
Introduction
MAV
Getting started
If uv is installed:
uv run --with openmav mav
or
uv run --with git+https://github.com/attentionmech/mav mav --model gpt2 --prompt "hello mello"
Without uv:
-
Set up and activate a virtual environment
-
Install the package:
pip install openmav
or
pip install git+https://github.com/attentionmech/mav
-
Run:
mav --model gpt2 --prompt "hello mello"
-
or Import
from openmav.mav import MAV MAV("gpt2", "Hello")
Locally from scratch
- git clone https://github.com/attentionmech/mav
- cd mav
- Set up and activate a virtual environment
- Install the package:
pip install .
- Run:
mav --model gpt2 --prompt "hello mello"
You can replace gpt2 with other Hugging Face models for example:
meta-llama/Llama-3.2-1BHuggingFaceTB/SmolLM-135Mgpt2-mediumgpt2-large
UI
Examples
running MAV with a training loop with a custom model (not pretrained one)
uv run examples/vis_train_loop.py
running MAV with custom panel selection and arrangement
uv run --with git+https://github.com/attentionmech/mav mav --model gpt2 --num-grid-rows 3 --selected-panels generated_text attention_entropy top_predictions --max-bar-length 20 --refresh-rate 0 --max-new-tokens 10000
Demos
Note: explore it using the command line help as well, since many sampling params are exposed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openmav-0.0.8.tar.gz.
File metadata
- Download URL: openmav-0.0.8.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
557c8b33a33c8e9fe288c3ffe3894f1e908688c2bb9a203daaca925af37c3e04
|
|
| MD5 |
cc3c6ae0ea063962fdaaac25bd4de65a
|
|
| BLAKE2b-256 |
f6bf0a5dc014a463517c06a10d8eff1cc9a32d24ba42f81af013768b92bf674b
|
File details
Details for the file openmav-0.0.8-py3-none-any.whl.
File metadata
- Download URL: openmav-0.0.8-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5003eafe363f4e47ac39149468737ae7a4a9a472ce4c363135f0a4b3bf28021b
|
|
| MD5 |
151df15bf65a25d370f19bbe9c926c66
|
|
| BLAKE2b-256 |
ad4d28e2a0627310467b63d020ae7fdaf203386f135f5cbf09b5d4d798b457bb
|