/ Модель

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

Контекст
8 192 токена
Параметры
7,5 млрд
Лицензия
Llama 3
Архитектура
llama · dense
Библиотека
transformers
Опубликована
22 апр 2024

Llama-3-8B-Web

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

Дообученная на WebLINX модель Llama для диалоговых агентов, которые перемещаются по сайтам, выбирают элементы интерфейса и выполняют действия в браузере.

74скачиваний за 30 дней216лайковвеса обновлены26 апр 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama-3-8B-Web — языковая модель для создания диалоговых агентов, которые выполняют действия в браузере по поручению пользователя. Её разработала команда McGill-NLP: модель основана на Meta-Llama-3-8B-Instruct и дообучена на наборе WebLINX, включающем более 24 тысяч размеченных примеров веб-навигации и диалогов. Это плотная модель семейства Llama с 7,5 млрд параметров, рассчитанная на контекст до 8192 токенов; для работы используется библиотека Transformers, веса опубликованы в форматах PyTorch и safetensors.

Модель предназначена для диалоговой навигации по веб-страницам: выбора ссылок и элементов интерфейса, ввода текста и отправки форм, а также подготовки ответов в соответствии с запросом пользователя. По данным карточки, на тестовых разбиениях WebLINX она набрала 28,8% общего балла и превзошла указанный в README результат GPT-4V zero-shot. Обучение и оценивание охватывают 150 сайтов, однако сами авторы отмечают, что для обобщения на множество не встречавшихся модели сайтов требуются дополнительные данные.

Основной язык модели — английский. Для использования необходимо принять условия Meta Llama 3 Community License Agreement.

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

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

Ограничения

Модель обучена на ограниченной подборке взаимодействий и сайтов, поэтому её обобщение на большое число ранее не встречавшихся сайтов может быть ограничено. Для использования требуется принять условия Meta Llama 3 Community License Agreement.

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

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

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

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

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

Открыть на Hugging Face

By using this model, you are accepting the terms of the Meta Llama 3 Community License Agreement.

WebLlama helps you build powerful agents, powered by Meta Llama 3, for browsing the web on your behalfOur first model, Llama-3-8B-Web, surpasses GPT-4V (*zero-shot) by 18% on WebLINX
Built with Meta Llama 3Comparison with GPT-4V

Modeling

Our first agent is a finetuned Meta-Llama-3-8B-Instruct model, which was recently released by Meta GenAI team. We have finetuned this model on the WebLINX dataset, which contains over 100K instances of web navigation and dialogue, each collected and verified by expert annotators. We use a 24K curated subset for training the data. The training and evaluation data is available on Huggingface Hub as McGill-NLP/WebLINX.

from datasets import load_dataset
from huggingface_hub import snapshot_download
from transformers import pipeline

# We use validation data, but you can use your own data here
valid = load_dataset("McGill-NLP/WebLINX", split="validation")
snapshot_download("McGill-NLP/WebLINX", "dataset", allow_patterns="templates/*")
template = open('templates/llama.txt').read()

# Run the agent on a single state (text representation) and get the action
state = template.format(**valid[0])
agent = pipeline(model="McGill-NLP/Llama-3-8b-Web", device=0, torch_dtype='auto')
out = agent(state, return_full_text=False)[0]
print("Action:", out['generated_text'])

# Here, you can use the predictions on platforms like playwright or browsergym
action = process_pred(out['generated_text'])  # implement based on your platform
env.step(action)  # execute the action in your environment

Comparison of Llama-3-Web, GPT-4V, GPT-3.5 and MindAct

It surpasses GPT-4V (zero-shot *) by over 18% on the WebLINX benchmark, achieving an overall score of 28.8% on the out-of-domain test splits (compared to 10.5% for GPT-4V). It chooses more useful links (34.1% vs 18.9% seg-F1), clicks on more relevant elements (27.1% vs 13.6% IoU) and formulates more aligned responses (37.5% vs 3.1% chr-F1).

About WebLlama

WebLlamaThe goal of our project is to build effective human-centric agents for browsing the web. We don't want to replace users, but equip them with powerful assistants.
ModelingWe are build on top of cutting edge libraries for training Llama agents on web navigation tasks. We will provide training scripts, optimized configs, and instructions for training cutting-edge Llamas.
EvaluationBenchmarks for testing Llama models on real-world web browsing. This include human-centric browsing through dialogue (WebLINX), and we will soon add more benchmarks for automatic web navigation (e.g. Mind2Web).
DataOur first model is finetuned on over 24K instances of web interactions, including click, textinput, submit, and dialogue acts. We want to continuously curate, compile and release datasets for training better agents.
DeploymentWe want to make it easy to integrate Llama models with existing deployment platforms, including Playwright, Selenium, and BrowserGym. We are currently focusing on making this a reality.

Evaluation

We believe short demo videos showing how well an agent performs is NOT enough to judge an agent. Simply put, we do not know if we have a good agent if we do not have good benchmarks. We need to systematically evaluate agents on wide range of tasks, spanning from simple instruction-following web navigation to complex dialogue-guided browsing.

This is why we chose WebLINX as our first benchmark. In addition to the training split, the benchmark has 4 real-world splits, with the goal of testing multiple dimensions of generalization: new websites, new domains, unseen geographic locations, and scenarios where the user cannot see the screen and relies on dialogue. It also covers 150 websites, including booking, shopping, writing, knowledge lookup, and even complex tasks like manipulating spreadsheets.

Data

Although the 24K training examples from WebLINX provide a good starting point for training a capable agent, we believe that more data is needed to train agents that can generalize to a wide range of web navigation tasks. Although it has been trained and evaluated on 150 websites, there are millions of websites that has never been seen by the model, with new ones being created every day.

This motivates us to continuously curate, compile and release datasets for training better agents. As an immediate next step, we will be incorporating Mind2Web's training data into the equation, which also covers over 100 websites.

Deployment

We are working hard to make it easy for you to deploy Llama web agents to the web. We want to integrate WebLlama with existing deployment platforms, including Microsoft's Playwright, ServiceNow Research's BrowserGym, and other partners.

Code

The code for finetuning the model and evaluating it on the WebLINX benchmark is available now. You can find the detailed instructions in modeling.

Citation

If you use WebLlama in your research, please cite the following paper (upon which the data, training and evaluation are originally based on):

@misc{lù2024weblinx,
      title={WebLINX: Real-World Website Navigation with Multi-Turn Dialogue}, 
      author={Xing Han Lù and Zdeněk Kasner and Siva Reddy},
      year={2024},
      eprint={2402.05930},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
09856c2

0 моделей