Image-Text-to-Text
Transformers
Safetensors
multilingual
spec_vision
text-generation
spec-vision
vision-language-model
conversational
custom_code
Run this model with HF Jobs
Run SVECTOR-CORPORATION/Spec-Vision-V1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SVECTOR-CORPORATION/Spec-Vision-V1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SVECTOR-CORPORATION/Spec-Vision-V1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SVECTOR-CORPORATION/Spec-Vision-V1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SVECTOR-CORPORATION/Spec-Vision-V1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use SVECTOR-CORPORATION/Spec-Vision-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SVECTOR-CORPORATION/Spec-Vision-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SVECTOR-CORPORATION/Spec-Vision-V1", trust_remote_code=True) messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("SVECTOR-CORPORATION/Spec-Vision-V1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SVECTOR-CORPORATION/Spec-Vision-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SVECTOR-CORPORATION/Spec-Vision-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SVECTOR-CORPORATION/Spec-Vision-V1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SVECTOR-CORPORATION/Spec-Vision-V1
- SGLang
How to use SVECTOR-CORPORATION/Spec-Vision-V1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SVECTOR-CORPORATION/Spec-Vision-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SVECTOR-CORPORATION/Spec-Vision-V1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SVECTOR-CORPORATION/Spec-Vision-V1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SVECTOR-CORPORATION/Spec-Vision-V1", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use SVECTOR-CORPORATION/Spec-Vision-V1 with Docker Model Runner:
docker model run hf.co/SVECTOR-CORPORATION/Spec-Vision-V1
Update README.md
Browse files3 unmodified lines45678910111213141516171819202122232425262728293031323334353637383 unmodified lines- spec-vision- vision-language-model- transformerslicense: apache-2.0---# SpecVision ModelThis is the SpecVision model, a vision-language model based on the transformers architecture.## Model DescriptionSpecVision is designed for vision-language tasks, combining visual and textual understanding capabilities.## Usage```pythonfrom transformers import AutoConfig, AutoModelForCausalLM, AutoProcessor# Load the model and processormodel = AutoModelForCausalLM.from_pretrained("Spec-4B-Vision-V1")processor = AutoProcessor.from_pretrained("Spec-4B-Vision-V1")# Process inputsinputs = processor(images=image, text=text, return_tensors="pt")outputs = model(**inputs)```## Training and Evaluation[Add your training and evaluation details here]## Limitations and Biases[Add any known limitations and biases here]3 unmodified lines4567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701713 unmodified lines- spec-vision- vision-language-model- transformerslicense: mit---# Model SummarySpec-Vision-V1 is a lightweight, state-of-the-art open multimodal model built on datasets that include synthetic data and filtered publicly available sources, with a focus on high-quality, reasoning-dense data in both text and vision. The model belongs to the SpecVision family and supports a 128K context length (in tokens). It has undergone a rigorous enhancement process, incorporating supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.# π Model Overview**Spec-Vision-V1** is built for **deep integration of visual and textual data**, enabling it to understand and process images in combination with natural language. The model has been trained on a diverse dataset containing images with associated captions, descriptions, and contextual information.### β¨ Key Features- **πΌοΈ Multimodal Processing**: Seamlessly combines image and text inputs.- **β‘ Transformer-Based Architecture**: High efficiency in vision-language understanding.- **π Optimized for VQA & Captioning**: Excels in answering visual questions and generating descriptions.- **π₯ Pre-trained Model**: Available for inference and fine-tuning.---## π InstallationTo use Spec-Vision-V1, install the required dependencies:```bashpip install transformers torch torchvision pillow```---## π₯ Usage### Load the Model```pythonfrom transformers import AutoModelForCausalLM, AutoProcessorfrom PIL import Imageimport torch# Load the model and processormodel_name = "Spec-Vision-V1"model = AutoModelForCausalLM.from_pretrained(model_name)processor = AutoProcessor.from_pretrained(model_name)# Load an example imageimage = Image.open("example.jpg")# Input text prompttext = "Describe the image in detail."# Process inputsinputs = processor(images=image, text=text, return_tensors="pt")# Generate outputwith torch.no_grad():outputs = model(**inputs)# Print the generated textprint(outputs)```---## π Model Specifications| Attribute | Description ||-----------------|----------------------------------------------|| **Model Name** | Spec-Vision-V1 || **Architecture** | Transformer-based Vision-Language Model || **Pretrained** | β Yes || **Dataset** | Trained on diverse image-text pairs || **Framework** | PyTorch & Hugging Face Transformers |---## π― Applications| Task | Description ||--------------------------|--------------------------------------------------------------|| **πΌοΈ Image Captioning** | Generates detailed descriptions for input images. || **π§ Visual Question Answering** | Answers questions about images. || **π Image-Text Matching** | Determines the relevance of an image to a given text. || **π Scene Understanding** | Extracts insights from complex visual data. |---## BLINK BenchmarkA benchmark with 14 visual tasks that humans can solve very quickly but are still hard for current multimodal LLMs.| Benchmark | Spec-Vision-V1 | LlaVA-Interleave-Qwen-7B | InternVL-2-4B | InternVL-2-8B | Gemini-1.5-Flash | GPT-4o-mini | Claude-3.5-Sonnet | Gemini-1.5-Pro | GPT-4o ||--------------------------|--------------|--------------------------|---------------|---------------|------------------|-------------|-------------------|----------------|--------|| Art Style | 87.2 | 62.4 | 55.6 | 52.1 | 64.1 | 70.1 | 59.8 | 70.9 | 73.3 || Counting | 54.2 | 56.7 | 54.2 | 66.7 | 51.7 | 55.0 | 59.2 | 65.0 | 65.0 || Forensic Detection | 92.4 | 31.1 | 40.9 | 34.1 | 54.5 | 38.6 | 67.4 | 60.6 | 75.8 || Functional Correspondence | 29.2 | 34.6 | 24.6 | 24.6 | 33.1 | 26.9 | 33.8 | 31.5 | 43.8 || IQ Test | 25.3 | 26.7 | 26.0 | 30.7 | 25.3 | 29.3 | 26.0 | 34.0 | 19.3 || Jigsaw | 68.0 | 86.0 | 55.3 | 52.7 | 71.3 | 72.7 | 57.3 | 68.0 | 67.3 || Multi-View Reasoning | 54.1 | 44.4 | 48.9 | 42.9 | 48.9 | 48.1 | 55.6 | 49.6 | 46.6 || Object Localization | 49.2 | 54.9 | 53.3 | 54.1 | 44.3 | 57.4 | 62.3 | 65.6 | 68.0 || Relative Depth | 69.4 | 77.4 | 63.7 | 67.7 | 57.3 | 58.1 | 71.8 | 76.6 | 71.0 || Relative Reflectance | 37.3 | 34.3 | 32.8 | 38.8 | 32.8 | 27.6 | 36.6 | 38.8 | 40.3 || Semantic Correspondence | 36.7 | 31.7 | 31.7 | 22.3 | 32.4 | 31.7 | 45.3 | 48.9 | 54.0 || Spatial Relation | 65.7 | 75.5 | 78.3 | 78.3 | 55.9 | 81.1 | 60.1 | 79.0 | 84.6 || Visual Correspondence | 53.5 | 40.7 | 34.9 | 33.1 | 29.7 | 52.9 | 72.1 | 81.4 | 86.0 || Visual Similarity | 83.0 | 91.9 | 48.1 | 45.2 | 47.4 | 77.8 | 84.4 | 81.5 | 88.1 || **Overall** | **57.0** | **53.1** | **45.9** | **45.4** | **45.8** | **51.9** | **56.5** | **61.0** | **63.2** |---## Video-MME BenchmarkA benchmark that comprehensively assesses the capabilities of multimodal LLMs in processing video data, covering a wide range of visual domains, temporal durations, and data modalities.| Benchmark | Spec-Vision-V1 | LlaVA-Interleave-Qwen-7B | InternVL-2-4B | InternVL-2-8B | Gemini-1.5-Flash | GPT-4o-mini | Claude-3.5-Sonnet | Gemini-1.5-Pro | GPT-4o ||-------------------------|--------------|--------------------------|---------------|---------------|------------------|-------------|-------------------|----------------|--------|| Short (<2min) | 60.8 | 62.3 | 60.7 | 61.7 | 72.2 | 70.1 | 66.3 | 73.3 | 77.7 || Medium (4-15min) | 47.7 | 47.1 | 46.4 | 49.6 | 62.7 | 59.6 | 54.7 | 61.2 | 68.0 || Long (30-60min) | 43.8 | 41.2 | 42.6 | 46.6 | 52.1 | 53.9 | 46.6 | 53.2 | 59.6 || **Overall** | **50.8** | **50.2** | **49.9** | **52.6** | **62.3** | **61.2** | **55.9** | **62.6** | **68.4** |---## ποΈ Model Training Details| Parameter | Value ||----------------------|--------------------------------|| **Batch Size** | 16 || **Optimizer** | AdamW || **Learning Rate** | 5e-5 || **Training Steps** | 100k || **Loss Function** | CrossEntropyLoss || **Framework** | PyTorch & Transformers |---## π License**Spec-Vision-V1** is released under the **MIT**.---## π CitationIf you use **Spec-Vision-V1** in your research or application, please cite:```bibtex@article{SpecVision2025,title={Spec-Vision-V1: A Vision-Language Transformer Model},author={SVECTOR},year={2025},journal={SVECTOR Research}}```---## π¬ ContactFor support or inquiries, reach out to **SVECTOR**:- **π Website**: [svector.co.in](https://www.svector.co.in)- **π§ Email**: [Research@svector.co.in](Research@svector.co.in)- **β¨ GitHub**: [SVECTOR GitHub](https://github.com/SVECTOR-CORPORATION)
README.md+147-14