/ Модель

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

Контекст
2 048 токенов
Параметры
32,3 млрд
Размер весов
130 ГБ
Лицензия
Своя лицензия
Архитектура
llama · dense
Опубликована
25 мая 2023

LLaMA-30b-toolbench

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

Дообученная на данных ToolBench модель LLaMA-30B для генерации действий и вызовов API по текстовым инструкциям.

119скачиваний за 30 дней4лайкавеса обновлены16 июн 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

LLaMA-30B-toolbench — языковая модель SambaNova Systems для генерации действий через API. Это дообучение LLaMA-30B на наборах данных для генерации действий на основе API; в README указано 30 млрд параметров, а в метаданных — 32,3 млрд. Репозиторий содержит delta-веса: для получения полной модели их нужно применить поверх исходных весов LLaMA-30B, поэтому delta нельзя использовать самостоятельно.

Модель предназначена для генерации вызовов API в задачах ToolBench и не рассчитана на другие цели. Она принимает текст и генерирует текст; заявленный язык — английский. Контекст составляет 2048 токенов. Для вывода в README рекомендован отключённый сэмплинг. Указана лицензия other, а README уточняет, что действуют условия лицензии LLaMA.

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

  • генерация вызовов API по инструкции на естественном языке
  • формирование последовательности API-действий для выполнения пользовательского запроса
  • решение задач ToolBench с использованием API

Ограничения

Delta-веса требуют исходных весов LLaMA-30B и не работают самостоятельно. Модель предназначена только для генерации действий на основе API; README указывает исследовательское применение.

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

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

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

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

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

Открыть на Hugging Face

NOTE: This "delta model" cannot be used directly.
Users have to apply it on top of the original LLaMA weights to get actual LLaMA-30B-toolbench weights.
Please refer to https://github.com/lm-sys/FastChat#vicuna-weights for instructions.

LLaMA-30B-toolbench

LLaMA-30B-toolbench is a 30 billion parameter model used for api based action generation. It is instruction tuned from LLaMA-30B on api based action generation datasets.

Model Details

Model Description

Basic Information

Uses

Direct Use

This model is intended for research use.

Out-of-Scope Use

LLaMA-30B-toolbench should NOT be used for purpose other than API based action generation.


How to Get Started with the Model

Suggested Inference Parameters

  • do_sample: False

Example Prompts To Try in GPU Tutorial

Prompt 1:

I have the following set of API:\n\n# To set the maximum commute time in minute to your office location, assuming the office location is already defined\nAPI.set_max_commute_time(value: int)\n\n# To set the maximum home size in square feet\nAPI.set_max_square_feet(value: int)\n\n# To set the minimum home price in dollars\nAPI.set_min_price(value: int)\n\n# To set the number of garage(s)\nAPI.set_num_garages(value: int)\n\n# To set home types for search. For home buying, home_types choices are: \"House\", \"Townhouse\", \"Condo\", \"Land\", \"Multi-family\", \"Mobile\", \"Co-op\"; for home renting, home_types choices are: \"House\", \"Townhouse\", \"Condo\", \"Apartment\".\nAPI.select_home_type(home_types: List[str])\n\n# To set the number of balconies\nAPI.set_num_balconies(value: int)\n\n# Submit criterion to get search results. This function should be called after setting all the criterion.\nAPI.search()\n\n# To set the floor number\nAPI.set_floor_number(value: int)\n\n# To set the number of bedroom(s)\nAPI.set_num_beds(value: int)\n\n# To set the number of swimming pool(s)\nAPI.set_num_swimming_pools(value: int)\n\n# To set the maximum home price in dollars\nAPI.set_max_price(value: int)\n\n# To specify whether to search homes for buying or renting. 'value' can be chosen from ['buy', 'rent']. This function must be called after setting the location and before setting any other criteria.\nAPI.set_buy_or_rent(value: str)\n\n# To set the number of bathroom(s)\nAPI.set_num_baths(value: float)\n\n# To set the location for the search area. This function must be called before setting any criteria.\nAPI.set_location(value: string)\n\n# To set the minimum home size in square feet\nAPI.set_min_square_feet(value: int)\n\n-------------\n\nTask: Looking for homes to rent in Santa Clarita with a price range between $110000 and $1753000, a minimum of 1700 square feet, at least 2 balconies, and 3.5 bathrooms.\nAction:\n

Prompt 2:

I have the following set of API:\n\n# To set the location for hotel search, given a Loc object. This function must be called if booking type is 'hotels' or 'both'.\nAPI.set_hotel_location(Loc)\n\n# To set the number of hotel rooms to book.\nAPI.set_num_rooms(value)\n\n# To set the location for departure, given a Loc object. This function must be called if booking type is 'trip tickets' or 'both'.\nAPI.set_origin(Loc)\n\n# To select the transportation type from ['flight', 'train', 'bus', 'cruise']. This function must be called if booking type is 'trip tickets' or 'both'.\nAPI.select_transportation(transportation_type)\n\n# To set the return date of the trip, given a Date object. If booking type is 'both' and this function is not called explicitly, 'return_date' will be set to 'hotel_checkout_date' implicitly.\nAPI.set_return_date(Date)\n\n# To set the hotel check-in date, given a Date object. This function must be called if booking type is 'hotels' or 'both'.\nAPI.set_checkin_date(Date)\n\n# To define a date.\ndate = Date(month, day, year)\n\n# To set the departure date of the trip, given a Date object. This function must be called if booking type is 'trip tickets'. If booking type is 'both' and this function is not called explicitly, 'departure_date' will be set to 'hotel_checkin_date' implicitly.\nAPI.set_departure_date(Date)\n\n# To set the location for arrival, given a Loc object. This function must be called if booking type is 'trip tickets' or 'both'.\nAPI.set_destination(Loc)\n\n# To define a location of a given city 'City'.\nlocation = Loc('City')\n\n# To set maximum hotel room price.\nAPI.set_max_room_price(value)\n\n# To set minimum ticket price.\nAPI.set_min_ticket_price(value)\n\n# To select the booking type from ['hotels', 'trip tickets', 'both']. This function must be called before setting any criteria.\nAPI.select_booking_type(booking_type)\n\n# To set minimum hotel room price.\nAPI.set_min_room_price(value)\n\n# To set the number of child tickets to purchase.\nAPI.set_num_children(value)\n\n# To set the number of adult tickets to purchase.\nAPI.set_num_adults(value)\n\n# To select the hotel room type from ['King Bed', 'Queen Bed', 'Double', 'Luxury'].\nAPI.select_room_type(room_type)\n\n# To set maximum ticket price.\nAPI.set_max_ticket_price(value)\n\n# Submit criterion to get search results. This function should be called after setting all the criterion.\nAPI.search()\n\n# To set the hotel check-out date, given a Date object. This function must be called if booking type is 'hotels' or 'both'.\nAPI.set_checkout_date(Date)\n\n-------------\n\nTask: Looking to book 2 adult and 4 child tickets from Stockton to Baltimore by cruise, on 2023-07-29.\nAction:\n

Training Details

Training Data

The training data is curated for the 8 tasks in ToolBench. See Appendix A of the paper for task details and Appendix C.1 for the training data curation details. In total, there are 9704 training samples, organized in all-shot format as described in Appendix C.2. Here is the download link to the training data.

Training Procedure

We trained LLaMA-30B-toolbench on 4 80GB A100 gpu's. We started from LLaMA-30B. We finetuned it on the dataset mentioned above.

Hyperparameters

  • Hardware: A100 GPU
  • Optimizer: AdamW
  • Grad accumulation: 1
  • Epochs: 8
  • Global Batch size: 16
  • Batch tokens: 16 * 2048 = 32,768 tokens
  • Learning Rate: 1e-5
  • Learning Rate Scheduler: Fixed LR
  • Weight decay: 0.1

Acknowledgment

We would like to express our gratitude to the great work done in LLaMA: Open and Efficient Foundation Language Models

Cite LLaMA-30B-toolbench

@misc{xu2023tool,
      title={On the Tool Manipulation Capability of Open-source Large Language Models}, 
      author={Qiantong Xu and Fenglu Hong and Bo Li and Changran Hu and Zhengyu Chen and Jian Zhang},
      year={2023},
      eprint={2305.16504},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей