/ Модель

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

Контекст
2 048 токенов
Параметры
9,1 млрд
Размер весов
32,4 ГБ
Лицензия
BigScience BLOOM RAIL 1.0
Архитектура
bloom · dense
Опубликована
20 мая 2023

noon-7b

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

Noon-7b — дообученная на арабских инструкциях языковая модель для генерации текста и кода, ответов на вопросы и решения математических задач.

140скачиваний за 30 дней49лайковвеса обновлены21 июн 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Noon-7b — языковая модель Naseej на архитектуре BLOOM с 9,1 млрд параметров, дообученная для выполнения инструкций на арабском языке. Она предназначена для генерации текста и кода, решения математических задач и ответов на закрытые и открытые вопросы. Модель обучали на более чем 110 тысячах арабоязычных примеров; заявленный контекст — 2048 токенов. В карточке описана версия на 7 млрд параметров, тогда как метаданные указывают 9,1 млрд.

Модель принимает текст и генерирует текст. Основной язык обучения — арабский; метаданные также отмечают английский. Для запуска используется Transformers. Модель выпущена под лицензией BigScience BLOOM RAIL 1.0. Авторы предупреждают о возможной предвзятости, оскорбительных или вредоносных ответах и рекомендуют проверять результаты.

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

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

Ограничения

Ответы могут содержать фактические ошибки, предвзятость, оскорбительный или потенциально вредоносный контент; важные сведения следует проверять. В README заявлено 7 млрд параметров, а в метаданных — 9,1 млрд.

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

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

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

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

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

Открыть на Hugging Face

Noon - a 7-billion parameter Arabic Large Language Model

We present the 7-billion parameter variant of Noon, an Arabic Large Language model based on BLOOM, a foundation model released by the bigscience workshop.

Noon was trained with the main focus of having a model that responds to various types of instructions and questions (text generation, code generation, mathematical problems, closed/open-book questions, etc.)

We trained the model using the ColossalAI framework which fully supports the HuggingFace library models, and implements different optimization and quantization techniques for billion-scale LLMs.

The training data is a combination of Arabic datasets covering multiple tasks, more details are provided in the dataset section.

مرحبًا بكم في بطاقة نموذج "نون"!

يحتوي "نون" على أكثر من 7 مليار عامل متغير، مما يجعله أكبر نموذج للغة العربية المطروح حتى الآن. تم تدريب هذا النموذج على أكثر من 110,000 سجل بيانات باللغة العربية، والتي تغطي أكثر من 11 ملايين كلمة، تتنوع ما بين إنتاج النصوص، وإنشاء الشفرات، وحل المسائل الرياضية، والأسئلة المغلقة/المفتوحة. تم تدريب هذا النموذج باستخدام تقنيات تدريب متقدمة مثل التدريب الموزع على عدة وحدات معالجة رسومية، وتكييف LoRA (Low Rank Adaptation)، وتحسين ZeRO (Zero Redundancy Optimization).

نحن فخورون بتقديم هذا النموذج الذي يمثل قفزة نوعية في تقنية معالجة اللغة العربية. نقدم في الأقسام التالية مزيد من التفاصيل عن كيفية استخدام نموذج "نون" ومختلف الخصائص التقنية المتعلقة بعملية التدريب.

على أمل أن يكون هذا النموذج خدمةً للطورين والباحثين العلميين في هذا المجال، ولكل الناطقين باللغة العربية.

Usage

The usage of our model only requires the Transformers library, and can be loaded as follows:

from transformers import BloomTokenizerFast, BloomForCausalLM, pipeline


text="اكتب مقالا من عدة أسطر عن الذكاء الصناعي وتطوراته"
prompt = f'Instruction:\n{text}\n\nResponse:'

model = BloomForCausalLM.from_pretrained('Naseej/noon-7b')

tokenizer = BloomTokenizerFast.from_pretrained('Naseej/noon-7b')

generation_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)

# We recommend the provided hyperparameters for generation
# But encourage you to try different values
response = generation_pipeline(prompt,
    pad_token_id=tokenizer.eos_token_id,
    do_sample=False,
    num_beams=4,
    max_length=500,
    top_p=0.1,
    top_k=20,
    repetition_penalty = 3.0,
    no_repeat_ngram_size=3)[0]['generated_text']

print(response)

Training's computational requirements

Noon-7b was trained on 8-A100 GPUs using Distributed multi-GPU training via the ColossalAI framework.

Dataset

To ensure the diversity of data points and satisfy our purpose of instruction-tuning, we collected, labeled, filtered, and reviewed a set of datasets, each tailored to specific instruction types. Noting that all the datasets are in Arabic, they comprise:

  • Second version of the Alpaca dataset, generated using GPT4.
  • Self-instruct records, split between samples generated by us using the self-instruct framework, and further translated ones.
  • The instructional dataset released by Databricks, which comprises high quality human-generated instructions and responses.
  • TruthfulQA dataset, to further guide the model on how to truthfully respond to factoid-based questions.
  • Grade School Math dataset, to enhance the model's performance using chain-of-thought mathematical problems.
  • Arabic arithmetic problems, generated by us using ChatGPT for further improvement of the model's ability to solve mathematical problems.

The full dataset adds up to over 110K records.

Evaluation

Throughout a set of over 4000 Arabic data samples, Noon-7b was automatically evaluated using OpenAI's GPT3.5 Turbo model.

Provided with clear and carefully crafted evaluation criteria (aligning with the model's training objective as well as the syntactic and grammatical rules of the Arabic language), GPT3.5 Turbo was prompted to evaluate each of Noon's responses to an input instruction on a scale of 1 - 5.

We concluded the evaluation by averaging the provided scores, adding up to an impressive final score of 4.07/5.

NOTE: Although we acknowledge that this proposed framework is not an exact solution and that it remains an ongoing area of research, we hold the belief that it has the potential to replicate human assessments to a reasonably satisfactory extent.

Disclaimer

The generated responses from this AI model are purely algorithmic and should be interpreted with caution. The model's outputs may occasionally exhibit bias, offensive language, or potentially harmful content. It is important to note that these responses do not reflect the personal preferences or viewpoints of the authors or the organization of Naseej.

While every effort is made to mitigate the harmfulness of the model's outputs, it is impossible to guarantee complete elimination of biases or offensive content. The model learns from vast amounts of data and may inadvertently replicate or amplify existing societal biases present in the training data.

Users are advised to critically evaluate and verify the information provided by the model. Exercise discretion when utilizing the model's responses, particularly in sensitive or controversial topics.

We are committed to ongoing research and development to improve the model's performance, minimize biases, and reduce harmful outputs. Your feedback and insights are valuable in helping us achieve these goals.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
BloomForCausalLM
Ревизия весов
58f5281

0 моделей