/ Модель

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

Лицензия
Apache 2.0
Опубликована
16 дек 2023

FLOR-6.3B-Instructed

Генерация текстаТекст → текст

Инструкционная языковая модель на 6,3 млрд параметров для генерации текста, суммаризации и ответов на вопросы на каталанском, испанском и английском языках.

8скачиваний за 30 дней5лайковвеса обновлены27 фев 2025

Бенчмарки

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

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

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

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

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

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

FLOR-6.3B-Instructed — причинная трансформерная языковая модель на 6,3 млрд параметров, разработанная подразделением Language Technologies Unit Барселонского суперкомпьютерного центра в рамках проекта AINA. Модель основана на BLOOM-7.1B: её словарь и слой эмбеддингов адаптировали для целевых языков, а затем продолжили предварительное обучение на 140 млрд токенов и дообучили на инструкционных данных.

Модель предназначена для генерации текста и выполнения инструкций в сценариях суммаризации, ответов на вопросы и творческого письма. Она поддерживает каталанский, испанский и английский языки. Репозиторий содержит веса Safetensors; лицензия — Apache-2.0. Модель снята с поддержки и больше не сопровождается.

В карточке отмечено, что смещения и токсичность отдельно не оценивались; обучающие данные собраны из веб-источников и открытых данных, поэтому результаты могут содержать нежелательные искажения.

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

  • суммаризация текстов на каталанском
  • ответы на вопросы на испанском
  • генерация текста на английском
  • творческое письмо на каталанском, испанском и английском
  • выполнение инструкций на целевых языках

Ограничения

Модель снята с поддержки и больше не сопровождается. Смещения и токсичность отдельно не оценивались; веб-данные обучения могут приводить к нежелательным искажениям.

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

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

Открыть на Hugging Face

FLOR-6.3B Instructed

⚠️NOTICE⚠️: This model has been deprecated and is no longer actively maintained or supported. To access the latest models with enhanced features, better performance, and ongoing support, please visit https://huggingface.co/BSC-LT

Table of Contents

Model description

FLOR-6.3B-Instructed is a 6.3B-parameter transformer-based causal language model for Catalan, Spanish, and English, trained on a combined dataset from InstruCat, a Catalan language set of instruction generated automatically from project-aina task orientated dataset, a subset of the Dolly dataset for English, and MENTOR_ES and MENTOR_CA, a Spanish and Catalan sets of instructions commisioned by the BSC Language Technologies Unit. It is the result of a language adaptation technique performed on BLOOM-7.1B, which involves modifying the model's vocabulary and embedding layer, and continuously pre-training the model with 140B tokens in our target languages. Blog post describing the base model: flor-6-3b, a chinchilla compliant model

Intended uses and limitations

The FLOR-6.3B-Instructed model is ready-to-use for some downstream tasks. It can perform text-generation tasks because fine-tuned for specific scenarios, such as summarization, Question Answering, creative writing, etc.

How to use

import torch
from transformers import pipeline

pipe = pipeline("text-generation", model="projecte-aina/FLOR-6.3B-Instructed")

instruction = "Quants habitants té Mataró?"

context = "Mataró és una ciutat de Catalunya, capital de la comarca del Maresme. Situada al litoral mediterrani, a uns 30 km al nord-est de Barcelona, ha estat tradicionalment un centre administratiu de rellevància territorial i un pol de dinamisme econòmic. Compta amb prop de 130.000 habitants, essent actualment la vuitena població del Principat i la tretzena dels Països Catalans. "

# We need to format the prompt and context using ### and \n

def givePrediction(instruction, context, max_new_tokens=50, repetition_penalty=1.2, top_k=50, top_p=0.95, do_sample=True, temperature=0.5)
    text = f"### Instruction\n{{instruction}}\n### Context\n{{context}}\n### Answer\n"
    response = pipe(text.format(instruction=instruction, context=context),temperature=temperature,repetition_penalty=repetition_penalty, max_new_tokens=max_new_tokens,top_k=top_k, top_p=top_p, do_sample=do_sample)[0]["generated_text"]
    answer = response.split("###")[-1][8:-1]
    return answer

answer = givePrediction(instruction, context)

print(answer)
'130 000'

Limitations and bias

At the time of submission, no measures have been taken to estimate the bias and toxicity embedded in the model. However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.

Training

Instruction Data

The training corpus is composed of 140B tokens gathered from web crawlings and public domain data.

Additional information

Author

The Language Technologies Unit from Barcelona Supercomputing Center.

Contact

For further information, please send an email to langtech@bsc.es.

Copyright

Copyright(c) 2023 by Language Technologies Unit, Barcelona Supercomputing Center.

License

Apache License, Version 2.0

Funding

This work was funded by [Departament de la Vicepresidència i de Polítiques Digitals i Territori de la Generalitat de Catalunya](https://politiquesdigitals.gencat.cat/ca/inici/index.html#googtrans(ca|en) within the framework of Projecte AINA.

Disclaimer

The model published in this repository is intended for a generalist purpose and is available to third parties under a permissive Apache License, Version 2.0.

Be aware that the model may have biases and/or any other undesirable distortions.

When third parties deploy or provide systems and/or services to other parties using this model (or any system based on it) or become users of the model, they should note that it is their responsibility to mitigate the risks arising from its use and, in any event, to comply with applicable regulations, including regulations regarding the use of Artificial Intelligence.

In no event shall the owner and creator of the model (Barcelona Supercomputing Center) be liable for any results arising from the use made by third parties.

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

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

GPU в ailist

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

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
41e5729

0 моделей