/ Модель

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

Контекст
8 192 токена
Параметры
69,5 млрд
Размер весов
141 ГБ
Лицензия
Llama 3
Архитектура
llama · dense
Опубликована
23 мая 2024

llama-3-typhoon-v1.5x-70b-instruct

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

Диалоговая модель на основе Llama 3 и Typhoon, предназначенная для генерации ответов, рассуждений и RAG-сценариев на тайском и английском языках.

59скачиваний за 30 дней8лайковвеса обновлены31 мар 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama-3-Typhoon-1.5X-70B-instruct — диалоговая языковая модель команды SCB 10X Typhoon, созданная на основе Llama 3 70B Instruct и Typhoon 1.5 70B с помощью редактирования модели методом task arithmetic. Это плотная decoder-only модель архитектуры Llama примерно на 69,5 млрд параметров; она принимает и генерирует текст, использует шаблон чата Llama 3 и поддерживает контекст до 8192 токенов.

Модель рассчитана прежде всего на тайский язык, также поддерживает английский. Её предназначение — следование инструкциям, рассуждения, ответы на вопросы и применение в RAG-сценариях и генерации с заданными ограничениями. В карточке приведены результаты тестов ThaiExam, MMLU, MT-Bench и IFEval, включая оценки на тайском и английском.

Разработчики отмечают экспериментальный характер модели и рекомендуют отдельно оценивать её риски для конкретного применения. Модель распространяется по лицензии Llama 3 Community License; для работы указана Transformers версии 4.38.0 или новее.

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

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

Ограничения

Модель экспериментальная и может быть недостаточно проверена для некоторых сценариев; перед использованием в приложении разработчикам следует оценить её риски и качество для конкретной задачи.

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

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

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

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

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

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

Открыть на Hugging Face

Llama-3-Typhoon-1.5X-70B-instruct: Thai Large Language Model (Instruct)

Llama-3-Typhoon-1.5X-70B-instruct is a 70 billion parameter instruct model designed for Thai 🇹🇭 language. It demonstrates competitive performance with GPT-4-0612, and is optimized for application use cases, Retrieval-Augmented Generation (RAG), constrained generation, and reasoning tasks.

Built on Typhoon 1.5 70B (not yet released) and Llama 3 70B Instruct. this model is a result of our experiment on cross-lingual transfer. It utilizes the task-arithmetic model editing technique, combining the Thai understanding capability of Typhoon with the human alignment performance of Llama 3 Instruct.

Remark: To acknowledge Meta's efforts in creating the foundation model and comply with the license, we explicitly include "llama-3" in the model name.

Model Description

  • Model type: A 70B instruct decoder-only model based on the Llama architecture
  • Requirement: Transformers 4.38.0 or newer
  • Primary Language(s): Thai 🇹🇭 and English 🇬🇧
  • License: Llama 3 Community License

Performance

We evaluated the model's performance in Language & Knowledge Capabilities and Instruction Following Capabilities.

  • Language & Knowledge Capabilities:
    • Assessed using multiple-choice question-answering datasets such as ThaiExam and MMLU.
  • Instruction Following Capabilities:
    • Evaluated based on beta users' feedback, focusing on two factors:
      • Human Alignment & Reasoning: Ability to generate responses that are clear and logically structured across multiple steps.
        • Evaluated using MT-Bench — How LLMs can align with human needs.
      • Instruction-following: Ability to adhere to specified constraints in the instructions.
        • Evaluated using IFEval — How LLMs can follow specified constraints, such as formatting and brevity.
  • Agentic Capabilities:

Remark: We developed the Thai (TH) pairs by translating the original datasets into Thai through machine and human methods.

ThaiExam

ModelONETICTGATTPAT-1A-LevelAverage (ThaiExam)MMLU
Typhoon-1.5X 70B0.5650.680.7780.5170.560.6200.7945
gpt-4-06120.4930.690.7440.5090.6160.6100.864**
------------------------
gpt-4o0.620.630.7890.560.6230.6440.887**

** We report the MMLU score that is reported in GPT-4o Tech Report.

MT-Bench

ModelMT-Bench ThaiMT-Bench English
Typhoon-1.5X 70B8.0298.797
gpt-4-06127.8018.671
---------
gpt-4o8.5149.184

IFEval

ModelIFEval ThaiIFEval English
Typhoon-1.5X 70B0.6450.810
gpt-4-06120.6120.793*
---------
gpt-4o0.7370.871
  • We report the number from IFEval paper.

Agent

ModelGAIA - Thai/EnglishGSM8K - Thai/EnglishHotpotQA - Thai/English
gpt-3.5-turbo-012518.42/37.570/8039.56/59
Typhoon-1.5X 70B17.10/36.2580/9552.7/65.83
gpt-4-061217.10/38.7590/10056.41/76.25
------------
gpt-4o44.73/57.5100/10071.64/76.58

Insight

We utilized model editing techniques and found that the most critical feature for generating accurate Thai answers is located in the backend (the upper layers of the transformer block). Accordingly, we incorporated a high ratio of Typhoon components in these backend layers to enhance our model’s performance.

Usage Example

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "scb10x/llama-3-typhoon-v1.5x-70b-instruct"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
) # We don't recommend using BNB 4-bit (load_in_4bit) here. Instead, use AWQ, as detailed here: https://huggingface.co/scb10x/llama-3-typhoon-v1.5x-70b-instruct-awq.

messages = [...] # add message here

input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt"
).to(model.device)

terminators = [
    tokenizer.eos_token_id,
    tokenizer.convert_tokens_to_ids("<|eot_id|>")
]

outputs = model.generate(
    input_ids,
    max_new_tokens=512,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.4,
    top_p=0.95,
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))

Chat Template

We use the Llama 3 chat template.

{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>\n\n' }}{% endif %}

Intended Uses & Limitations

This model is experimental and might not be fully evaluated for all use cases. Developers should assess risks in the context of their specific applications.

Follow us

https://twitter.com/opentyphoon

Support

https://discord.gg/us5gAYmrxw

SCB 10X Typhoon Team

  • Kunat Pipatanakul, Potsawee Manakul, Sittipong Sripaisarnmongkol, Natapong Nitarach, Pathomporn Chokchainant, Kasima Tharnpipitchai
  • If you find Typhoon-1.5X useful for your work, please cite it using:
@article{pipatanakul2023typhoon,
    title={Typhoon: Thai Large Language Models}, 
    author={Kunat Pipatanakul and Phatrasek Jirabovonvisut and Potsawee Manakul and Sittipong Sripaisarnmongkol and Ruangsak Patomwong and Pathomporn Chokchainant and Kasima Tharnpipitchai},
    year={2023},
    journal={arXiv preprint arXiv:2312.13951},
    url={https://arxiv.org/abs/2312.13951}
}

Contact Us

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей