/ Модель

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

Лицензия
Apache 2.0
Библиотека
pytorch
Опубликована
13 окт 2026

mine-embed-v1

Сходство предложенийТекст → score3 профессии

Экспериментальная англоязычная модель MineAI Technology, которая строит векторы предложений для оценки семантического сходства коротких текстов.

100скачиваний за 30 дней6лайковвеса обновлены17 окт 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

mine-embed-v1 — экспериментальная модель эмбеддингов MineAI Technology, обученная с нуля. Это англоязычный encoder-only трансформер с 57,8 млн параметров: 10 слоёв, скрытый размер 512 и 8 голов внимания. Модель преобразует предложение в нормализованный вектор размерности 512; близость текстов оценивается по косинусному сходству. Используются GPT-2 BPE-токенизатор и собственная архитектура, для загрузки которой требуется model.py.

Модель предназначена для экспериментов и базовых сравнений на задаче семантического сходства коротких английских текстов, а также для изучения обучения компактных моделей эмбеддингов. Контрастивное дообучение проводилось преимущественно на AllNLI и Quora; на STS-B достигнута оценка Spearman 0,686. При этом в общих бенчмарках модель заметно уступает стандартным компактным энкодерам, а поиск, кластеризация и обнаружение дубликатов даются ей слабо. Обучение включало также этап MLM на смешанном, в значительной степени синтетическом корпусе.

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

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

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

Ограничения

Модель заметно уступает стандартным компактным эмбеддинг-моделям и плохо подходит для поиска, кластеризации и обнаружения дубликатов; обучалась преимущественно на коротких английских текстах. Для загрузки необходима собственная архитектура из model.py; README предупреждает, что модель не предназначена для коммерческого использования.

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

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

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

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

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

Открыть на Hugging Face

mine-embed-v1

Version 1: first experimental test release, private. This is MineAI Technology's first embedding model, trained from scratch. It is published to document an early experiment, not as a competitive or production-ready model. On a 28-task MTEB subset it scores well below standard small embedding models (see Evaluation).

mine-embed-v1 is a 57.8M-parameter English text embedding model. It maps a sentence to a 512-dimensional unit vector; cosine similarity between vectors measures how close two texts are in meaning. It uses a custom encoder architecture (not a standard transformers model) and the GPT-2 byte-pair tokenizer.

1. Quick start

The repository contains a custom model.py, so the model is loaded through its Embedder class, not AutoModel or SentenceTransformer.

import sys
from huggingface_hub import snapshot_download          # private repo: log in with an HF token first

folder = snapshot_download("MineAITechnology/mine-embed-v1")
sys.path.insert(0, folder)
from model import Embedder

e = Embedder(folder)                                    # loads config.json + model.safetensors, GPT-2 tokenizer
vecs = e.encode(["A man is playing a guitar.", "Someone strums an instrument.", "Stocks fell today."])
print(vecs.shape)                                       # torch.Size([3, 512]), already L2-normalised
print(vecs @ vecs.T)                                    # cosine similarities

Requirements: torch, transformers (only for the tokenizer), safetensors, huggingface_hub. Embedder.encode(texts, max_len=128, bs=64) truncates to 128 tokens by default. No query/passage prefixes are used.

2. Model summary

Parameters57,781,248
ArchitectureEncoder-only transformer: 10 layers, hidden 512, 8 heads, feed-forward 2048, pre-norm, GELU, learned position embeddings
Output512-dimensional, mean pooling over non-padding tokens + L2 normalisation
TokenizerGPT-2 BPE, vocabulary 50,258 (id 50256 = end-of-text/pad, id 50257 = mask)
Max positions1,024 (contrastive training used 128 tokens)
LanguageEnglish (GPT-2 BPE is weak on other languages)
Weightsmodel.safetensors, fp32, about 231 MB
InitialisationRandom: trained from scratch

3. Training

Two stages. The full data description is in the dataset card: MineAITechnology/mine-embed-v1 (dataset).

Stage 1: masked language modelling (MLM).

  • 15% dynamic masking (80% mask, 10% random token, 10% unchanged), sequence length 512, 128 sequences per step.
  • AdamW, peak learning rate 4e-4 with cosine decay to 1e-5, weight decay 0.01, fp16 on 2x Tesla T4.
  • 22,118 steps (5.0 hours), about 1.8 passes over a corpus of roughly 895M tokens.
  • The corpus is a mixture of code, multilingual text, math, security/alignment text and corporate-fact text. Large parts are synthetic or template-generated, so the amount of distinct natural text is far below the nominal token count, and general English prose is only a small share.

Stage 2: contrastive fine-tuning.

  • In-batch and hard-negative InfoNCE on 471,400 triplets, mostly AllNLI with Quora duplicate questions and a small amount of private domain-specific data, 128-token inputs.

4. Intended use

Suitable for experiments and baselines: sentence-similarity scoring on short English texts, studying small-scale embedding training, and as a reference point for later versions. It is not recommended for retrieval, clustering, or any production search system (see the limitations).

5. Evaluation

Protocol

MTEB English subset of 28 tasks: 9 STS, 4 classification, 3 clustering, 3 pair classification, 3 reranking and 6 retrieval tasks. Every model was run with the same settings: max length 128, batch size 64, fp32, one Kaggle T4, mteb 1.x. Scores are each task's main metric times 100. Competitors were loaded with their own prompts/prefixes. QuoraRetrieval is excluded from averages because this model was fine-tuned on Quora.

Overall results

ModelParams (M)DimAvg (28)STSClassif.ClusterPairRerankRetrieval
bge-base-en-v1.5109.576866.2578.5166.6939.6886.5667.7749.94
bge-small-en-v1.533.438464.3777.3264.8937.8884.9266.8446.35
gte-small33.438463.9576.6662.7239.1583.5566.2147.17
all-mpnet-base-v2109.576862.6675.1960.0639.4383.0468.8443.92
all-MiniLM-L12-v233.438461.6074.5659.7937.5682.4667.5841.99
e5-small-v233.438461.5875.3361.7433.1685.4361.9442.97
all-MiniLM-L6-v222.738461.1473.6759.2837.0882.3767.1242.04
GloVe average (baseline)120.030045.7755.4755.1121.3972.4848.7622.35
mine-embed-v157.851237.7859.6343.8411.1954.0640.764.64

mine-embed-v1 ranks last. It scores about 23 points below all-MiniLM-L6-v2 and 8 points below the GloVe baseline.

Taskmine-embed-v1all-MiniLM-L6-v2GloVe average
STS (avg)59.673.755.5
STSBenchmark68.682.061.5
STS1262.672.454.6
STS1360.680.669.2
STS1458.675.660.8
STS1573.685.472.3
STS1668.679.065.3
STS1717.328.815.1
SICK-R73.477.655.4
BIOSSES53.581.644.9
Classification (avg)43.859.355.1
Banking77Classification47.580.067.8
EmotionClassification24.640.837.6
TweetSentimentExtractionClassification44.354.049.0
ToxicConversationsClassification58.962.266.1
Clustering (avg)11.237.121.4
TwentyNewsgroupsClustering13.546.524.9
BiorxivClusteringS2S5.432.918.7
MedrxivClusteringS2S14.631.920.5
Pair classification (avg)54.182.472.5
SprintDuplicateQuestions49.894.687.0
TwitterSemEval201543.567.953.1
TwitterURLCorpus68.884.777.3
Reranking (avg)40.867.148.8
AskUbuntuDupQuestions45.663.549.6
StackOverflowDupQuestions31.450.834.1
SciDocsRR45.387.162.6
Retrieval (avg)4.642.022.3
SciFact8.162.429.6
NFCorpus2.231.513.9
FiQA20180.836.610.1
ArguAna10.648.836.3
SCIDOCS1.321.78.0
TRECCOVID4.851.336.2

QuoraRetrieval (not in the averages, trained-on data): 74.1.

What it does well and badly

  • Best area: sentence similarity. SICK-R 73.4 (within about 4 points of all-MiniLM-L6-v2), STS15 73.6, STSBenchmark 68.6, and it beats the GloVe baseline on 7 of 9 STS tasks. This matches its AllNLI-style training data.
  • Weak areas: retrieval (4.6), clustering (11.2) and duplicate-question detection (SprintDuplicateQuestions 49.8). The contrastive stage used a small, narrow dataset, so the embeddings separate fine differences between similar sentences but do not group texts by topic.

Training-time evaluation

  • STS-B test Spearman: 0.686 (the MLM-only model before contrastive tuning scored 0.357).
  • Held-out triplet accuracy (in-distribution, not a measure of general quality): AllNLI 0.977 (n=2,000), Quora 0.969 (n=1,589), overall 0.974 (n=3,606); MLM-only baseline: 0.585, 0.844 and 0.700. Three tiny extra domains (corporate, math/code, security: 6, 9 and 2 examples) are too small to report.

Inference-time variants (12-task subset)

Changing the maximum length, shrinking the embedding with truncation or PCA, centering, or removing top principal components moved the average by between -2.0 and +0.15 points. None closes the gap to the standard models. Details are in the benchmark report.

Efficiency (one Tesla T4, 128-token inputs, batch 64, fp32)

389 sentences/s on GPU, 18.8 sentences/s on 2 CPU threads, peak GPU memory 456 MB including weights.

Embedding geometry check

The average cosine similarity between random, mostly unrelated sentences is 0.047 (all-MiniLM-L6-v2: 0.059), so the embeddings are not collapsed into a narrow cone.

6. Limitations

  • Far below standard small embedding models on general benchmarks (see the table).
  • Retrieval, clustering and duplicate detection are poor. Do not use it for search or topic grouping.
  • Narrow training data. Contrastive data is dominated by AllNLI and Quora; the MLM corpus is code/math/security and synthetic-heavy with little natural English prose.
  • English only, and the GPT-2 tokenizer is inefficient for non-English text.
  • Custom architecture: needs model.py; it does not load with AutoModel or SentenceTransformer.
  • Short inputs: contrastive training used 128 tokens.
  • License: mixed sources, see below. Not cleared for commercial use.

7. License and data terms

The weights are derived from data under several different licenses and terms, so the model is released under license: other and kept private until a license review is finished. Not legal advice.

  • AllNLI = SNLI (CC BY-SA 4.0) + MultiNLI (per-genre terms). Share-alike obligations may apply.
  • Quora Question Pairs: governed by Quora's own terms; commercial use unclear.
  • MLM corpus (code, web, multilingual, math, security): each source has its own license; code in particular is often copyleft or attribution-required.
  • Private domain-specific and synthetic data: owned by the author.

8. Files in this repository

FilePurpose
model.safetensorsWeights (231 MB)
config.jsonArchitecture settings (encoder_config)
model.pyModel definition and the Embedder class
eval_report.jsonTraining-time evaluation (triplet accuracy, STS-B)
README.mdThis card

9. Citation

@misc{mine_embed_v1_2026,
  title        = {mine-embed-v1: a 57.8M-parameter English text embedding model trained from scratch},
  author       = {{MineAI Technology}},
  year         = {2026},
  howpublished = {Hugging Face model card}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Ревизия весов
670c94d

0 моделей