/ Модель

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

Контекст
10 485 760 токенов
Лицензия
MIT
Архитектура
llama4 · dense
Базовая модель
Llama-4-Scout-17B-16E-Instruct
Библиотека
transformers
Опубликована
4 июн 2026

Llama-4-Scout-1.7B-0.4B-Instruct

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

Тестовая уменьшенная конфигурация Llama 4 Scout для отладки мультимодальных конвейеров и проверки загрузки, инференса и оптимизации моделей.

967скачиваний за 30 дней0лайковвеса обновлены4 июн 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Это тестовая уменьшенная конфигурация мультимодальной Llama 4 Scout, созданная для разработки и тестирования на основе meta-llama/Llama-4-Scout-17B-16E-Instruct. Архитектура Llama4ForConditionalGeneration сохраняет MoE-структуру, чередование типов внимания и компоненты обработки изображений. Всего в модели 1,72 млрд параметров, из которых около 0,43 млрд активируются на токен; веса случайно инициализированы, а зрительный модуль не обучен.

Модель предназначена для проверки загрузки и инференса, отладки мультимодальных конвейеров, тестирования квантизации и сжатия, а также профилирования памяти и CI/CD. Она принимает текст и изображения и должна выдавать текст, однако случайные необученные веса не позволяют получать осмысленные результаты. Репозиторий содержит веса в формате safetensors и использует библиотеку Transformers. Лицензия — MIT.

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

  • проверка загрузки модели Llama 4 в Transformers
  • отладка конвейеров обработки изображений и текста
  • тестирование квантизации и сжатия модели
  • профилирование использования памяти при инференсе
  • проверка CI/CD для мультимодальных моделей

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Llama-4-Scout-1.7B-0.4B-Instruct

This is a tiny version of meta-llama/Llama-4-Scout-17B-16E-Instruct created for testing and development.

Model Details

  • Base Model: meta-llama/Llama-4-Scout-17B-16E-Instruct
  • Architecture: llama4 (multimodal vision-language with MoE)
  • Total Parameters: 1.72B
  • Activated Parameters: ~0.43B (1 expert activated per token out of 4)

Configuration Changes

The following parameters were reduced from the original model:

ParameterOriginalTiny
Text Model
num_hidden_layers488
num_local_experts164
num_experts_per_tok11
hidden_size51202048
intermediate_size81923072
intermediate_size_mlp163846144
num_attention_heads4016
num_key_value_heads84
layer_types48 layers (chunked/full pattern)8 layers (maintains 3:1 pattern)
Vision Model
num_hidden_layers346
hidden_size1408768
intermediate_size56323072
num_attention_heads1612

Architecture Preservation

The tiny model maintains the original Llama-4-Scout architecture patterns:

  • MoE Structure: Retained mixture-of-experts with shared expert
  • Attention Pattern: Maintains the chunked_attention/full_attention pattern (every 4th layer is full_attention)
  • No-RoPE Layers: Preserved the pattern where 3 out of every 4 layers use alternative position encoding

Checkpoint Structure

The model is saved as a single safetensors file following the original checkpoint structure:

  • language_model.model.layers.{X}.feed_forward.experts.*
  • language_model.model.layers.{X}.feed_forward.shared_expert.*
  • vision_model.model.layers.{X}.*

This structure is compatible with transformers' Llama4ForConditionalGeneration.

Usage

from transformers import Llama4ForConditionalGeneration, AutoProcessor

model = Llama4ForConditionalGeneration.from_pretrained(
    "inference-optimization/Llama-4-Scout-1.7B-0.4B-Instruct",
    device_map="auto"
)
processor = AutoProcessor.from_pretrained("inference-optimization/Llama-4-Scout-1.7B-0.4B-Instruct")

# Text-only input
text = "Hello, world!"
inputs = processor.tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=20)
print(processor.tokenizer.decode(outputs[0]))

Creation Process

This model was created using the llm-compressor create-tiny-model skill:

  1. Config Modification: Reduced layers, experts, and hidden dimensions while preserving architectural patterns
  2. Weight Initialization: Randomly initialized weights using the model's init_weights() method
  3. Fine-tuning Attempt: Attempted text-only fine-tuning on a small corpus (note: the multimodal architecture made standard text-only fine-tuning ineffective, but the model structure is valid)
  4. Validation: Verified model loads correctly and can perform inference

Notes

Important: This is a tiny model with randomly initialized weights intended for testing and development purposes only. It is not trained and will not produce meaningful outputs. The vision tower is completely untrained.

Use Cases

  • Testing model loading and inference pipelines
  • Validating quantization and compression workflows
  • Debugging multimodal model handling
  • CI/CD pipeline testing with realistic model sizes
  • Memory profiling and optimization experiments

Limitations

  • Randomly initialized weights (not trained)
  • Will generate nonsensical outputs
  • Vision capabilities are non-functional
  • Not suitable for any production use or evaluation benchmarks

Technical Warnings

When loading this model, you may see the warning:

[transformers] `rope_parameters`'s high_freq_factor field must be greater than low_freq_factor

This is a known issue with the Llama-4 config and can be safely ignored.

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
Llama4ForConditionalGeneration
Ревизия весов
647c0a6

0 моделей