/ Модель

Характеристики

Лицензия
Своя лицензия
Базовая модель
LFM2.5-VL-450M
Библиотека
transformers
Опубликована
7 сен 2026

MakeModel-VLM-450M

Изображение и текст → текст3 профессии

Компактная визуально-языковая модель для определения марки и модели одного автомобиля на обрезанных изображениях с индийских дорожных камер.

26скачиваний за 30 дней7лайковвеса обновлены14 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

MakeModel-VLM-450M — мультимодальная модель на 450 млн параметров, разработанная Sanskar003 для распознавания марки и модели одного автомобиля на обрезанных изображениях с индийских дорожных камер и CCTV. Она дообучена на LiquidAI/LFM2.5-VL-450M на 84 995 размеченных изображениях и классифицирует транспорт по 369 меткам, охватывающим индийский автопарк: от авторикш и двухколёсных моделей до легковых и коммерческих автомобилей. Модель принимает изображение вместе с текстовым запросом и выдаёт текстовую метку на английском языке; для распространённых классов точность выше, чем у базовой модели, а для редких классов заметно ниже. Размер модели в формате bf16 составляет около 0,9 ГБ; для работы README указывает transformers версии 5.1 или выше и описывает запуск через vLLM. Лицензия в метаданных обозначена как other, конкретные условия в доступных данных не приведены.

Модель рассчитана на распознавание тесно обрезанных изображений одного автомобиля, а не целых дорожных сцен. Наиболее полезна в конвейерах анализа дорожного движения и ANPR как дополнительный классификатор марки и модели. Она настроена на индийские дорожные сцены, хуже подходит для других рынков, а её точность зависит от представленности класса в обучающих данных; модель не выдаёт оценку уверенности.

Сценарии применения

  • определение марки и модели автомобиля на кадре CCTV
  • классификация транспортных средств в дорожном потоке Индии
  • распознавание модели автомобиля после обнаружения транспортного средства
  • дополнение конвейера ANPR классификацией автомобиля
  • определение типа распространённого двухколёсного транспорта или авторикши

Ограничения

Настроена на индийский автопарк и обрезанные изображения одного автомобиля; качество ниже для редких классов и сцен других рынков, а ночные кадры, сильный дождь и размытие представлены недостаточно. Модель не выдаёт оценку уверенности, поэтому её результат не следует использовать как единственное основание для юридически значимых решений.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MakeModel-VLM-450M

A 450M-parameter vision-language model that identifies the make and model of vehicles on Indian roads from cropped CCTV / traffic-camera images.

Fine-tuned from LiquidAI/LFM2.5-VL-450M on ~85k labelled vehicle crops across 369 make/model classes.

The class vocabulary is built around the Indian vehicle fleet — auto rickshaws, Honda Activa and Hero Splendor two-wheelers, Tata and Ashok Leyland commercial vehicles, Maruti Suzuki hatchbacks, Mahindra SUVs — rather than the Western model mix that generic VLMs and Stanford-Cars-style datasets assume. Off-the-shelf models tend to answer "Motorcycle" or "Honda"; this one answers "Honda Activa".

At 450M parameters and ~0.9 GB in bf16, it is small enough for edge deployment alongside a detector in an ANPR/traffic pipeline.

Results

Evaluated on a held-out, stratified 9,437-image split, never seen during training.

MetricBase LFM2.5-VL-450MThis modelChange
Top-1 exact match (369 classes)0.0%46.0%—
Top-1 after snapping to label space4.6%46.0%10.0×
Brand-level accuracy23.6%67.9%2.9×
Macro-average per-class accuracy3.5%27.4%7.9×
Outputs that are valid class labels79.5%99.97%—

The base model scores 0.0% on raw exact match because it replies in sentences ("This appears to be a Honda motorcycle"); the 4.6% column maps those answers onto the label space so the comparison is fair. After fine-tuning, raw and mapped scores are identical — the model emits bare labels directly.

Common vehicles are reliable:

ClassAccuracy
Auto Rickshaw87.8%
Honda CBR600RR77.6%
Suzuki Swift75.6%
Mahindra Bolero71.5%
Hyundai Creta71.3%

Usage

Requires transformers >= 5.1.

import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
from transformers.image_utils import load_image

model_id = "sanskar003/MakeModel-VLM-450M"

processor = AutoProcessor.from_pretrained(model_id, max_image_tokens=256)
model = AutoModelForImageTextToText.from_pretrained(
    model_id, dtype=torch.bfloat16, device_map="auto"
)

image = load_image("vehicle_crop.jpg")

# Use this exact prompt -- the model was trained on it, and changing the
# wording measurably degrades accuracy.
conversation = [
    {"role": "system", "content": [{"type": "text", "text":
        "You are a vehicle recognition expert. You identify the make and model "
        "of vehicles in cropped CCTV images. Reply with only the make and model."}]},
    {"role": "user", "content": [
        {"type": "image", "image": image},
        {"type": "text", "text": "What is the make and model of this vehicle?"},
    ]},
]

inputs = processor.apply_chat_template(
    conversation, add_generation_prompt=True, tokenize=True,
    return_dict=True, return_tensors="pt",
).to(model.device)

out = model.generate(**inputs, max_new_tokens=16, do_sample=False)
print(processor.tokenizer.decode(
    out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True).strip())
# -> "Honda Activa"

Input expectations

Feed tight crops of a single vehicle, not full scene frames — that is what the model was trained on. Upscale very small crops so the short side is at least 64px; images are handled at native resolution up to 512px.

The 369 valid labels ship in label_space.json. Snapping generations to the nearest entry is optional here (99.97% are already valid) but recommended if you need a guaranteed closed vocabulary.

Serving with vLLM (Docker)

Verified against vllm/vllm-openai:latest (v0.25.1), which registers Lfm2VlForConditionalGeneration natively — no --trust-remote-code needed. Note that the vLLM docs' supported-models table does not yet list LFM2-VL, but the runtime does support it.

docker run --rm --gpus all -p 8000:8000 --ipc=host \
  vllm/vllm-openai:latest \
  --model sanskar003/MakeModel-VLM-450M \
  --served-model-name makemodel-vlm-450m \
  --max-model-len 8192

On a shared GPU, cap the memory vLLM reserves and pin a device:

docker run --rm --gpus '"device=1"' -p 8000:8000 --ipc=host \
  vllm/vllm-openai:latest \
  --model sanskar003/MakeModel-VLM-450M \
  --served-model-name makemodel-vlm-450m \
  --gpu-memory-utilization 0.35 \
  --max-model-len 8192

Query it with the OpenAI-compatible API:

IMG=$(base64 -w0 vehicle_crop.jpg)
curl -s http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d @- <<JSON | python3 -c "import sys,json;print(json.load(sys.stdin)['choices'][0]['message']['content'])"
{
  "model": "makemodel-vlm-450m",
  "max_tokens": 16,
  "temperature": 0,
  "messages": [
    {"role": "system", "content": "You are a vehicle recognition expert. You identify the make and model of vehicles in cropped CCTV images. Reply with only the make and model."},
    {"role": "user", "content": [
      {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,$IMG"}},
      {"type": "text", "text": "What is the make and model of this vehicle?"}
    ]}
  ]
}
JSON

Or with the openai Python client:

import base64
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
b64 = base64.b64encode(open("vehicle_crop.jpg", "rb").read()).decode()

resp = client.chat.completions.create(
    model="makemodel-vlm-450m",
    max_tokens=16,
    temperature=0,
    messages=[
        {"role": "system", "content":
            "You are a vehicle recognition expert. You identify the make and model "
            "of vehicles in cropped CCTV images. Reply with only the make and model."},
        {"role": "user", "content": [
            {"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{b64}"}},
            {"type": "text", "text": "What is the make and model of this vehicle?"},
        ]},
    ],
)
print(resp.choices[0].message.content.strip())
# -> "Tata Motors Prima"

Keep temperature=0 — the evaluation numbers above are from greedy decoding.

Limitations

Accuracy is strongly tied to how common a model is. Performance tracks training support almost linearly:

Eval supportClassesAccuracy
1–10 images22520.5%
11–25 images6831.8%
26–60 images3941.6%
61–150 images2345.2%
151+ images1462.1%

146 of the 369 classes get zero correct predictions on the eval split. Common vehicles are dependable; the rare tail is not. Treat the brand-level output (67.9%) as the more reliable signal when the exact model matters less.

The label vocabulary contains genuine ambiguity. The training data labels the same vehicle several ways — Hero Honda / Hero Splendor / Hero Honda Splendor, and a particularly tangled Tata family (Tata, Tata 407, Tata Motors, Tata Motors 407, Tata Motors Prima) — and includes bare vehicle types (Scooter, Motorcycle, Auto) alongside real make/models. About 7.5% of eval samples are scored wrong for a defensible answer, so true accuracy is closer to 53.5%.

Other constraints:

  • English output only; single vehicle per image.
  • Tuned for Indian road scenes. Expect degradation on other vehicle markets.
  • Trained on daytime-dominant CCTV crops; night, heavy rain, and motion blur are under-represented.
  • No confidence score is emitted. Do not use it as a sole identifier for enforcement, insurance, or legal decisions — pair it with ANPR and human review.

Training

BaseLiquidAI/LFM2.5-VL-450M (LFM2.5-350M LM + SigLIP2 NaFlex 86M vision)
MethodFull fine-tune, all 448.7M params including the vision tower
Data84,995 train / 9,437 val crops, 369 classes, stratified split
Effective batch64 (8 × 4 grad accum × 2 GPU)
LR2e-5, cosine, 3% warmup
Precisionbf16, gradient checkpointing
Final losstrain 0.355 / eval 0.321

Eval loss plateaued at 0.321 and the best checkpoint was selected on eval loss rather than taking the last step.

The vision tower was deliberately not frozen: a substantial share of these crops have a short side under 64px, far from the natural-image distribution the encoder was pretrained on. Loss was masked to the assistant answer only, so no gradient is spent on the fixed prompt or image placeholder tokens.

Classes with fewer than 30 examples were dropped, as were images with a short side under 24px. Images appearing more than once with contradictory labels were removed rather than arbitrated.

License

Inherits LFM Open License v1.0 (lfm1.0) from the base model. Review the base model's terms before commercial deployment.

Citation

@misc{makemodel_vlm_450m,
  title  = {MakeModel-VLM-450M: Vehicle Make and Model Recognition for Indian Roads},
  author = {sanskar003},
  year   = {2026},
  url    = {https://huggingface.co/sanskar003/MakeModel-VLM-450M},
  note   = {Fine-tuned from LiquidAI/LFM2.5-VL-450M}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
dbd9da0

0 моделей