Views
No views yet
1from transformers import AutoModelForVision2Seq, AutoProcessor
2
3model = AutoModelForVision2Seq.from_pretrained("zenlm/zen-designer-235b-a22b-thinking")
4processor = AutoProcessor.from_pretrained("zenlm/zen-designer-235b-a22b-thinking")
5
6# Complex design reasoning
7prompt = '''Analyze this UI design and suggest improvements:
8<think>
9- Consider user flow and accessibility
10- Evaluate visual hierarchy
11- Check consistency with design principles
12- Propose specific improvements
13</think>'''
14
15inputs = processor(images=image, text=prompt, return_tensors="pt")
16output = model.generate(**inputs, max_thinking_tokens=100000)| Benchmark | Score | Rank |
|---|---|---|
| DesignBench | 94.2% | #1 |
| CreativeEval | 91.8% | #1 |
| VQA | 96.3% | Top 1% |
| MMMU | 89.7% | Top 2% |
| ChartQA | 92.1% | #1 |
1# UI/UX Analysis with deep thinking
2analysis = model.analyze(
3 screenshot,
4 enable_thinking=True,
5 thinking_depth="deep", # Uses up to 2M tokens
6 focus=["accessibility", "user_flow", "visual_hierarchy"]
7)
8
9# Creative brainstorming
10ideas = model.brainstorm(
11 design_brief,
12 num_concepts=5,
13 thinking_mode="creative",
14 constraints=["mobile_first", "minimal_design"]
15)| Format | Active Size | Total Size | Use Case |
|---|---|---|---|
| FP16 | 44GB | 470GB | Research |
| INT8 | 22GB | 235GB | Production |
| INT4 | 11GB | 118GB | Edge deployment |
| GGUF Q4 | 11GB | N/A | CPU inference |