/ Модель

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

Контекст
4 096 токенов
Параметры
6,6 млрд
Размер весов
13,5 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
llama · dense
Опубликована
15 окт 2023

ICKG-v2.0

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

ICKG-v2.0 — дообученная языковая модель для построения графов знаний по инструкциям и текстовому контексту.

154скачиваний за 30 дней11лайковвеса обновлены23 окт 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ICKG-v2.0 — авторегрессионная языковая модель на архитектуре Transformer, разработанная Xiaohui Li для построения графов знаний по инструкциям. Модель дообучена для этой задачи на Vicuna-7B, производной от LLaMA 2; в метаданных указаны семейство Llama, 6,6 млрд параметров и контекст до 4096 токенов.

Модель предназначена для исследователей, специалистов по данным и разработчиков, которым нужно извлекать из текста сущности и связи и представлять их в виде графа знаний. README сообщает о предварительной оценке, в которой ICKG показала преимущество над GPT-3.5 и исходной Vicuna-7B на задаче построения графов и сопоставимый результат с GPT-4; конкретная методика оценки не приведена. Репозиторий содержит веса PyTorch. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства, но запрещает коммерческое применение.

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

  • извлечение сущностей и связей из текста для графа знаний
  • построение графов знаний по заданной инструкции
  • преобразование неструктурированного текста в структурированное представление связей

Ограничения

Оценка модели описана как предварительная, без подробностей о методике и наборах данных. Коммерческое использование запрещено лицензией CC BY-NC 4.0.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

ICKG Model Card

Model Details

ICKG (Integrated Contextual Knowledge Graph Generator) 2.0 is a knowledge graph construction (KGC) task-specific instruction-following language model fine-tuned from LMSYS's Vicuna-7B, which itself is derived from Meta's LLaMA 2.0 LLM.

  • Developed by: Xiaohui Li
  • Model type: Auto-regressive language model based on the transformer architecture.
  • License: Non-commercial
  • Finetuned from model: Vicuna-7B (originally from LLaMA 2.0).

Model Sources

Uses

The primary use of ICKG LLM is for generating knowledge graphs (KG) based on instruction-following capability with specialized prompts. It's intended for researchers, data scientists, and developers interested in natural language processing, and knowledge graph construction.

How to Get Started with the Model

Training Details

ICKG 2.0 is fine-tuned from the latest Vicuna-7B using ~3K instruction-following demonstrations including KG construction input document and extracted KG triplets as response output. ICKG is thus learnt to extract list of KG triplets from given text document via prompt engineering. For more in-depth training details, refer to the "Generative Knowledge Graph Construction with Fine-tuned LLM" section of the accompanying paper.

  • Prompt Template: The entities and relationship can be customized for specific tasks. <input_text> is the document text to replace.

    From the provided document labeled as INPUT_TEXT, your task is to extract structured information from it in the form of triplet for constructing a knowledge graph. Each tuple should be in the form of ('h', 'type',  'r', 'o', 'type'), where 'h' stands for the head entity, 'r' for the relationship, and 'o' for the tail entity. The 'type' denotes the category of the corresponding entity. Do NOT include redundant triplets, NOT include triplets with relationship that occurs in the past.   
    
    Note that the entities should not be generic, numerical or temporal (like dates or percentages).  Entities must be classified into the following categories:
    ORG: Organizations other than government or regulatory bodies
    ORG/GOV: Government bodies (e.g., "United States Government")
    ORG/REG: Regulatory bodies (e.g., "Federal Reserve")
    PERSON: Individuals (e.g., "Elon Musk")
    GPE: Geopolitical entities such as countries, cities, etc. (e.g., "Germany")
    COMP: Companies (e.g., "Google")
    PRODUCT: Products or services (e.g., "iPhone")
    EVENT: Specific and Material Events (e.g., "Olympic Games", "Covid-19")
    SECTOR: Company sectors or industries (e.g., "Technology sector")
    ECON_INDICATOR: Economic indicators (e.g., "Inflation rate"), numerical value like "10%" is not a ECON_INDICATOR;
    FIN_INSTRUMENT: Financial and market instruments (e.g., "Stocks", "Global Markets")
    CONCEPT: Abstract ideas or notions or themes (e.g., "Inflation", "AI", "Climate Change")
    
    The relationships 'r' between these entities must be represented by one of the following relation verbs set: Has, Announce, Operate_In, Introduce, Produce, Control, Participates_In, Impact, Positive_Impact_On, Negative_Impact_On, Relate_To, Is_Member_Of, Invests_In, Raise, Decrease.
    
    Remember to conduct entity disambiguation, consolidating different phrases or acronyms that refer to the same entity (for instance,  "UK Central Bank", "BOE" and "Bank of England" should be unified as "Bank of England"). Simplify each entity of the triplet to be less than four words.  
    
    Your output should strictly be in a list format of triplets in the JSON list format of ('h', 'type', 'r', 'o', 'type'), where the relationship 'r' must be in the given relation verbs set above. Only output the list. 
    ===========================================================
    As an Example, consider the following news excerpt:
    'Apple Inc. is set to introduce the new iPhone 14 in the technology sector this month. The product's release is likely to positively impact Apple's stock value.'
    
    From this text, your output should be:
    [('Apple Inc.', 'COMP', 'Introduce', 'iPhone 14', 'PRODUCT'),
     ('Apple Inc.', 'COMP', 'Operate_In', 'Technology Sector', 'SECTOR'),
     ('iPhone 14', 'PRODUCT', 'Positive_Impact_On', 'Apple's Stock Value', 'FIN_INSTRUMENT')]
    
    INPUT_TEXT:
    <input_text>
    

Evaluation

ICKG has undergone preliminary evaluation comparing its performance to GPT-3.5, GPT-4, and the original Vicuna-7B model. With respect to the KG construction task, it outperforms GPT-3.5 and Vicuna-7B while exhibiting comparative capability as GPT-4. ICKG excels in generating instruction-based knowledge graphs with a particular emphasis on quality and adherence to format.

For a more detailed introduction, refer to the accompanying paper.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей