Instructions to use immanuelpeter/Hy4-Vision with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use immanuelpeter/Hy4-Vision with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="immanuelpeter/Hy4-Vision", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("immanuelpeter/Hy4-Vision", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download NOTICE from immanuelpeter/Hy4-Vision: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/immanuelpeter/Hy4-Vision/resolve/main/NOTICE
- Command line
-
hf download hf://immanuelpeter/Hy4-Vision/NOTICE
-
curl -L -o NOTICE https://huggingface.co/immanuelpeter/Hy4-Vision/resolve/main/NOTICE
745 Bytes
| Hy4 Vision | |
| This release includes vision weights from Tencent Hy4. | |
| Source: https://huggingface.co/tencent/Hy4/tree/c10c0de5b6f850703fb0a90e65d1c32b558b9167 | |
| The weights are redistributed under the Tencent Hy License, Version 1.0. | |
| Changes: extracted the Tower and Projector from the parent checkpoint, | |
| removed the vit. prefix from tensor names, and added standalone modeling | |
| code. The benchmark uses 512-pixel RGB crops and omits image_newline tokens | |
| from the projected features. The original tensor values are preserved. | |
| Section 10 (Additional Commercial Terms) of the Tencent Hy License continues to apply to every recipient. | |
| modeling_hy4.py and examples/inference.py are original vision-tower-bench code under the MIT license in LICENSE-CODE. | |