How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="fiel1986/Andromeda-2B-Vision")
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 AutoProcessor, AutoModelForMultimodalLM

processor = AutoProcessor.from_pretrained("fiel1986/Andromeda-2B-Vision")
model = AutoModelForMultimodalLM.from_pretrained("fiel1986/Andromeda-2B-Vision", device_map="auto")
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?"}
        ]
    },
]
inputs = processor.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Andromeda

Andromeda 2B Vision - by fiel1986

Andr贸meda es un modelo multimodal de visi贸n y c贸digo creado por fiel1986, M茅xico.

Basado en Qwen2-VL-2B-Instruct, fine-tuneado con QLoRA para convertir screenshots, bocetos y errores visuales en c贸digo 煤til, con identidad propia.

馃敟 Capacidades

  • Screenshot -> C贸digo: Toma foto a cualquier c贸digo y lo explica / arregla
  • Boceto -> HTML/CSS: Convierte dibujos en Tailwind
  • Debug Visual: Detecta SQLi, XSS, bugs solo viendo la imagen
  • Identidad Propia:
Downloads last month
13
Safetensors
Model size
2B params
Tensor type
F16
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for fiel1986/Andromeda-2B-Vision

Base model

Qwen/Qwen2-VL-2B
Finetuned
(382)
this model
Quantizations
2 models