/ Модель

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

Контекст
8 192 токена
Параметры
6,7 млрд
Размер весов
27,6 ГБ
Лицензия
cc-by-3.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
2 июл 2023

xgen-7b-8k-open-instruct

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

Инструкционная языковая модель VMware на 6,7 млрд параметров для генерации ответов и zero-shot рассуждений с контекстом до 8192 токенов.

40скачиваний за 30 дней14лайковвеса обновлены2 июл 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

VMware/xgen-7b-8k-open-instruct — языковая модель VMware с архитектурой LLaMA, дообученная для выполнения инструкций на основе SalesForce/xgen-7b-8k-base. Модель содержит 6,7 млрд параметров и поддерживает контекст до 8192 токенов; для токенизатора требуется библиотека tiktoken и параметр trust_remote_code=True.

Модель предназначена для генерации ответов на инструкции и zero-shot рассуждений, в том числе на примерах из наборов Flan v2. Карточка описывает обучение на 140 тысячах инструкционных примеров, включая Open-instruct и подмножество задач COT. Указана лицензия CC BY 3.0; README заявляет возможность коммерческого использования.

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

  • генерация ответов на текстовые инструкции
  • zero-shot решение логических задач
  • пошаговые объяснения и рассуждения
  • ответы на вопросы по тексту
  • выполнение разнообразных задач в формате Alpaca

Ограничения

В README оценка качества помечена как TODO, поэтому сравнительные результаты не приведены. Для работы с токенизатором нужны tiktoken и trust_remote_code=True.

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

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

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

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

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

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

Открыть на Hugging Face

VMware/xgen-7b-8k-open-instruct

Instruction-tuned version of SalesForce/Xgen-7b-8k-base. The model is open for COMMERCIAL USE.

NOTE : The model was trained using the Alpaca prompt template NOTE : tiktoken library is required for the tokenizer. Set trust_remote_code=True when launching the tokenizer.

We expanded Open-instruct with additional commercially viable zero-shot COT datasets from Flan v2 to total of 140k instruct-prompt responses.

The model supports up to 8192 tokens

License

Datasets used for Fine-Tuning

Open-instruct

Open-instruct-v1

  • Mosaic/Dolly-HHRLHF + filtered OASST1 - cc by 3.0

Subset of COT SUBMIX (FROM FLAN V2) Zeroshot examples

  • ESNLI - MIT
  • ECQA - CDLA 1.0 - Sharing
  • Strategy - MIT
  • CREAK - MIT
  • gsmk8 - MIT
  • aqua - MIT
  • qasc - Apache 2.0

Use in Transformers

pip install tiktoken
import os
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = 'VMware/xgen-7b-8k-open-instruct'


tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code = True)

model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map='sequential')

prompt_template = "Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response:"

prompt = 'Explain with examples how differentiation in math works'


inputt = prompt_template.format(instruction= prompt)
input_ids = tokenizer(inputt, return_tensors="pt").input_ids.to("cuda")

output1 = model.generate(input_ids, max_length=8192)
input_length = input_ids.shape[1]
output1 = output1[:, input_length:]
output = tokenizer.decode(output1[0])

print(output)

# output



 Differentiation is a fundamental concept in calculus and related mathematical disciplines, which allows us to find the rate of change of a function at a particular point. Here are some examples of how differentiation works:

1. Finding the slope of a curve: One of the most common uses of differentiation is to find the slope of a curve at a particular point. This can be done by evaluating the derivative of the function at the point in question, which essentially measures the rate of change of the function at that point. For example, consider the following function:

f(x) = 2x + 3

To find the derivative of this function at the point x = 2, we would evaluate the function at that point and then differentiate it:

f'(x) = 2 + 3

This derivative evaluates to 2, which tells us that the slope of the curve at x = 2 is 2.

2. Finding the instantaneous rate of change of a function: In calculus, the instantaneous rate of change of a function at a point is the derivative of the function at that point. This is particularly useful in situations where the time variable is not explicitly included in the function. For example, consider the following function:

f(x) = 2x^3 + 5x^2 - 3x + 1

To find the instantaneous rate of change of this function at the point x = 2, we would differentiate it with respect to x at that point:

f'(x) = 6x^2 + 10x - 3

This derivative evaluates to 6, which tells us that the instantaneous rate of change of the function at x = 2 is 6.

3. Finding the concavity of a function: The concavity of a function is a measure of how the curve changes shape as you move away from the point of inflection. For example, consider the following function:

f(x) = x^3 - 2x^2 + 1

To find the concavity of this function at the point x = 1, we would differentiate it with respect to x at that point:

f'(x) = 3x^2 - 4x + 1

This derivative evaluates to 3, which tells us that the concavity of the function at x = 1 is negative, which means that the curve is concave downward at that point.

4. Finding the critical points of a function: Critical points of a function are points where the derivative of the function is equal to zero. These points are important in optimization problems, where they can be used to determine the values of the independent variables that minimize or maximize the value of the function. For example, consider the following function:

f(x) = x^3 - 2x^2 + 1

To find the critical points of this function, we would differentiate it with respect to x and then set the derivative equal to zero:

f'(x) = 3x^2 - 4x + 1 = 0

This evaluates to x = 0, which tells us that the critical points of the function are all equal to zero.

5. Finding the maximum and minimum values of a function: The maximum and minimum values of a function are the largest and smallest values that the function can take, respectively. These values can be found by differentiating the function and setting the derivative to zero, which essentially finds the points where the curve "bends" the most. For example, consider the following function:

f(x) = x^3 - 2x^2 + 1

To find the maximum and minimum values of this function, we would differentiate it with respect to x and then set the derivative equal to zero:

f'(x) = 3x^2 - 4x + 1 = 0

This evaluates to x = 0, which tells us that the maximum and minimum values of the function are both 0.

These are just a few examples of how differentiation can be used in mathematics. In general, differentiation allows us to find the rate of change, slope, instantaneous rate of change, critical points, and maximum and minimum values of a function at a particular point or over a particular interval.<|endoftext|>




Finetuning details

The finetuning scripts will be available in our RAIL Github Repository

Evaluation

TODO

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей