/ Модель

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

Контекст
8 192 токена
Параметры
7,6 млрд
Размер весов
32,5 ГБ
Лицензия
Llama 3
Архитектура
llama · dense
Базовая модель
Meta-Llama-3-8B
Опубликована
17 окт 2024

llama3-tedllm-8b-v0

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

Двуязычная японско-английская языковая модель на базе Llama 3 8B для генерации текста и последующей настройки под прикладные задачи.

19скачиваний за 30 дней0лайковвеса обновлены18 дек 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama3-tedllm-8b-v0 — двуязычная генеративная языковая модель, разработанная TED и Cerebras Systems на основе Meta Llama 3 8B. Это плотная архитектура LLaMA-3 с 7,6 млрд параметров, контекстом 8192 токена и словарём из 141 056 токенов. Модель прошла непрерывное предобучение на примерно 173 млрд токенов: около 80% данных составляют японские тексты и 20% — английские. Расширенный словарь повышает эффективность токенизации японского языка.

Модель предназначена для генерации японского и английского текста и может служить основой для последующей настройки под прикладные задачи. Она не проходила настройку на инструкциях, поэтому не рассчитана на надёжное выполнение запросов в формате ассистента без дополнительного дообучения. Обучающие веб-данные могут содержать ошибки, предвзятость и нежелательный контент; результаты следует проверять, особенно в чувствительных сценариях. Модель распространяется по лицензии Meta Llama 3.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Llama3-tedllm-8B-v0

Llama3-tedllm-8b-v0 is a bilingual Japanese-English generative model built through continuous pre-training from Llama-3-8B on approximately 173 billion tokens. This model is designed to enhance the Japanese language understanding and generation while preserving English proficiency of Llama-3.

How to use

Below is a sample code to use this model for text generation.

import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tokyo-electron-device-ai/llama3-tedllm-8b-v0")
model = AutoModelForCausalLM.from_pretrained("tokyo-electron-device-ai/llama3-tedllm-8b-v0", device_map="auto", torch_dtype=torch.bfloat16)
text = "人工知能とは何か説明してください"
tokenized_input = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt").to(model.device)
with torch.no_grad():
    output = model.generate(
        tokenized_input,
        max_new_tokens=50,
        do_sample=True,
        top_p=0.9,
        temperature=0.6,
    )[0]
print(tokenizer.decode(output))

Model Details

  • Developed by: TED, Cerebras Systems
  • Language(s): Japanese and English
  • Model architecture: Matches LLaMA-3 8B
  • License: Meta Llama 3 License
  • Trained from model: LLaMa-3 8B
  • Vocabulary size: 141,056 tokens
  • Context length: 8192 tokens
  • Input: text data
  • Output: model generates text

Intended Use & Limitations

  • Intended Use: This model is continuously pretrained using Llama-3-8B as the foundation. The model has not been exposed to instruction tuning data. It is designed for text generation tasks and can also be fine-tuned for specific downstream applications, making it suitable for a variety of users, including researchers, developers, and businesses.
  • Limitations: Despite its versatility, the model is trained on web-crawled datasets like mc4 and OSCAR, which may contain inaccuracies, biases, or harmful content. As a result, it can generate incorrect, misleading, or offensive outputs. Users should critically evaluate the results, especially in high-stakes or sensitive applications, and are responsible for ensuring compliance with legal and ethical standards. This model is a tool, not a source of truth, and its outputs should be verified in context.

Training Details

Training process

We follow the approach described in Bilingual Adaptation of Monolingual Foundation Models for training.

  • Starting with the Llama-3-8B base checkpoint, we extend the LLaMA-3 vocabulary by 10%, from 128,000 to 141,056 tokens, to increase a variety of Japanese Kanjis tokens. This improves Japanese tokenization efficiency by 21%.
  • We initialize newly added embeddings using similarity-based token embedding initialization. Added embedding vectors are initialized with a weighted average of embeddings of top K most similar tokens in the original LLaMA-3 vocabulary, using an external embedding.
  • We start with embedding-only training on 8.6B tokens, freezing the weights of all layers expect for the embedding and unembedding layers.
  • This is followed by full continuous pre-training on 164B tokens, where all model weights are updated.

Training data

This model was continuously trained on 173B tokens, with the training data consisting of 20% English and 80% Japanese. The raw Japanese data was filtered using scripts from llm-jp-corpus repository. The following Japanese datasets were included into the training data mixture:

Note: This released model was trained exclusively on open-source datasets. We also trained models using proprietary domain-specific data, but there are no plans to release those models.

Hyper-parameters

  • batch_size: 720
  • peak_learning_rate: 7.5e-5
  • optimizer: AdamW
  • weight_decay: 0.1
  • annealing_steps: 500

Note: We created another model name, llama3-tedllm-8b-v0-annealing as the model with the annealing_step applied. If you are interested, please check here.

Training Infrastructure

The model was trained on a Cerebras Wafer-Scale Cluster, using from 4 to 16 CS-3 systems during different phases of training. Training on the Cerebras Wafer-Scale Clusters leverages Cerebras' Weight Streaming execution paradigm, which simplifies the training of LLMs by disaggregating compute from memory used for model weights. This enables efficient scaling of training across multiple nodes using simple data parallelism. You can learn more about Cerebras Wafer-Scale clusters and Weight Streaming execution here.

Evaluation

We conducted a comprehensive evaluation of Llama3-tedllm-8b-v0-annealing and benchmarked it against other leading Japanese-English bilingual models. Considering evaluation results in both Japanese and English, our model performs on par with the best Japanese-English bilingual models of a similar size, while offering significantly higher tokenization efficiency, which leads to a substantial reduction in inference cost.

  • Japanese benchmark: llm-jp-eval==1.4.1
  • English benchmark: MMLU, BoolQ, Winogrande, Hellaswag

Japanese Task Result

ModelELFAHEMCMRNLIQARCAVG
Llama-3-8B0.3720.2540.5050.6470.6500.6340.4130.8680.543
Llama3-tedllm-8b-v00.3840.2540.5400.7470.6800.6220.5070.8670.575
Llama-3-Swallow-8B-v0.10.4070.2770.5250.7500.7200.6120.5220.8900.588
Llama-3-ELYZA-JP-8B0.4610.2760.4850.7630.7000.6100.4910.9000.586

English Task Result

ModelMMLUBoolQWinograndeHellaswagAverage
Llama-3-8B0.6220.8120.7280.7920.738
Llama3-tedllm-8b-v00.5910.8260.7360.7700.731
Llama-3-Swallow-8B-v0.10.5910.8240.7260.7720.728
Llama-3-ELYZA-JP-8B0.5640.8240.7260.7720.721

Model Card Contact

If you have any question, please feel free to contact cerebras-sup@teldevice.co.jp.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей