Views
No views yet
| Parameter | Value |
|---|---|
| Learning Rate | 1e-5 |
| LR Schedule | Cosine decay |
| Warmup Fraction | 5% |
| Min LR | 1e-6 |
| Optimizer | Adam (β₁=0.9, β₂=0.95, ε=1e-8) |
| Weight Decay | 0.1 |
| Gradient Clipping | 1.0 |
| Global Batch Size | 32 |
| Micro Batch Size | 1 |
| Epochs | 1 |
| Max Sequence Length | 200,000 |
| Attention Backend | Flash Attention |
visual.visual)visual.visual.merger)core_attn| Configuration | Value |
|---|---|
| GPUs | 8 |
| Data Parallel Size | 4 |
| Tensor Parallel Size | 2 |
| Sequence Parallel | Enabled |
| Distributed Optimizer | Enabled |
| Optimizer CPU Offload | Enabled |
1from transformers import AutoModelForVision2Seq, AutoProcessor
2
3model = AutoModelForVision2Seq.from_pretrained(
4 "Estwld/Qwen3.5-9B-rednote-200K",
5 torch_dtype="auto",
6 device_map="auto"
7)
8processor = AutoProcessor.from_pretrained("Estwld/Qwen3.5-9B-rednote-200K")
9
10# Chat with the model
11messages = [
12 {"role": "user", "content": [
13 {"type": "image", "image": "https://example.com/image.jpg"},
14 {"type": "text", "text": "Describe this image."}
15 ]}
16]
17inputs = processor.apply_chat_template(
18 messages,
19 tokenize=True,
20 add_generation_prompt=True,
21 return_tensors="pt"
22).to(model.device)
23
24outputs = model.generate(inputs, max_new_tokens=1024)
25print(processor.decode(outputs[0], skip_special_tokens=True))