/ Модель

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

Контекст
131 072 токена
Параметры
3,8 млрд
Размер весов
59,1 ГБ
Лицензия
Apache 2.0
Архитектура
gravity_moe · dense
Базовая модель
Gravity-30B-A5B-Base
Библиотека
transformers
Опубликована
9 сен 2026

Gravity-30B-A5B-Preview

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

Предварительная диалоговая модель Trillion Labs с длинным контекстом, рассуждениями и многошаговым вызовом инструментов.

397скачиваний за 30 дней3лайкавеса обновлены9 сен 2026

Бенчмарки

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

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

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

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

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

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

Gravity-30B-A5B-Preview — языковая модель Trillion Labs, дообученная на основе Gravity-30B-A5B-Base. Это разреженная модель семейства GravityMoE: в карточке указаны 29,56 млрд параметров всего и 5,34 млрд активных параметров; метаданные каталога сообщают 3,8 млрд параметров. Модель принимает текст и генерирует ответы в диалоговом формате, поддерживает контекст до 131 072 токенов и гибридный режим рассуждений, включённый по умолчанию.

Обучение включало длинноконтекстное instruction tuning и несколько этапов DPO, в том числе настройку многошагового использования инструментов на метках, полученных при выполнении вызовов. Модель предназначена для диалогов, рассуждений, работы с кодом и научными темами, а также сценариев с вызовом инструментов. Это предварительная версия; агентные и многошаговые возможности продолжают развиваться, а качество может снижаться для языков, слабо представленных в обучающих данных. Для работы требуется Transformers с поддержкой пользовательского кода архитектуры. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

Gravity-30B-A5B-Preview

Gravity-30B-A5B-Preview is a post-trained language model built on Gravity-30B-A5B-Base by Trillion Labs. Starting from the 128K-context base model, it underwent long-context supervised fine-tuning (SFT) and several rounds of preference optimization (DPO), with the final rounds targeting multi-turn tool use using preference labels computed by executing the model's tool calls rather than by an LLM judge.

The model is a hybrid thinking model: it reasons inside <think>…</think> by default and can be switched to direct answers per request.

This is a preview release. The checkpoint uses the GravityMoE architecture (trust_remote_code=True), whose modeling code inherits directly from the DeepSeek-V3 implementation in transformers.

Model Summary

PropertyValue
Base ModelGravity-30B-A5B-Base
Total Parameters29.56B
Active Parameters5.34B
ArchitectureGravityMoE (DeepSeek-V3-compatible: MLA + sparse MoE)
Context Length131,072 tokens (128K)
ThinkingHybrid (enable_thinking, /nothink)
Tool CallingYes (GLM-4.5-style XML <tool_call>)
Precisionbf16
LicenseApache 2.0

For full architectural details (MLA, MoE routing, tokenizer, etc.), see the base model card.

Post-Training Pipeline

Starting from Gravity-30B-A5B-Base:

  1. Long-Context SFT — Instruction tuning at the full 128K context (sequence packing) on a mixture of general chat, reasoning, science, code and agentic trajectories.
  2. Preference Optimization (DPO) — A round of DPO on judged preference pairs targeting response quality and termination behaviour.
  3. Execution-Labelled Multi-Turn DPO — Two rounds of DPO for multi-turn tool use. Candidate turns are executed against live tool environments and compared with the gold call sequence's resulting state and responses; matching answers become chosen, non-matching become rejected. No LLM judge is involved.

Evaluation Results

Tool Use

BFCL v3, three runs per checkpoint with a fresh server per run, mean ± standard deviation. Live Acc is the sample-weighted mean of the four live AST categories; multi-turn is the unweighted mean of the four multi-turn categories.

ModelBFCL v3 Live Acc (n=1351)BFCL v3 multi-turn (n=800)LAB-Bench (tools on)
SFT checkpoint (stage 1)69.97 ± 0.9927.05 ± 0.2948.24
Gravity-30B-A5B-Preview73.11 ± 0.3430.25 ± 0.5049.58

LAB-Bench covers the six non-image subtasks with tools enabled; its run-to-run spread (~6 points) is larger than the difference between the two rows, so it is reported only to show the preference training did not regress it.

Quickstart

Installation

pip install "transformers>=4.57" torch

Using Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_name = "trillionlabs/Gravity-30B-A5B-Preview"

tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    trust_remote_code=True,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Solve the equation: x^3 - 6x^2 + 11x - 6 = 0"},
]

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

output = model.generate(**inputs, max_new_tokens=2048, do_sample=True, temperature=0.7, top_p=0.95)
print(tokenizer.decode(output[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

Thinking Mode

Thinking is on by default: the chat template ends the prompt with <|assistant|>\n<think> and the model writes its reasoning before </think>. To get a direct answer, pass enable_thinking=False to apply_chat_template (or append /nothink to the user message):

inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True, enable_thinking=False
).to(model.device)

When serving with SGLang, use --reasoning-parser glm45 so the <think> block is returned as reasoning_content instead of content.

Tool Calling

Tools passed via tools= are rendered into the system prompt and calls are emitted as

<tool_call>get_weather
<arg_key>city</arg_key>
<arg_value>Seoul</arg_value>
</tool_call>

SGLang parses this format with --tool-call-parser glm45.

Deployment

Note: We are working on upstreaming native GravityMoE support to SGLang. Until the PR is merged, please use the fork below. Internally the model is DeepSeek-V3-compatible, so the fork only registers the GravityMoEForCausalLM name onto SGLang's DeepSeek-V3 implementation. The full 131,072-token window is recommended for agentic workloads.

SGLang

Install SGLang from the sglang-gravity fork (based on SGLang v0.5.19):

pip install "sglang[all] @ git+https://github.com/trillion-labs/sglang-gravity.git#subdirectory=python"

Launch the server:

python3 -m sglang.launch_server \
    --model-path trillionlabs/Gravity-30B-A5B-Preview \
    --host 0.0.0.0 --port 30000 \
    --tp 4 --context-length 131072 \
    --trust-remote-code --dtype bfloat16 \
    --tool-call-parser glm45 --reasoning-parser glm45

Send a request:

curl http://localhost:30000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "trillionlabs/Gravity-30B-A5B-Preview",
    "messages": [{"role": "user", "content": "What is the capital of South Korea?"}],
    "max_tokens": 512,
    "temperature": 0.7
  }'

Limitations

  • This is a preview release. Agentic and multi-turn capabilities are under active development.
  • The model may generate factually incorrect, biased, or harmful content.
  • Performance may degrade on languages not well-represented in the training data.

Acknowledgements

This model was developed as part of a collaborative research initiative led by Lunit and Trillion Labs, with a focus on advancing foundation models for science and healthcare.

  • Lunit — Project lead and medical AI research
  • Trillion Labs — Model architecture, pretraining, and infrastructure
  • Aigen Science — Biomedical AI and drug discovery research
  • SK Biopharmaceuticals — AI-driven drug development and digital healthcare advisory
  • Kakao Healthcare — Medical data standardization and platform support

We also thank the following participating institutions for their contributions: KAIST (Yoonjae Choi, Taekyun Kim, Jong Chul Ye, Hyunwoo Kim, Seunghoon Hong), Seoul National University (Yousung Jung), Rebellions, Standigm, NHIS Ilsan Hospital, Yongin Severance Hospital, Gangdong Kyung Hee University Hospital, Kyung Hee University Medical Center, Korea University, Konyang University Hospital, Ewha Womans University Seoul Hospital, Keimyung University Dongsan Medical Center, Pusan National University Yangsan Hospital, and D-Circle.

This work was supported by the AI Specialized Foundation Model Project (인공지능 특화 파운데이션 모델 프로젝트), funded by the Ministry of Science and ICT (과학기술정보통신부, MSIT) and managed by the National IT Industry Promotion Agency (NIPA, 정보통신산업진흥원).

License

This model is released under the Apache 2.0 License.

Citation

@misc{gravity-30b-preview-2026,
    title={Gravity-30B-A5B-Preview},
    author={Trillion Labs},
    year={2026},
    url={https://huggingface.co/trillionlabs/Gravity-30B-A5B-Preview}
}

Contact

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
GravityMoEForCausalLM
Ревизия весов
4aec223

0 моделей