Text Classification
Transformers
Safetensors
English
Ukrainian
qwen3_5
image-text-to-text
openjudgement
judgment
classification
structured-output
preview
custom-code
Instructions to use kitaniai/OpenJudgement-4B-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kitaniai/OpenJudgement-4B-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kitaniai/OpenJudgement-4B-Preview")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("kitaniai/OpenJudgement-4B-Preview") model = AutoModelForMultimodalLM.from_pretrained("kitaniai/OpenJudgement-4B-Preview", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 471 Bytes
eb2384f | 1 2 3 4 5 6 7 8 9 10 11 12 | """Call the local API using only Python's standard library."""
import json
import urllib.request
from pathlib import Path
body = (Path(__file__).parent/'request.json').read_bytes()
request = urllib.request.Request(
'http://127.0.0.1:8000/v1/judgments', data=body,
headers={'Content-Type': 'application/json'}, method='POST',
)
with urllib.request.urlopen(request, timeout=180) as response:
print(json.dumps(json.load(response), indent=2, ensure_ascii=False))
|