/ Модель

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

Контекст
8 192 токена
Параметры
11,4 млрд
Размер весов
27,8 ГБ
Лицензия
Своя лицензия
Архитектура
chatglm · dense
Базовая модель
glm-4v-9b
Библиотека
transformers
Опубликована
20 дек 2024

cogagent-9b-20241220

Генерация текстаТекст → текст3 профессии

Визуально-языковой агент ZhipuAI для понимания скриншотов интерфейсов и выполнения задач на компьютере по текстовым инструкциям.

497скачиваний за 30 дней54лайкавеса обновлены25 дек 2024

Бенчмарки

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

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

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

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

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

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

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

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

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

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

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

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

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

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

CogAgent-9B-20241220 — модель агентного исполнения с визуально-языковой архитектурой ChatGLM, разработанная ZhipuAI на базе GLM-4V-9B. Она принимает скриншоты интерфейса вместе с текстовыми инструкциями и предназначена для распознавания элементов графического интерфейса, планирования действий и выполнения задач на компьютере. Модель обучена и оптимизирована для повышения точности визуального восприятия, прогнозирования и выбора действий, а также обобщения на разные задачи; она использовалась в продукте GLM-PC компании ZhipuAI.

Модель поддерживает взаимодействие на китайском и английском языках, содержит 11,4 млрд параметров и имеет контекст длиной до 8192 токенов. Это модель исполнения агента, а не разговорный помощник: непрерывный диалог не поддерживается, хотя можно передавать историю последовательных действий. Для корректной работы требуется соблюдать форматирование входа и конкатенацию промпта, описанные в официальных примерах. Лицензия указана как other, поэтому конкретные условия использования следует проверять в репозитории модели.

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

  • понимание элементов графического интерфейса по скриншоту
  • выполнение задач в компьютерных приложениях по инструкции
  • выбор следующего действия в последовательности взаимодействий с интерфейсом
  • создание исследовательских прототипов GUI-агентов

Ограничения

Не предназначена для непрерывного диалога; ожидает форматированный ввод и историю исполнения в формате, описанном разработчиком. Поддержка китайского и английского языков заявлена в карточке модели.

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

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

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

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

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

Открыть на Hugging Face

CogAgent

中文阅读

About the Model

The CogAgent-9B-20241220 model is based on GLM-4V-9B, a bilingual open-source VLM base model. Through data collection and optimization, multi-stage training, and strategy improvements, CogAgent-9B-20241220 achieves significant advancements in GUI perception, inference prediction accuracy, action space completeness, and task generalizability. The model supports bilingual (Chinese and English) interaction with both screenshots and language input.

This version of the CogAgent model has already been applied in ZhipuAI's GLM-PC product. We hope this release will assist researchers and developers in advancing the research and applications of GUI agents based on vision-language models.

Running the Model

Please refer to our GitHub for specific examples of running the model.

Input and Output

cogagent-9b-20241220 is an agent execution model rather than a conversational model. It does not support continuous conversations but does support continuous execution history. Below are guidelines on how users should format their input for the model and interpret the formatted output.

Run the Model

In particular, pay attention to the prompt concatenation process. You can refer to app/client.py#L115 for concatenating user input prompts.

current_platform = identify_os() # "Mac" or "WIN" or "Mobile",注意大小写
platform_str = f"(Platform: {current_platform})\n"
format_str = "(Answer in Action-Operation-Sensitive format.)\n" # You can use other format to replace "Action-Operation-Sensitive"

history_str = "\nHistory steps: "
for index, (grounded_op_func, action) in enumerate(zip(history_grounded_op_funcs, history_actions)):
   history_str += f"\n{index}. {grounded_op_func}\t{action}" # start from 0. 

query = f"Task: {task}{history_str}\n{platform_str}{format_str}" # Be careful about the \n

A minimal user input concatenation code is as follows:

"Task: Search for doors, click doors on sale and filter by brands \"Mastercraft\".\nHistory steps: \n0. CLICK(box=[[352,102,786,139]], element_info='Search')\tLeft click on the search box located in the middle top of the screen next to the Menards logo.\n1. TYPE(box=[[352,102,786,139]], text='doors', element_info='Search')\tIn the search input box at the top, type 'doors'.\n2. CLICK(box=[[787,102,809,139]], element_info='SEARCH')\tLeft click on the magnifying glass icon next to the search bar to perform the search.\n3. SCROLL_DOWN(box=[[0,209,998,952]], step_count=5, element_info='[None]')\tScroll down the page to see the available doors.\n4. CLICK(box=[[280,708,710,809]], element_info='Doors on Sale')\tClick the \"Doors On Sale\" button in the middle of the page to view the doors that are currently on sale.\n(Platform: WIN)\n(Answer in Action-Operation format.)\n"

The concatenated Python string will look like:

"Task: Search for doors, click doors on sale and filter by brands \"Mastercraft\".\nHistory steps: \n0. CLICK(box=[[352,102,786,139]], element_info='Search')\tLeft click on the search box located in the middle top of the screen next to the Menards logo.\n1. TYPE(box=[[352,102,786,139]], text='doors', element_info='Search')\tIn the search input box at the top, type 'doors'.\n2. CLICK(box=[[787,102,809,139]], element_info='SEARCH')\tLeft click on the magnifying glass icon next to the search bar to perform the search.\n3. SCROLL_DOWN(box=[[0,209,998,952]], step_count=5, element_info='[None]')\tScroll down the page to see the available doors.\n4. CLICK(box=[[280,708,710,809]], element_info='Doors on Sale')\tClick the \"Doors On Sale\" button in the middle of the page to view the doors that are currently on sale.\n(Platform: WIN)\n(Answer in Action-Operation format.)\n"

Due to the length, if you would like to understand the meaning and representation of each field in detail, please refer to the GitHub.

Previous Work

In November 2023, we released the first generation of CogAgent. You can find related code and weights in the CogVLM & CogAgent Official Repository.

License

Please follow the Model License for using the model weights.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
ChatGLMForConditionalGeneration
Ревизия весов
0de2cad

0 моделей