sergeyzh / rubert-mini-uncased-GGUF

huggingface.co
Total runs: 46
24-hour runs: 0
7-day runs: 0
30-day runs: 22
Model's Last Updated: March 25 2025
sentence-similarity

Introduction of rubert-mini-uncased-GGUF

Model Details of rubert-mini-uncased-GGUF

rubert-mini-uncased-GGUF

Оригинальная модель: rubert-mini-uncased

Для запуска модели в качестве сервера необходимо использовать llama.cpp:

llama-server -m rubert-mini-uncased-q8_0.gguf -c 512 -ngl 99 --embedding --port 8080

Возможно использование с LM Studio.

Использование модели после запуска llama-server:
import numpy as np
import requests
import json

def embeding(text):
    url = 'http://127.0.0.1:8080/v1/embeddings'  
    headers = {"Content-Type": "application/json", "Authorization": "no-key"} 
    data={"input": text,
          "model": "rubert-mini-uncased",
          "encoding_format": "float"}
    r = requests.post(url, headers=headers, data=json.dumps(data))
    emb = np.array([np.array(s['embedding']) for s in r.json()['data']])
    return emb

inputs = [
    # 
    "paraphrase: В Ярославской области разрешили работу бань, но без посетителей",
    "categorize_entailment: Женщину доставили в больницу, за ее жизнь сейчас борются врачи.",
    "search_query: Сколько программистов нужно, чтобы вкрутить лампочку?",
    # 
    "paraphrase: Ярославским баням разрешили работать без посетителей",
    "categorize_entailment: Женщину спасают врачи.",
    "search_document: Чтобы вкрутить лампочку, требуется три программиста: один напишет программу извлечения лампочки, другой — вкручивания лампочки, а третий проведет тестирование."
]

embeddings = embeding(inputs)
sim_scores = embeddings[:3] @ embeddings[3:].T
print(sim_scores.diagonal().tolist())

# [0.9365279201944358, 0.8030448289720129, 0.6826768729478850] - rubert-mini-uncased-f32
# [0.9365603574226906, 0.8029491439999603, 0.6826115652313832] - rubert-mini-uncased-f16
# [0.9362014453563489, 0.8019812246234975, 0.6823210638303931] - rubert-mini-uncased-q8_0

# [0.9366128444671631, 0.8030662536621094, 0.6826460957527161] - rubert-mini-uncased (torch)
# [0.9360030293464661, 0.8591322302818298, 0.7285830378532410] - FRIDA

Runs of sergeyzh rubert-mini-uncased-GGUF on huggingface.co

46
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
22
30-day runs

More Information About rubert-mini-uncased-GGUF huggingface.co Model

More rubert-mini-uncased-GGUF license Visit here:

https://choosealicense.com/licenses/mit

rubert-mini-uncased-GGUF huggingface.co

rubert-mini-uncased-GGUF huggingface.co is an AI model on huggingface.co that provides rubert-mini-uncased-GGUF's model effect (), which can be used instantly with this sergeyzh rubert-mini-uncased-GGUF model. huggingface.co supports a free trial of the rubert-mini-uncased-GGUF model, and also provides paid use of the rubert-mini-uncased-GGUF. Support call rubert-mini-uncased-GGUF model through api, including Node.js, Python, http.

rubert-mini-uncased-GGUF huggingface.co Url

https://huggingface.co/sergeyzh/rubert-mini-uncased-GGUF

sergeyzh rubert-mini-uncased-GGUF online free

rubert-mini-uncased-GGUF huggingface.co is an online trial and call api platform, which integrates rubert-mini-uncased-GGUF's modeling effects, including api services, and provides a free online trial of rubert-mini-uncased-GGUF, you can try rubert-mini-uncased-GGUF online for free by clicking the link below.

sergeyzh rubert-mini-uncased-GGUF online free url in huggingface.co:

https://huggingface.co/sergeyzh/rubert-mini-uncased-GGUF

rubert-mini-uncased-GGUF install

rubert-mini-uncased-GGUF is an open source model from GitHub that offers a free installation service, and any user can find rubert-mini-uncased-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of rubert-mini-uncased-GGUF install, users can directly use rubert-mini-uncased-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

rubert-mini-uncased-GGUF install url in huggingface.co:

https://huggingface.co/sergeyzh/rubert-mini-uncased-GGUF

Url of rubert-mini-uncased-GGUF

rubert-mini-uncased-GGUF huggingface.co Url

Provider of rubert-mini-uncased-GGUF huggingface.co

sergeyzh
ORGANIZATIONS

Other API from sergeyzh

huggingface.co

Total runs: 13.6K
Run Growth: 168
Growth Rate: 1.24%
Updated:March 10 2025