Update README with Zen branding
Browse files
README.md
CHANGED
|
@@ -1,91 +1,50 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- vision-language
|
| 5 |
-
- multimodal
|
| 6 |
-
- function-calling
|
| 7 |
-
- visual-agents
|
| 8 |
-
- qwen3-vl
|
| 9 |
-
- zen
|
| 10 |
-
language:
|
| 11 |
-
- en
|
| 12 |
-
- multilingual
|
| 13 |
-
base_model:
|
| 14 |
-
- Qwen/Qwen3-VL-4B-Instruct
|
| 15 |
library_name: transformers
|
| 16 |
pipeline_tag: image-text-to-text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
-
# Zen
|
| 20 |
-
|
| 21 |
-
Zen VL 4B Agent - Vision-language model with function calling and tool use capabilities
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 26 |
-
- **Parameters**: 4B
|
| 27 |
-
- **Context Window**: 256K tokens (expandable to 1M)
|
| 28 |
-
- **License**: Apache 2.0
|
| 29 |
-
- **Training**: Fine-tuned with Zen identity and function calling
|
| 30 |
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
-
|
| 34 |
-
- π **OCR**: Text extraction in 32 languages
|
| 35 |
-
- π§ **Multimodal Reasoning**: STEM, math, code generation
|
| 36 |
-
- π οΈ **Function Calling**: Tool use with visual context
|
| 37 |
-
- π€ **Visual Agents**: GUI interaction, parameter extraction
|
| 38 |
-
|
| 39 |
-
## Usage
|
| 40 |
|
| 41 |
```python
|
| 42 |
-
from
|
| 43 |
-
from PIL import Image
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
device_map="auto"
|
| 49 |
)
|
| 50 |
-
processor = AutoProcessor.from_pretrained("zenlm/zen-vl-4b-agent")
|
| 51 |
-
|
| 52 |
-
# Process image
|
| 53 |
-
image = Image.open("example.jpg")
|
| 54 |
-
prompt = "What's in this image?"
|
| 55 |
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
- π **Website**: [zenlm.org](https://zenlm.org)
|
| 69 |
-
- π **GitHub**: [zenlm/zen-vl](https://github.com/zenlm/zen-vl)
|
| 70 |
-
- π **Paper**: Coming soon
|
| 71 |
-
- π€ **Model Family**: [zenlm](https://huggingface.co/zenlm)
|
| 72 |
-
|
| 73 |
-
## Citation
|
| 74 |
-
|
| 75 |
-
```bibtex
|
| 76 |
-
@misc{zenvl2025,
|
| 77 |
-
title={Zen VL: Vision-Language Models with Integrated Function Calling},
|
| 78 |
-
author={Hanzo AI Team},
|
| 79 |
-
year={2025},
|
| 80 |
-
publisher={Zen Language Models},
|
| 81 |
-
url={https://github.com/zenlm/zen-vl}
|
| 82 |
-
}
|
| 83 |
```
|
| 84 |
|
| 85 |
## License
|
| 86 |
|
| 87 |
Apache 2.0
|
| 88 |
-
|
| 89 |
-
---
|
| 90 |
-
|
| 91 |
-
Created by [Hanzo AI](https://hanzo.ai) for the Zen model family.
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
pipeline_tag: image-text-to-text
|
| 4 |
+
tags:
|
| 5 |
+
- vision-language
|
| 6 |
+
- multimodal
|
| 7 |
+
- zen
|
| 8 |
+
- hanzo
|
| 9 |
+
license: apache-2.0
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Zen VL 4B Agent
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
**Zen LM by Hanzo AI** β Compact vision-language agent for multimodal reasoning.
|
| 15 |
|
| 16 |
+
## Specs
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
| Property | Value |
|
| 19 |
+
|----------|-------|
|
| 20 |
+
| Parameters | 4B |
|
| 21 |
+
| Context Length | 32,768 tokens |
|
| 22 |
+
| Architecture | Zen MoDE (Mixture of Distilled Experts) |
|
| 23 |
+
| Task | Vision-Language / Agent |
|
| 24 |
|
| 25 |
+
## API Access
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
```python
|
| 28 |
+
from openai import OpenAI
|
|
|
|
| 29 |
|
| 30 |
+
client = OpenAI(
|
| 31 |
+
base_url='https://api.hanzo.ai/v1',
|
| 32 |
+
api_key='your-api-key',
|
|
|
|
| 33 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
response = client.chat.completions.create(
|
| 36 |
+
model='zen-vl-4b-agent',
|
| 37 |
+
messages=[{
|
| 38 |
+
'role': 'user',
|
| 39 |
+
'content': [
|
| 40 |
+
{'type': 'text', 'text': 'What is in this image?'},
|
| 41 |
+
{'type': 'image_url', 'image_url': {'url': 'https://example.com/image.jpg'}},
|
| 42 |
+
],
|
| 43 |
+
}],
|
| 44 |
+
)
|
| 45 |
+
print(response.choices[0].message.content)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
```
|
| 47 |
|
| 48 |
## License
|
| 49 |
|
| 50 |
Apache 2.0
|
|
|
|
|
|
|
|
|
|
|
|