Transformers
GGUF
sentence-transformers
English
cross-encoder
reranker
Generated from Trainer
dataset_size:10000
loss:MSELoss
feature-extraction
Instructions to use mradermacher/123BERT-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/123BERT-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/123BERT-GGUF", dtype="auto") - sentence-transformers
How to use mradermacher/123BERT-GGUF with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("mradermacher/123BERT-GGUF") query = "Which planet is known as the Red Planet?" passages = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - llama-cpp-python
How to use mradermacher/123BERT-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/123BERT-GGUF", filename="123BERT.IQ4_XS.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use mradermacher/123BERT-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/123BERT-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/123BERT-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/123BERT-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/123BERT-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf mradermacher/123BERT-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/123BERT-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf mradermacher/123BERT-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/123BERT-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/123BERT-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/123BERT-GGUF with Ollama:
ollama run hf.co/mradermacher/123BERT-GGUF:Q4_K_M
- Unsloth Studio new
How to use mradermacher/123BERT-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/123BERT-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for mradermacher/123BERT-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/123BERT-GGUF to start chatting
- Docker Model Runner
How to use mradermacher/123BERT-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/123BERT-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/123BERT-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/123BERT-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.123BERT-GGUF-Q4_K_M
List all available models
lemonade list
auto-patch README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<!-- ### quantize_version: 2 -->
|
| 2 |
<!-- ### output_tensor_quantised: 1 -->
|
| 3 |
<!-- ### convert_type: hf -->
|
|
@@ -7,3 +27,54 @@
|
|
| 7 |
<!-- ### quants_skip: -->
|
| 8 |
<!-- ### skip_mmproj: -->
|
| 9 |
static quants of https://huggingface.co/kselight/123BERT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: kselight/123BERT
|
| 3 |
+
datasets:
|
| 4 |
+
- sentence-transformers/msmarco
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
library_name: transformers
|
| 8 |
+
mradermacher:
|
| 9 |
+
readme_rev: 1
|
| 10 |
+
quantized_by: mradermacher
|
| 11 |
+
tags:
|
| 12 |
+
- sentence-transformers
|
| 13 |
+
- cross-encoder
|
| 14 |
+
- reranker
|
| 15 |
+
- generated_from_trainer
|
| 16 |
+
- dataset_size:10000
|
| 17 |
+
- loss:MSELoss
|
| 18 |
+
---
|
| 19 |
+
## About
|
| 20 |
+
|
| 21 |
<!-- ### quantize_version: 2 -->
|
| 22 |
<!-- ### output_tensor_quantised: 1 -->
|
| 23 |
<!-- ### convert_type: hf -->
|
|
|
|
| 27 |
<!-- ### quants_skip: -->
|
| 28 |
<!-- ### skip_mmproj: -->
|
| 29 |
static quants of https://huggingface.co/kselight/123BERT
|
| 30 |
+
|
| 31 |
+
<!-- provided-files -->
|
| 32 |
+
|
| 33 |
+
***For a convenient overview and download list, visit our [model page for this model](https://hf.tst.eu/model#123BERT-GGUF).***
|
| 34 |
+
|
| 35 |
+
weighted/imatrix quants seem not to be available (by me) at this time. If they do not show up a week or so after the static ones, I have probably not planned for them. Feel free to request them by opening a Community Discussion.
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
If you are unsure how to use GGUF files, refer to one of [TheBloke's
|
| 39 |
+
READMEs](https://huggingface.co/TheBloke/KafkaLM-70B-German-V0.1-GGUF) for
|
| 40 |
+
more details, including on how to concatenate multi-part files.
|
| 41 |
+
|
| 42 |
+
## Provided Quants
|
| 43 |
+
|
| 44 |
+
(sorted by size, not necessarily quality. IQ-quants are often preferable over similar sized non-IQ quants)
|
| 45 |
+
|
| 46 |
+
| Link | Type | Size/GB | Notes |
|
| 47 |
+
|:-----|:-----|--------:|:------|
|
| 48 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q2_K.gguf) | Q2_K | 0.1 | |
|
| 49 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q3_K_S.gguf) | Q3_K_S | 0.1 | |
|
| 50 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q3_K_M.gguf) | Q3_K_M | 0.1 | lower quality |
|
| 51 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.IQ4_XS.gguf) | IQ4_XS | 0.1 | |
|
| 52 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q3_K_L.gguf) | Q3_K_L | 0.1 | |
|
| 53 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q4_K_S.gguf) | Q4_K_S | 0.1 | fast, recommended |
|
| 54 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q4_K_M.gguf) | Q4_K_M | 0.1 | fast, recommended |
|
| 55 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q5_K_S.gguf) | Q5_K_S | 0.1 | |
|
| 56 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q5_K_M.gguf) | Q5_K_M | 0.1 | |
|
| 57 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q6_K.gguf) | Q6_K | 0.1 | very good quality |
|
| 58 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.Q8_0.gguf) | Q8_0 | 0.1 | fast, best quality |
|
| 59 |
+
| [GGUF](https://huggingface.co/mradermacher/123BERT-GGUF/resolve/main/123BERT.f16.gguf) | f16 | 0.1 | 16 bpw, overkill |
|
| 60 |
+
|
| 61 |
+
Here is a handy graph by ikawrakow comparing some lower-quality quant
|
| 62 |
+
types (lower is better):
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+
And here are Artefact2's thoughts on the matter:
|
| 67 |
+
https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9
|
| 68 |
+
|
| 69 |
+
## FAQ / Model Request
|
| 70 |
+
|
| 71 |
+
See https://huggingface.co/mradermacher/model_requests for some answers to
|
| 72 |
+
questions you might have and/or if you want some other model quantized.
|
| 73 |
+
|
| 74 |
+
## Thanks
|
| 75 |
+
|
| 76 |
+
I thank my company, [nethype GmbH](https://www.nethype.de/), for letting
|
| 77 |
+
me use its servers and providing upgrades to my workstation to enable
|
| 78 |
+
this work in my free time.
|
| 79 |
+
|
| 80 |
+
<!-- end -->
|