Downloads · 30 days
18
45% of all-time downloads
lokinfey/Qwen3_5_0.8B_jev
Qwen3_5_0.8B_jev is a text classification model from lokinfey. Use it when you need a label for a piece of text. It is set up for onnxruntime. The card lists the license as apache-2.0.
This repository contains a CUDA FP16 ONNX Runtime GenAI export of Qwen/Qwen3.5-0.8B, fine-tuned with a LoRA adapter using Microsoft Olive on n4ze3m/typed-decisions-synth. The adapter is merged into the exported ONNX w…
Downloads · 30 days
18
45% of all-time downloads
All-time downloads
40
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.data1.6 GB · 99%
From the Hugging Face model README
This repository contains a CUDA FP16 ONNX Runtime GenAI export of Qwen/Qwen3.5-0.8B, fine-tuned with a LoRA adapter using Microsoft Olive on n4ze3m/typed-decisions-synth. The adapter is merged into the exported ONNX weights.
The model receives a state plus a typed noul, choice, or score question. It predicts an option
letter (A, B, C, ...) at the first generated position. Applications should select the candidate
letter logits and normalize only over the valid options instead of parsing unrestricted generated text.
The model was exported as FP16 for the CUDA execution provider with:
onnxruntime-genai-cuda==0.14.0onnxruntime-gpu==1.26.02fbeaf4316930d62bf7b85658ccc6e752d4b6f4cThese package versions target CUDA 12 environments. Load the directory containing genai_config.json.
import numpy as np
import onnxruntime_genai as og
from huggingface_hub import snapshot_download
model_dir = snapshot_download("lokinfey/Qwen3_5_0.8B_jev")
model = og.Model(model_dir)
tokenizer = og.Tokenizer(model)
prompt = """<|im_start|>user
State (data to evaluate):
Help! My payouts have failed for 3 days. I need the money today.
Question:
Does this message convey urgency?
Options:
A: false — No
B: true — Yes
Return only the option letter.<|im_end|>
<|im_start|>assistant
<think>
</think>
"""
input_ids = np.asarray(tokenizer.encode(prompt), dtype=np.int32)
params = og.GeneratorParams(model)
params.set_search_options(max_length=len(input_ids) + 1, do_sample=False)
generator = og.Generator(model, params)
generator.append_tokens(input_ids)
raw_logits = np.asarray(generator.get_logits(), dtype=np.float32)
logits = raw_logits.reshape(-1, raw_logits.shape[-1])[-1]
letter_ids = [int(np.asarray(tokenizer.encode(letter)).reshape(-1)[0]) for letter in "AB"]
candidate_logits = logits[letter_ids]
probabilities = np.exp(candidate_logits - candidate_logits.max())
probabilities /= probabilities.sum()
print({"false": float(probabilities[0]), "true": float(probabilities[1])})
Qwen/Qwen3.5-0.8Bn4ze3m/typed-decisions-synth, preserving its case-level train/validation splitq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_projThis Olive workflow uses standard full-sequence causal language-model SFT on the gold option letter. It does
not reproduce Hmm's candidate-only hard/teacher soft-label objective, so its probability calibration and
benchmark results should not be assumed to match n4ze3m/Qwen3.5-4B-Hmm.
No benchmark result is published in this card. Evaluate accuracy, negative log-likelihood, and calibration on
your own held-out data by reading the first-token candidate logits. Olive's eval_loss is a full-sequence
language-model loss and is not directly comparable to candidate-letter NLL or accuracy.
Prompt structure and typed-decision evaluation follow the public Hmm project. Model conversion and deployment use Microsoft Olive and ONNX Runtime GenAI.