Text Classification
Transformers
Safetensors
English
qwen3
text-generation
qwen
decision-model
finance
wealth-management
sec-filings
news
calibration
lora
jev
text-embeddings-inference
Instructions to use ternary/Arbiter-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ternary/Arbiter-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ternary/Arbiter-8B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ternary/Arbiter-8B") model = AutoModelForCausalLM.from_pretrained("ternary/Arbiter-8B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Rename to Arbiter-8B; state the Qwen3-8B base clearly
Browse files- README.md +11 -6
- arbiter.py +2 -2
README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen3-8B
|
|
|
|
| 4 |
library_name: transformers
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
pipeline_tag: text-classification
|
| 8 |
tags:
|
|
|
|
|
|
|
| 9 |
- decision-model
|
| 10 |
- finance
|
| 11 |
- wealth-management
|
|
@@ -16,17 +19,19 @@ tags:
|
|
| 16 |
- jev
|
| 17 |
---
|
| 18 |
|
| 19 |
-
# Arbiter
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Model details
|
| 24 |
|
| 25 |
-
- **Model type:** decision model (single-pass scoring of a fixed set of options), built on
|
| 26 |
- **Base model:** [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B), fine-tuned with LoRA (rank 32) and a decision head
|
| 27 |
- **Language:** English
|
| 28 |
- **Domain:** financial news and SEC Form 10-K filings, for wealth and asset management
|
| 29 |
-
- **License:** Apache-2.0
|
| 30 |
- **Precision:** fp16 (the fine-tuning is merged into the weights)
|
| 31 |
- **Method:** follows "Releasing the Inner Jev" (Geuter et al., 2026)
|
| 32 |
|
|
@@ -45,8 +50,8 @@ The full model was built by merging the LoRA into the dequantized 4-bit base wei
|
|
| 45 |
|
| 46 |
```bash
|
| 47 |
pip install torch transformers accelerate safetensors huggingface_hub # + peft bitsandbytes for the 4-bit adapter
|
| 48 |
-
hf download ternary/
|
| 49 |
-
cd
|
| 50 |
```
|
| 51 |
|
| 52 |
```python
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen3-8B
|
| 4 |
+
base_model_relation: finetune
|
| 5 |
library_name: transformers
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
pipeline_tag: text-classification
|
| 9 |
tags:
|
| 10 |
+
- qwen3
|
| 11 |
+
- qwen
|
| 12 |
- decision-model
|
| 13 |
- finance
|
| 14 |
- wealth-management
|
|
|
|
| 19 |
- jev
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# Arbiter-8B
|
| 23 |
|
| 24 |
+
**A fine-tune of [Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B).** Arbiter-8B is built on Alibaba's Qwen3-8B and keeps its architecture (`Qwen3ForCausalLM`), tokenizer, chat template and Apache-2.0 license.
|
| 25 |
+
|
| 26 |
+
Arbiter-8B is a Jev-inspired local decision model for wealth and asset management. It reads verbatim news articles and SEC Form 10-K passages and answers typed questions about a named company, such as event type, implied outlook, how settled an event is, risk category, or filing flags. It returns a **calibrated probability for every option** in a single forward pass, with no generated text.
|
| 27 |
|
| 28 |
## Model details
|
| 29 |
|
| 30 |
+
- **Model type:** decision model (single-pass scoring of a fixed set of options), built on the Qwen3 causal language model (`Qwen3ForCausalLM`, 8B parameters)
|
| 31 |
- **Base model:** [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B), fine-tuned with LoRA (rank 32) and a decision head
|
| 32 |
- **Language:** English
|
| 33 |
- **Domain:** financial news and SEC Form 10-K filings, for wealth and asset management
|
| 34 |
+
- **License:** Apache-2.0, the same as Qwen3-8B
|
| 35 |
- **Precision:** fp16 (the fine-tuning is merged into the weights)
|
| 36 |
- **Method:** follows "Releasing the Inner Jev" (Geuter et al., 2026)
|
| 37 |
|
|
|
|
| 50 |
|
| 51 |
```bash
|
| 52 |
pip install torch transformers accelerate safetensors huggingface_hub # + peft bitsandbytes for the 4-bit adapter
|
| 53 |
+
hf download ternary/Arbiter-8B --local-dir Arbiter-8B
|
| 54 |
+
cd Arbiter-8B
|
| 55 |
```
|
| 56 |
|
| 57 |
```python
|
arbiter.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
from arbiter import Arbiter
|
| 4 |
from questions import OUTLOOK
|
| 5 |
|
| 6 |
-
arbiter = Arbiter.from_pretrained("ternary/
|
| 7 |
answer = arbiter.decide(state="...article or 10-K passage...", question=OUTLOOK, focus="Meta Platforms")
|
| 8 |
print(answer["choice"], answer["probabilities"])
|
| 9 |
|
|
@@ -29,7 +29,7 @@ class Arbiter:
|
|
| 29 |
self.fallback_counts = counter
|
| 30 |
|
| 31 |
@classmethod
|
| 32 |
-
def from_pretrained(cls, path_or_repo: str = "ternary/
|
| 33 |
quantization: str | None = None, max_memory: str | None = None) -> "Arbiter":
|
| 34 |
"""Load from a local folder or a Hugging Face repo id.
|
| 35 |
Default: the full model (LoRA merged into the weights, fp16/bf16, no base download).
|
|
|
|
| 3 |
from arbiter import Arbiter
|
| 4 |
from questions import OUTLOOK
|
| 5 |
|
| 6 |
+
arbiter = Arbiter.from_pretrained("ternary/Arbiter-8B")
|
| 7 |
answer = arbiter.decide(state="...article or 10-K passage...", question=OUTLOOK, focus="Meta Platforms")
|
| 8 |
print(answer["choice"], answer["probabilities"])
|
| 9 |
|
|
|
|
| 29 |
self.fallback_counts = counter
|
| 30 |
|
| 31 |
@classmethod
|
| 32 |
+
def from_pretrained(cls, path_or_repo: str = "ternary/Arbiter-8B", adapter: bool = False,
|
| 33 |
quantization: str | None = None, max_memory: str | None = None) -> "Arbiter":
|
| 34 |
"""Load from a local folder or a Hugging Face repo id.
|
| 35 |
Default: the full model (LoRA merged into the weights, fp16/bf16, no base download).
|