Repository navigation
Add native Qwen3 classifier export and vLLM serving - #8
Merged
akanyaani merged 2 commits intoOct 27, 2026
Merged
Conversation
Preserve the trained code readout, prompt and calibration in a standard HF classifier layout. Add native vLLM serving, strict checkpoint validation, staged export publication, offline parity checks and an opt-in actual-engine test with reproducibility documentation.
|
We are running some tests to check the PR, we will update soon. |
Resolves conflicts with FrontiersMindAI#9 in the vLLM backend description and the --backend help: Qwen3.5 only for code readouts, which need a vLLM nightly; native Qwen3 classifier exports use vLLM's pooling runner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A trained Qwen3 code-readout checkpoint currently has to use DecisionFormer's Transformers server because the existing vLLM adapter accepts the bare Qwen3.5/3.8 decision layout. This adds an explicit export to
Qwen3ForSequenceClassificationand a matching vLLM pooling path.decisionformer export MODEL OUTPUT --format sequence-classificationcopies the merged backbone and independently trained answer matrix into standardmodel.*andscore.weighttensors. It preserves the tokenizer, prompt, code order, context limit and calibration metadata. The adapter requests raw classifier logits, slices to the active options, then applies the saved question-type temperature and existing response formatting.The first conversion scope is merged, unquantized, causal Qwen3 with one code readout and last-token pooling. Exports use float32 weights, which approximately doubles backbone storage relative to 16-bit checkpoints. Existing canonical checkpoints and the Qwen3.5 serving path are retained. Incomplete weight loads are refused, and failed exports are staged and cleaned before publication without overwriting an existing destination.
Validation:
git diff --checkpass.6.71e-8, probability difference2.15e-8, with no prompt or choice mismatches against the FP32 reference.The guide includes reproduction commands and the pinned CPU container setup.
examples/compare_classifier.pyprints reference/exported answers and exits nonzero on drift.DECISIONFORMER_RUN_VLLM=1enables the actual-engine test.These checks establish the tested CPU interoperability path. GPU execution, model accuracy and throughput improvements were not measured, and no acceleration claim is made.