Instructions to use immanuelpeter/Muse-Glimmer-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use immanuelpeter/Muse-Glimmer-Vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="immanuelpeter/Muse-Glimmer-Vision")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("immanuelpeter/Muse-Glimmer-Vision") model = AutoModel.from_pretrained("immanuelpeter/Muse-Glimmer-Vision", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Link the card to its export and parity check in vision-tower-bench
Browse files
README.md
CHANGED
|
@@ -39,13 +39,13 @@ See [`examples/inference.py`](examples/inference.py) for image feature extractio
|
|
| 39 |
|
| 40 |
## Validation
|
| 41 |
|
| 42 |
-
The
|
| 43 |
pinned parent checkpoint using `torch.equal`. Fixed-image merged and projected outputs
|
| 44 |
also match the parent implementation bit-for-bit on CPU and in BF16 on an NVIDIA A100.
|
| 45 |
|
| 46 |
## Reproduction
|
| 47 |
|
| 48 |
-
The [export script](https://github.com/immanuel-peter/vision-tower-bench/blob/main/
|
| 49 |
reads the Tower and Projector ranges from both `meta-models/Muse-Glimmer-30B` shards. It
|
| 50 |
removes the parent prefixes, preserves the original BF16 weights, and extracts the image
|
| 51 |
section of the parent processor configuration. The script pins the parent revision.
|
|
|
|
| 39 |
|
| 40 |
## Validation
|
| 41 |
|
| 42 |
+
The [parity check](https://github.com/immanuel-peter/vision-tower-bench/blob/main/vtb/parity/muse_glimmer.py) compares all 806 Tower tensors and three Projector tensors with the
|
| 43 |
pinned parent checkpoint using `torch.equal`. Fixed-image merged and projected outputs
|
| 44 |
also match the parent implementation bit-for-bit on CPU and in BF16 on an NVIDIA A100.
|
| 45 |
|
| 46 |
## Reproduction
|
| 47 |
|
| 48 |
+
The [export script](https://github.com/immanuel-peter/vision-tower-bench/blob/main/vtb/adapters/muse_glimmer.py)
|
| 49 |
reads the Tower and Projector ranges from both `meta-models/Muse-Glimmer-30B` shards. It
|
| 50 |
removes the parent prefixes, preserves the original BF16 weights, and extracts the image
|
| 51 |
section of the parent processor configuration. The script pins the parent revision.
|