Text Classification
Transformers
ONNX
Safetensors
Japanese
English
Chinese
GLiClass
gliclass
choice-classification
experimental
Instructions to use sugarknight/erabi-practical-v1-experimental with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sugarknight/erabi-practical-v1-experimental with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sugarknight/erabi-practical-v1-experimental")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sugarknight/erabi-practical-v1-experimental", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update experimental weights with private Exam-QA pilot
Browse files- README.md +17 -3
- model.safetensors +1 -1
- onnx/fp16/model.onnx +1 -1
- onnx/fp32/model.onnx +1 -1
README.md
CHANGED
|
@@ -20,8 +20,11 @@ This is an **experimental**, uncalibrated choice-ranking model. It is not an off
|
|
| 20 |
## Provenance
|
| 21 |
|
| 22 |
- Base: [knowledgator/gliclass-instruct-large-v1.0](https://huggingface.co/knowledgator/gliclass-instruct-large-v1.0), Apache-2.0, 438,672,897 parameters.
|
| 23 |
-
-
|
| 24 |
-
-
|
|
|
|
|
|
|
|
|
|
| 25 |
- Data and training code: [GitHub repository](https://github.com/sugarkwork/erabi/tree/main/data/practical_v1) and [training script](https://github.com/sugarkwork/erabi/blob/main/scripts/train_practical_v1.py). Labels remain **unreviewed synthetic teacher agreement**, not human gold.
|
| 26 |
|
| 27 |
## Exploratory evaluation
|
|
@@ -34,6 +37,17 @@ This is an **experimental**, uncalibrated choice-ranking model. It is not an off
|
|
| 34 |
|
| 35 |
The Practical V1 eval set was used once after selecting by dev and existing-bridge results. Reading inference **regressed** from 54/71 to 50/71 despite aggregate gains. Candidate-order consistency on the existing bridge was 97.50%. These figures are not a benchmark of real-world correctness or Jev parity, because Practical V1 questions and labels come from the same teacher family. There is no independent human-verified final test, temperature calibration, or formal release approval for this checkpoint.
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
## Use
|
| 38 |
|
| 39 |
```bash
|
|
@@ -43,7 +57,7 @@ erabi predict --request request.json
|
|
| 43 |
|
| 44 |
The repository contains three inference formats from the same checkpoint: `model.safetensors` (PyTorch), `onnx/fp32/model.onnx` (CPU), and `onnx/fp16/model.onnx` (NVIDIA GPU). ERABI 0.1.2 or newer is required for `--model-format`; 0.1.1 uses PyTorch safetensors. Upgrade with `python -m pip install --upgrade erabi`. `--model-format auto` downloads only the selected variant: FP32 ONNX for CPU with ONNX Runtime, FP16 ONNX for CUDA with CUDA Execution Provider, and otherwise PyTorch safetensors. Install the compatible `onnxruntime` (CPU) or `onnxruntime-gpu` (GPU) separately; do not install both in one environment. You can also select `--model-format pytorch`, `onnx-fp32`, or `onnx-fp16` explicitly.
|
| 45 |
|
| 46 |
-
The ONNX variants preserved the top-ranked choice on
|
| 47 |
|
| 48 |
## License and limitations
|
| 49 |
|
|
|
|
| 20 |
## Provenance
|
| 21 |
|
| 22 |
- Base: [knowledgator/gliclass-instruct-large-v1.0](https://huggingface.co/knowledgator/gliclass-instruct-large-v1.0), Apache-2.0, 438,672,897 parameters.
|
| 23 |
+
- First fine-tune: one epoch on 2,414 Practical V1 training records, peak learning rate 2.5e-6, 151 optimizer steps, microbatch 2, gradient accumulation 8, fp16 AMP.
|
| 24 |
+
- Second, exploratory fine-tune (2026-09-23): one selected epoch on 175 privately held Exam-QA transformations mixed with 175 deterministic Practical V1 replay records, learning rate 1.5e-6, 22 optimizer steps, maximum training length 1,024 tokens.
|
| 25 |
+
- Practical V1 data consists of original synthetic Japanese, English, and Simplified Chinese examples in six task families, generated and answer-blind rejudged with DeepSeek V4.1 Flash via OrcaRouter.
|
| 26 |
+
- The Exam-QA source was filtered and transformed with the same DeepSeek model. Symbolic answer labels were mapped to source choice text. Ambiguous, multi-answer, figure-dependent, partial-credit, incomplete, or over-1,024-token items were skipped. Generated distractors were train-only; validation used source-provided choices only.
|
| 27 |
+
- Exam-QA source records, transformed JSONL, and API responses are **not published** pending human review and source-by-source redistribution review. They are not claimed as human gold.
|
| 28 |
- Data and training code: [GitHub repository](https://github.com/sugarkwork/erabi/tree/main/data/practical_v1) and [training script](https://github.com/sugarkwork/erabi/blob/main/scripts/train_practical_v1.py). Labels remain **unreviewed synthetic teacher agreement**, not human gold.
|
| 29 |
|
| 30 |
## Exploratory evaluation
|
|
|
|
| 37 |
|
| 38 |
The Practical V1 eval set was used once after selecting by dev and existing-bridge results. Reading inference **regressed** from 54/71 to 50/71 despite aggregate gains. Candidate-order consistency on the existing bridge was 97.50%. These figures are not a benchmark of real-world correctness or Jev parity, because Practical V1 questions and labels come from the same teacher family. There is no independent human-verified final test, temperature calibration, or formal release approval for this checkpoint.
|
| 39 |
|
| 40 |
+
The current weights add the private Exam-QA experiment to that checkpoint:
|
| 41 |
+
|
| 42 |
+
| Set | Before Exam-QA fine-tune | Current weights |
|
| 43 |
+
|---|---:|---:|
|
| 44 |
+
| Private Exam-QA validation, source choices only, 37 cases | 21.62% (8/37) | **24.32% (9/37)** |
|
| 45 |
+
| Practical V1 dev, 399 cases | 77.19% (308/399) | **78.20% (312/399)** |
|
| 46 |
+
| Existing RC3 Bridge, 480 cases | 88.54% (425/480) | **88.54% (425/480)** |
|
| 47 |
+
| Practical V1 teacher-agreed eval, 386 cases | 76.17% (294/386) | 75.65% (292/386) |
|
| 48 |
+
|
| 49 |
+
The Exam-QA gain is only **one additional correct item**, so it is weak exploratory evidence, not a claim of exam competence. The validation set has just nine source groups and has not been independently human-audited. The current safetensors SHA256 is `1ae38ef6c1103f8c021b0d3a974f3b1aedc42d89832d11761e74b95664216251`.
|
| 50 |
+
|
| 51 |
## Use
|
| 52 |
|
| 53 |
```bash
|
|
|
|
| 57 |
|
| 58 |
The repository contains three inference formats from the same checkpoint: `model.safetensors` (PyTorch), `onnx/fp32/model.onnx` (CPU), and `onnx/fp16/model.onnx` (NVIDIA GPU). ERABI 0.1.2 or newer is required for `--model-format`; 0.1.1 uses PyTorch safetensors. Upgrade with `python -m pip install --upgrade erabi`. `--model-format auto` downloads only the selected variant: FP32 ONNX for CPU with ONNX Runtime, FP16 ONNX for CUDA with CUDA Execution Provider, and otherwise PyTorch safetensors. Install the compatible `onnxruntime` (CPU) or `onnxruntime-gpu` (GPU) separately; do not install both in one environment. You can also select `--model-format pytorch`, `onnx-fp32`, or `onnx-fp16` explicitly.
|
| 59 |
|
| 60 |
+
The newly exported ONNX FP32 and FP16 variants preserved the PyTorch top-ranked choice on 37/37 private Exam-QA validation cases, up to 853 input tokens. Experimental INT8 variants changed predictions substantially and are not distributed. The first invocation downloads the selected model; later invocations use the Hugging Face cache. Input and output JSON contracts and runtime recommendations are documented in the [ERABI README](https://github.com/sugarkwork/erabi#モデル形式の自動選択とおすすめ). The public ERABI runtime still defaults to a 512-token fail-closed contract. The weights were trained and experimentally checked at up to 1,024 tokens, but using that length requires changing both the runtime limit and preprocessing length while checking the untruncated input. Candidate probabilities are not calibrated confidence guarantees.
|
| 61 |
|
| 62 |
## License and limitations
|
| 63 |
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1754746792
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ae38ef6c1103f8c021b0d3a974f3b1aedc42d89832d11761e74b95664216251
|
| 3 |
size 1754746792
|
onnx/fp16/model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 879507317
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b67d0ec581bb86815d0cebffe24dcdac16b976fedc1ad391b51e9c3eacb60ff
|
| 3 |
size 879507317
|
onnx/fp32/model.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1756853324
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ce73286fc49cc472c7160ac23c4e6a90924f576bc4b075e3053d5245b889350
|
| 3 |
size 1756853324
|