/ Модель

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

Контекст
262 144 токена
Параметры
8 млрд
Лицензия
Своя лицензия
Архитектура
ministral3 · dense
Базовая модель
Nemotron-3-Embed-8B-BF16
Библиотека
sentence-transformers
Опубликована
31 июл 2026

dinghy-law-8b-v1

ЭмбеддингиТекст → embedding6 профессий

Мультиязычная модель эмбеддингов для семантического поиска и извлечения юридических документов в поисковых и RAG-системах.

116скачиваний за 30 дней3лайкавеса обновлены31 июл 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • LegalSummarization

    main_score

    Результат

    0,7655

    MTEB

    Публичная таблицадругая ревизия

  • AILACasedocs

    main_score

    Результат

    0,4955

    MTEB

    Публичная таблицадругая ревизия

  • LeCaRDv2

    main_score

    Результат

    0,7594

    MTEB

    Публичная таблицадругая ревизия

  • AILAStatutes

    main_score

    Результат

    0,6272

    MTEB

    Публичная таблицадругая ревизия

  • LegalQuAD

    main_score

    Результат

    0,7714

    MTEB

    Публичная таблицадругая ревизия

  • LegalBenchConsumerContractsQA

    main_score

    Результат

    0,8754

    MTEB

    Публичная таблицадругая ревизия

  • GerDaLIRSmall

    main_score

    Результат

    0,5471

    MTEB

    Публичная таблицадругая ревизия

  • LegalBenchCorporateLobbying

    main_score

    Результат

    0,9647

    MTEB

    Публичная таблицадругая ревизия

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

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

dinghy-law-8b-v1 — мультиязычная модель эмбеддингов Clause Logic Inc., дообученная на базе NVIDIA Nemotron-3-Embed-8B-BF16 для поиска по юридическим текстам. Это плотная модель на 8 млрд параметров с архитектурой Ministral3; она кодирует запросы и документы в нормализованные векторы размерностью 4096, используя роли `query: ` и `passage: `. Карточка описывает поддержку английского, немецкого и китайского языков и контекст до 262 144 токенов для базовой модели; опубликованная конфигурация Sentence Transformers ограничивает вход 8192 токенами.

Модель предназначена для первого этапа поиска, семантического поиска и извлечения документов для юридических RAG-систем на собственных корпусах: законы, судебные решения, договоры и юридические вопросы. В тесте MTEB(Law, v1) авторы сообщают средний nDCG@10 72,58 по восьми задачам; это результат их воспроизведения, а не официальное место в таблице MTEB. Модель возвращает эмбеддинги и оценки близости, но не генерирует ответы и не предоставляет юридические консультации.

Модельные веса распространяются по лицензии `other`; README указывает на лицензии и атрибуцию обучающих данных, но не уточняет условия лицензии самих весов. Результаты лучше всего подтверждены для английских, немецких и китайских юридических данных; другие языки и юрисдикции могут быть вне обучающего распределения.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

dinghy-law-8b

An 8B-parameter multilingual text-embedding model for legal retrieval, adapted from nvidia/Nemotron-3-Embed-8B-BF16 for statute, case-law, contract, and legal-question retrieval. It is intended for first-stage retrieval, reranking, semantic search, and legal RAG over self-hosted corpora.

On MTEB(Law, v1), this model scores 72.58 Mean(Task) nDCG@10. Its leaderboard-snapshot Borda score is 1,898. Both figures come from our leaderboard-faithful reproduction; they are not an official MTEB leaderboard placement.

Results

MTEB(Law, v1)

Per-task nDCG@10 from the full eight-task public-repository validation run:

TaskPinned NVIDIA basedinghy-law-8b
AILACasedocs49.4249.55
AILAStatutes58.2662.72
GerDaLIRSmall53.6954.71
LeCaRDv275.4575.94
LegalBenchConsumerContractsQA87.6887.54
LegalBenchCorporateLobbying96.0296.47
LegalQuAD77.1877.14
LegalSummarization76.6676.56
Mean(Task)71.7972.58

Per-task values are rounded to two decimals. The aggregate values were calculated from the unrounded task outputs. Borda is field-dependent; the 1,898 figure uses the MTEB(Law, v1) leaderboard cache captured for the July 31, 2026 evaluation.

Why a different base

This release uses NVIDIA's Nemotron-3 embedding model rather than Qwen/Qwen3-Embedding-8B. In our base-model testing, the pinned 8B Nemotron model was the stronger legal-retrieval starting point than the size-matched Qwen/Qwen3-Embedding-8B. The untuned Nemotron base alone produced the eight task scores reported above and 71.79 Mean(Task) on our frozen evaluation snapshot.

The base is pinned to revision dd9d06b1852ef836d3dc2fbd2b71a34356912759 so the model origin, configuration, and license are reproducible.

Open data and process

The legal training data and the full adaptation process are open. All training sources are permissively licensed or public-domain legal text, and the released dataset cards retain source-level licensing and attribution:

No non-commercial training source was added for this model. Compilation, curation, and pair construction are © 2026 Clause Logic Inc.; the underlying sources retain their original licenses.

The recipe is fully specified:

  1. Start from the pinned NVIDIA base and preserve its native query: and passage: roles, mask-aware mean pooling, and 4096-dimensional normalized embeddings.
  2. Train on the same public legal-pair mixture with InfoNCE in-batch negatives, an effective batch of 256, GradCache chunks of 32, 20% public retrieval replay, SIGReg weight 1.0, learning rate 2e-4, and eight 30-step epochs. Training uses a maximum sequence length of 512 tokens.
  3. Average the eight epoch checkpoints into a uniform model soup.
  4. Sweep WiSE interpolation weights 0, 0.2, 0.3, 0.5, 0.7, 0.85, 1.0 against the pinned base. Select by MTEB(Law, v1) Borda on the frozen six-task selection set, then confirm once on all eight tasks.
  5. The selected model is 80% pinned base + 20% uniform soup. No task-specific ensemble or routing is used at inference time.
  6. Sweep inference caps of 4096, 8192, 16384, and 32768 tokens on the same frozen six-task selection set. The 8192-token cap wins by Borda and is then confirmed on all eight tasks.

The training and evaluation machinery is built with LangSet, released under Apache-2.0. That software license is separate from the model-weight license described below.

Usage

from sentence_transformers import SentenceTransformer

model = SentenceTransformer("Hanno-Labs/dinghy-law-8b-v1")

query = "What is the punishment for criminal breach of trust by a public servant?"
documents = [
    "Whoever, being in any manner entrusted with property, commits criminal breach of trust ...",
    "A contract of sale is a contract whereby the seller transfers property in goods ...",
]

query_embedding = model.encode_query(query)
document_embeddings = model.encode_document(documents)
scores = model.similarity(query_embedding, document_embeddings)
print(scores)

Queries use the query: role and documents use the passage: role. Embeddings are 4096-dimensional and L2-normalized, so dot product and cosine similarity are equivalent. The published Sentence Transformers package is configured for inputs up to 8192 tokens.

Evaluation protocol

The reported result uses mteb==2.18.3, the MTEB(Law, v1) task definition, bf16 inference, cosine similarity, query/document role prefixes, mask-aware mean pooling, and a maximum evaluation length of 8192 tokens. The six-task selection set was frozen before the alpha and context-cap sweeps; the remaining two tasks were held for the full-suite confirmation. Every task persisted frozen inputs, exact model-facing token tensors, raw top-1000 scores, per-query metrics, and a content-addressed manifest. The artifacts were downloaded into a clean environment and their hashes, schemas, row counts, and semantic samples were verified before the numbers in this card were accepted.

Limitations

  • This is a retrieval model, not a generative model. It does not produce legal advice.
  • The adaptation is strongest on the English, German, and Chinese legal distributions represented in the released data. Other languages and jurisdictions may be out of distribution even when supported by the multilingual base.
  • The model improves the aggregate legal benchmark while making small task-level tradeoffs against the already-strong base, as shown transparently in the results table.
  • Borda depends on the comparison field and can change when the leaderboard cache changes.

License and attribution

The model weights and associated model materials are released under the OpenMDW License Agreement, version 1.1, matching the NVIDIA base. This is different from the Apache-2.0 license of Qwen/Qwen3-Embedding-8B: the model weights in this repository are not Apache-2.0.

The model is derived from nvidia/Nemotron-3-Embed-8B-BF16, revision dd9d06b1852ef836d3dc2fbd2b71a34356912759, © 2026 NVIDIA CORPORATION & AFFILIATES. The repository retains the OpenMDW-1.1 text and NVIDIA's applicable copyright and origin notices. Hanno Labs / Clause Logic Inc.'s training data, software, and original contributions retain the separate licenses stated in their respective repositories; those licenses do not relicense the model weights.

Citation

@misc{dinghy-law-8b,
  title  = {dinghy-law-8b: an 8B multilingual legal text-embedding model},
  author = {Solka, Stephen},
  year   = {2026},
  note   = {Hanno Labs / Clause Logic Inc.},
  howpublished = {\url{https://huggingface.co/Hanno-Labs/dinghy-law-8b-v1}}
}

References

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Ministral3Model
Ревизия весов
8a2d25a

0 моделей