/ Модель

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

Контекст
8 192 токена
Параметры
27,6 млрд
Размер весов
54,5 ГБ
Лицензия
Gemma
Архитектура
gemma2 · dense
Базовая модель
GaMS-27B
Опубликована
4 апр 2025

GaMS-27B-Instruct

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

GaMS-27B-Instruct — дообученная на диалогах большая языковая модель для генерации текста и общения преимущественно на словенском и английском языках.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

GaMS-27B-Instruct — разговорная языковая модель, разработанная исследовательской группой факультета компьютерных наук и информатики Люблянского университета. Это версия GaMS-27B, дообученная методом SFT; семейство GaMS основано на Gemma 2 и продолжительно обучалось на словенских, английских, хорватских, сербских и боснийских текстах. Модель имеет плотную архитектуру Gemma 2 с 27,6 млрд параметров, принимает текст и генерирует текст. Контекст — до 8192 токенов.

Модель предназначена для диалогов и генерации текстов, в первую очередь на словенском и английском языках; также поддерживаются хорватский, сербский и боснийский. Её можно применять для черновиков, суммаризации, ответов на вопросы и языковой практики. Лицензия — Gemma.

Ответы могут содержать фактические ошибки и отражать предвзятость обучающих данных; модель может испытывать трудности с тонкими языковыми нюансами и сложными задачами. Для чувствительных сценариев следует проверять результаты и учитывать ограничения политики использования Gemma.

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

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

Ограничения

Модель может выдавать неточные или устаревшие факты, воспроизводить предвзятость обучающих данных и затрудняться с тонкими языковыми нюансами и сложными открытыми задачами. Для чувствительных сценариев необходимы проверка ответов и меры безопасности.

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

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

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

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

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

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

Открыть на Hugging Face

Model Card for GaMS-27B-Instruct

GaMS-2B, GaMS-9B and GaMS-27B represent new improved and larger models of the GaMS (Generative Model for Slovene) familly. The models are based on Google's Gemma 2 familly and continually pretrained on Slovene, English and some portion of Croatian, Serbian and Bosnian corpora.

This is the SFT version of GaMS-27B model

image/png

Acknowledgment

The model was developed within the PoVeJMo research program (Adaptive Natural Language Processing with Large Language Models), particularly within the research project titled SloLLaMai -- Open-access computationally efficient models for Slovenian. The program is funded within the Recovery and Resilience Plan by the Slovenian Research and Innovation Agency (ARIS) and NextGenerationEU. The authors also acknowledge the financial support from the Slovenian Research and Innovation Agency (research core funding No. P6-0411 -- Language Resources and Technologies for Slovene).

We thank everyone who worked on data collection and preparation, enabling us to train our model. Special thanks go to Nikola Ljubešić, Taja Kuzman, Tjaša Arčon, Jaka Čibej, Simon Krek, Tomaž Erjavec, Iztok Kosem and Tomaž Savodnik.

Basic information

  • Developed by: team of researchers at the University of Ljubljana, Faculty for Computer and Information Science. Team members: Domen Vreš, Iztok Lebar Bajec, Tjaša Arčon, Gašper Jelovčan and Marko Robnik-Šikonja.
  • Languages: Slovene, English (primary), Croatian, Bosnian and Serbian (secondary). The model might also work for other languages supported by Gemma 2, even though it was not continually pretrained on them.
  • Base model: cjvt/GaMS-27B
  • License: Gemma

Usage

The model can be run through pipeline API using the following code:

from transformers import pipeline

model_id = "cjvt/GaMS-27B-Instruct"

pline = pipeline(
    "text-generation",
    model=model_id,
    device_map="cuda" # replace with "mps" to run on a Mac device
)

# Example of response generation
message = [{"role": "user", "content": "Kateri je najpomembnejši dogodek v slovenski zgodovini?"}]
response = pline(message, max_new_tokens=512)
print("Model's response:", response[0]["generated_text"][-1]["content"])

# Example of conversation chain
new_message = response[0]["generated_text"]
new_message.append({"role": "user", "content": "Lahko bolj podrobno opišeš ta dogodek?"})
response = pline(new_message, max_new_tokens=1024)
print("Model's response:", response[0]["generated_text"][-1]["content"])

For multi GPU inference set the device_map to auto:

from transformers import pipeline

model_id = "cjvt/GaMS-27B-Instruct"

pline = pipeline(
    "text-generation",
    model=model_id,
    device_map="auto"
)

# Example of response generation
message = [{"role": "user", "content": "Kateri je najpomembnejši dogodek v slovenski zgodovini?"}]
response = pline(message, max_new_tokens=512)
print("Model's response:", response[0]["generated_text"][-1]["content"])

# Example of conversation chain
new_message = response[0]["generated_text"]
new_message.append({"role": "user", "content": "Lahko bolj podrobno opišeš ta dogodek?"})
response = pline(new_message, max_new_tokens=1024)
print("Model's response:", response[0]["generated_text"][-1]["content"])

Data

CPT Data

Model was continually pre-trained in two stages. In the first stage, parallel English-Slovene (and Croatian in some cases) corpora was used to align the languages. In the second stage, the model was trained on separate English, Slovene, Croatian, Bosnian and Serbian corpora.

Parallel alignment corpora

CorpusAlignment level# TokensPercentage
KAS AbstractsDocument level31 M1.65 %
DGTSeparate documents697 M36.56 %
MaCoCu ParallelSeparate documents430 M22.53 %
CC-NewsParagraph level749 M39.25 %
Total1.91 B

Explanation of each alignment level:

  • Document level: Parallel documents were concatenated into a single document
  • Separate documents: Parallel documents were not explicitly aligned
  • Paragraph level: Paragraphs of parallel documents were concatenated (the first paragraph of Slovene/English document was followed by the first paragraph in the other language, which was then followed by the second paragraph in the first language and so on)

Second stage corpora

CorpusLanguage# TokensPercentage
KASSlovene2.77 B20.34 %
MetaFida*Slovene4.66 B34.18 %
Wikipedia-En (Date: January 23rd 2025)English5.45 B39.99 %
Wikipedia-Sl (Date: January 1st 2025)Slovene0.16 B1.19 %
Wikipedia-Hr (Date: January 1st 2025)Croatian0.15 B1.13 %
Wikipedia-Bs (Date: January 1st 2025)Bosnian0.07 B0.50 %
Wikipedia-Sr-Latin*Serbian0.36 B2.68 %
Total13.62 B

Remarks:

  • The following corpora was excluded from MetaFida: dgt15_sl, classlawiki_sl, tweet_sl, janes_tweet, janes_forum, janes_news
  • Serbian Wikipedia was converted from Cyrillic to Latin

SFT Data

Our training data for SFT consisted out of approximately 25.000 training and 1500 validation examples. The dataset was a mixture of following datasets:

  • GaMS-Instruct-GEN 1.0
  • GaMS-Instruct-DH 1.0: 3000 randomly selected examples were chosen from this dataset
  • GaMS-Instruct-MED 1.0: 3000 randomly selected examples were chosen from this dataset
  • Parallel corpus EN-SL RSDO4 2.0: additional filtering was done on this corpus. First we ran FastText language identification using NeMo Curator and kept only the examples were source was detected as English and target as Slovene. Next, we ran COMET model to evaluate translations. We kept only the examples with COMET scores higher than 0.945 (approximatelly 8000 examples).
  • Aya Dataset: only English and Serbian examples were taken from this dataset. Serbian examples were converted from Cyrillic to Latin.
  • Math competitions: We took PDFs from Slovene national math competitions between years 2001 and 2010. We extracted text from PDFs using olmOCR and manually corrected the extracted text. This gave us around 150 solved math problems.

Training

The model was trained on the Booster partition of Leonardo HPC.

CPT

We continually pretrained the model using NVIDIA NeMo 2.0 framework. The model was trained in BF16-Mixed precision using tensor parallelism across 8 GPUs, sequence parallelism, and activation recomputation. The model was trained across 32 nodes, each containing 4 A100 64GB GPUs. The parallel alignment training took approximately 8 hours and second stage took approximately 110 hours.

The model was trained using a cosine learning rate scheduler with linear warmup and the following hyperparameters.

Parallel alignment:

  • warmup steps: 150
  • minimal learning rate: 5e-6
  • maximal learning rate: 2e-5
  • constant steps: 0
  • batch size: 512 (4 million tokens)

Second stage:

  • warmup steps: 500
  • minimal learning rate: 5e-6
  • maximal learning rate: 5e-5
  • constant steps: 100
  • batch size: 512 (4 million tokens)

SFT

As a contrast to 2B and 9B models, the 27B was supervised fine-tuned using NeMo framework, which enables easier scalng. The model was trained in BF16 precision, using tensor parallelism to split it across 4 GPUs, sequence parallelism, and activation recomputation. The model was trained on 8 nodes with 4 A100 64 GB GPU.

The model was tuned using a cosine learning rate scheduler with linear warmup and the following hyperparameters:

  • number of epochs: training was done on 5 epochs, but the best performing model according to validation loss was obtained after the second epoch, so we kept that model
  • batch size: 128
  • warmup steps: 150
  • minimal learning rate: 1e-8
  • maximal learning rate: 5e-6
  • constant steps: 0

Evaluation

The models were evaluated using Slovene SuperGLUE collection of classification tasks on SloBench. Instruct version of the model was also evaluated on translation from English to Slovene and from Slovene to English. Additionally, we evaluated our models on Slovenian-LLM-Eval.

Code for evaluation:

Slovenian-LLM-Eval results

Comparison between GaMS models, base Gemma 2 models and SlovenianGPT (open source model for Slovene based on Mistral 7B) is shown in the figure below. All models were evaluated in 0-shot scenario.

image/png

Slobench Results

GaMS 2B, 9B, 27B and 27B-Instruct models were evaluated in 3-shot scenario, except for MultiRC and translation tasks, where 0-shot was used. GaMS-2B-Instruct and GaMS-9B-Instruct were evaluated in 0-shot scenarion on all tasks. We used guided decoding to ensure the correct format of the responses.

Slovene SuperGLUE

RankTitleAverageBoolQ AccuracyCB AccuracyCB F1 ScoreCB AverageCOPA AccuracyMultiRC EMMultiRC F1a ScoreMultiRC AverageRTE AccuracyWSC Accuracy
1GaMS-27B0.76010.83330.64400.58640.61520.95400.39040.75040.57040.79310.7945
2PrešernGPT 0.10.75680.83330.85200.58680.71940.97400.49850.80610.65230.82760.5342
3Gemma 2 27B0.75460.83330.66800.59720.63260.91400.41740.72950.57350.82760.7466
4GaMS-9B0.73090.70000.84000.79550.81780.90000.32430.65510.48970.79310.6849
5GaMS-27B-Instruct0.70380.83330.72000.63220.67610.94000.05110.58130.31620.79310.6644
6GaMS-9B-Instruct (0-shot)0.69970.80000.79600.71280.75440.81400.07210.61740.34470.79310.6918
7Gemma 2 9B0.69800.83330.82400.56830.69620.87000.22820.53100.37960.72410.6849
9CroSloEngual BERT0.60780.73330.79200.74370.76790.57200.09310.52410.30860.65520.6096
12SlovenianGPT-Chat0.50780.73330.39200.38290.38740.68400.24320.49440.36880.51720.3562
13Gemma 2 2B0.48760.63330.45200.21230.33210.51800.14710.44190.29450.58620.5616
14GaMS-2B0.47900.56670.60800.48800.54800.52400.06310.52340.29320.55170.3904
15GaMS-2B-Instruct (0-shot)0.46080.66670.51200.26110.38660.50000.04200.53770.28990.55170.3699
16GaMS-1B0.46040.50000.62000.45650.53820.49200.13510.26750.20130.48280.5479
17GaMS-1B-Chat0.45700.80000.48800.30230.39510.48400.10810.24280.17550.51720.3692

English to Slovene translation (first 11 models on the benchmark)

RankTitleBERT scoreBLEU (avg)METEOR (avg)CHRF (avg)BLEU (corpus)CHRF (corpus)
1DeepL Translator0.88120.31530.59020.62050.35990.6205
2gemini-1.5-pro0.87910.31240.58950.61760.35690.6176
3Sonnet 3.50.87890.30590.57830.62040.34420.6204
4gpt-4o0.87840.29580.58110.61380.33790.6138
5EuroLLM-9B-Instruct0.87410.29270.57920.60550.32730.6055
6GaMS-27B-Instruct0.87340.28660.56880.59860.32460.5986
7seamless-m4t-v2-large0.87310.27800.55990.59470.30850.5947
8GaMS-9B-Instruct0.87130.27730.56160.59280.32090.5928
9Zlatorog0.87060.28340.56330.60140.29030.6014
10RSDO-DS4-NMT 1.2.20.87050.27940.56340.59560.32260.5956
10META LLAMA 3.1 405B0.87050.26370.54970.59300.30630.5930
12RSDO-DS4-NMT 1.20.86980.27810.56020.59700.31770.5970

Slovene to English translation (first 10 models on the benchmark)

RankTitleBERT scoreBLEU (avg)METEOR (avg)CHRF (avg)BLEU (corpus)CHRF (corpus)
1gpt-4o0.94960.31610.66550.62970.34960.6297
2gemini-1.5-pro0.94890.31170.65600.62370.35020.6237
3gpt-4o-mini0.94660.29760.64930.61970.33280.6197
4GaMS-27B-Instruct0.94550.28360.62700.59720.32000.5972
5GaMS-9B-Instruct0.94540.28210.62750.60180.31410.6018
6ChatGPTv10.94490.28520.64150.60960.31710.6096
7RSDO-DS4-NMT 1.2.40.94340.28390.62270.59670.32900.5967
8RSDO-DS4-NMT 1.2.60.94330.28320.62070.59440.32950.5944
9RSDO-DS4-NMT 1.2.20.94310.27850.61840.59330.32400.5933
9RSDO-DS4-NMT 1.20.94310.28050.62010.59410.32310.5941
11eTranslation SLEN0.94140.27290.61750.59130.31190.5913

Usage and Limitations (taken from Gemma 2)

These models have certain limitations that users should be aware of.

Intended Usage

Open Large Language Models (LLMs) have a wide range of applications across various industries and domains. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.

  • Content Creation and Communication
    • Text Generation: These models can be used to generate creative text formats such as poems, scripts, code, marketing copy, and email drafts.
    • Chatbots and Conversational AI: Power conversational interfaces for customer service, virtual assistants, or interactive applications.
    • Text Summarization: Generate concise summaries of a text corpus, research papers, or reports.
  • Research and Education
    • Natural Language Processing (NLP) Research: These models can serve as a foundation for researchers to experiment with NLP techniques, develop algorithms, and contribute to the advancement of the field.
    • Language Learning Tools: Support interactive language learning experiences, aiding in grammar correction or providing writing practice.
    • Knowledge Exploration: Assist researchers in exploring large bodies of text by generating summaries or answering questions about specific topics.

Limitations

  • Training Data
    • The quality and diversity of the training data significantly influence the model's capabilities. Biases or gaps in the training data can lead to limitations in the model's responses.
    • The scope of the training dataset determines the subject areas the model can handle effectively.
  • Context and Task Complexity
    • LLMs are better at tasks that can be framed with clear prompts and instructions. Open-ended or highly complex tasks might be challenging.
    • A model's performance can be influenced by the amount of context provided (longer context generally leads to better outputs, up to a certain point).
  • Language Ambiguity and Nuance
    • Natural language is inherently complex. LLMs might struggle to grasp subtle nuances, sarcasm, or figurative language.
  • Factual Accuracy
    • LLMs generate responses based on information they learned from their training datasets, but they are not knowledge bases. They may generate incorrect or outdated factual statements.
  • Common Sense
    • LLMs rely on statistical patterns in language. They might lack the ability to apply common sense reasoning in certain situations.

Ethical Considerations and Risks

The development of large language models (LLMs) raises several ethical concerns. In creating an open model, we have carefully considered the following:

  • Bias and Fairness
    • LLMs trained on large-scale, real-world text data can reflect socio-cultural biases embedded in the training material. These models underwent careful scrutiny, input data pre-processing described and posterior evaluations reported in this card.
  • Misinformation and Misuse
    • LLMs can be misused to generate text that is false, misleading, or harmful.
    • Guidelines are provided for responsible use with the model, see the [Responsible Generative AI Toolkit][rai-toolkit].
  • Transparency and Accountability:
    • This model card summarizes details on the models' architecture, capabilities, limitations, and evaluation processes.
    • A responsibly developed open model offers the opportunity to share innovation by making LLM technology accessible to developers and researchers across the AI ecosystem.

Risks identified and mitigations:

  • Perpetuation of biases: It's encouraged to perform continuous monitoring (using evaluation metrics, human review) and the exploration of de-biasing techniques during model training, fine-tuning, and other use cases.
  • Generation of harmful content: Mechanisms and guidelines for content safety are essential. Developers are encouraged to exercise caution and implement appropriate content safety safeguards based on their specific product policies and application use cases.
  • Misuse for malicious purposes: Technical limitations and developer and end-user education can help mitigate against malicious applications of LLMs. Educational resources and reporting mechanisms for users to flag misuse are provided. Prohibited uses of Gemma models are outlined in the [Gemma Prohibited Use Policy][prohibited-use].
  • Privacy violations: Models were trained on data filtered for removal of PII (Personally Identifiable Information). Developers are encouraged to adhere to privacy regulations with privacy-preserving techniques.

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Gemma2ForCausalLM
Ревизия весов
09927d6

0 моделей