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
Download examples/client.py from kitaniai/OpenJudgement-4B-Preview: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/kitaniai/OpenJudgement-4B-Preview/resolve/main/examples/client.py
- Command line
-
hf download hf://kitaniai/OpenJudgement-4B-Preview/examples/client.py
-
curl -L -o client.py https://huggingface.co/kitaniai/OpenJudgement-4B-Preview/resolve/main/examples/client.py
471 Bytes
| """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)) | |