Zero-Shot Classification
Transformers
Safetensors
matilda_jev
feature-extraction
matilda
jev
decision-model
classification
maincode
custom_code
Instructions to use Maincode/matilda-jev-v1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maincode/matilda-jev-v1.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="Maincode/matilda-jev-v1.5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Maincode/matilda-jev-v1.5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
runtime: use the public base model id; drop cluster paths
Browse files
runtime/maincode_jev_serve/engine.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
Optional: needs the `decision-index` package installed alongside. Same scoring as the server.
|
| 4 |
Example: python -m decision_index run --engine maincode_jev_serve.engine:MaincodeJevEngine \
|
| 5 |
-
--option checkpoint=/
|
| 6 |
"""
|
| 7 |
|
| 8 |
import hashlib
|
|
|
|
| 2 |
|
| 3 |
Optional: needs the `decision-index` package installed alongside. Same scoring as the server.
|
| 4 |
Example: python -m decision_index run --engine maincode_jev_serve.engine:MaincodeJevEngine \
|
| 5 |
+
--option checkpoint=./matilda-jev-v1.5 --rows sample.jsonl.gz --out runs/x
|
| 6 |
"""
|
| 7 |
|
| 8 |
import hashlib
|
runtime/maincode_jev_serve/model.py
CHANGED
|
@@ -23,7 +23,7 @@ from transformers.models.qwen3_vl.processing_qwen3_vl import Qwen3VLProcessor
|
|
| 23 |
from maincode_jev_serve.types import Answer, Content, DecisionInput, ImageInput, JSONValue, Question
|
| 24 |
|
| 25 |
# Weights are always read from a local, read-only snapshot; nothing is fetched or cached.
|
| 26 |
-
BASE_MODEL = os.environ.get("
|
| 27 |
MAX_OPTIONS = 255
|
| 28 |
|
| 29 |
|
|
|
|
| 23 |
from maincode_jev_serve.types import Answer, Content, DecisionInput, ImageInput, JSONValue, Question
|
| 24 |
|
| 25 |
# Weights are always read from a local, read-only snapshot; nothing is fetched or cached.
|
| 26 |
+
BASE_MODEL = os.environ.get("MJ_BASE_MODEL", "Qwen/Qwen3.8-27B")
|
| 27 |
MAX_OPTIONS = 255
|
| 28 |
|
| 29 |
|