|
Download README.md from Inserloft-AI/Valdam-Vision-2.5: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/Inserloft-AI/Valdam-Vision-2.5/resolve/main/README.md
- Command line
-
hf download hf://Inserloft-AI/Valdam-Vision-2.5/README.md
-
curl -L -o README.md https://huggingface.co/Inserloft-AI/Valdam-Vision-2.5/resolve/main/README.md
1.8 kB
metadata
language:
- en
- es
tags:
- vision-language
- image-to-text
- ocr
- safety-moderation
license: apache-2.0
metrics:
- bleu
- meteor
- rouge
ποΈ Valdam Vision 2.5
Valdam Vision 2.5 is a Multimodal Vision-Language Model (VLM) designed for scene description, spatial OCR, and Zero-Shot content moderation.
This release integrates visual patch projection from a pretrained Vision Transformer with a modular autoregressive Transformer Decoder.
π Key Features
- Autoregressive Text Generation: Generates descriptions by applying cross-attention over visual patch embeddings.
- Zero-Shot Moderation (Valdam Shield): Content screening powered by CLIP ViT-L/14 semantic similarity matching.
- Spatial Layout OCR: Reconstructs read order and paragraphs from designs using spatial coordinates.
- Inference Latency: Optimized pipeline with an average response time of ~0.08s on standard hardware.
π¦ Repository Structure
model.safetensors: Model weights in safe-tensors format containing header metadata.architecture.py: Model architecture definition (ViT Encoder & Transformer Decoder).inference.py: Script to initialize and run local predictions.config.json: Hyperparameters and model configuration.vocab.json: Mapping of vocabulary tokens.
π Quickstart
from inference import ValdamVisionLocalPredictor
# Initialize the predictor
predictor = ValdamVisionLocalPredictor(
safetensors_weights_path="model.safetensors",
config_path="config.json",
vocab_path="vocab.json",
device="cuda"
)
# Run prediction on a preprocessed image tensor
result = predictor.predict(image_tensor)
print(f"Result: {result}")