Remove the unused Transformers shim

#1

Remove the unused Transformers model.py shim and its AutoModelForSequenceClassification entry in config.json → auto_map. Native vLLM 0.34.0 resolves Mistral3ForSequenceClassification without executing this custom code.

Keep the safetensors index and the complete Sentence Transformers bundle unchanged. vLLM consumes part of that bundle for its MEAN pooling, disabled activation, and 32,768-token default context limit. Preserving the bundle together makes the checkpoint layout easier to understand than selectively deleting its files.

The final diff contains only:

  • Delete model.py (1,641 bytes).
  • Remove its now-unused auto_map entry from config.json.

All weights, Sentence Transformers files, tokenizer/processor files, model architecture, and safetensors index match the original checkpoint.

Validation:

  • Traced vLLM 0.34.0 native model resolution and classification loading with trust_remote_code=False.
  • An earlier, more aggressive cleanup candidate was compared with the original checkpoint on NVIDIA GB10 using the official vLLM 0.34.0 ARM container. Both loaded the native FlashInferCutlassNvFp4LinearKernel and produced exactly identical raw scores for four text-only, image-only, and mixed inputs (maximum absolute difference 0.0).
  • This final revision restores all Sentence Transformers files and the index from the original checkpoint. It has not had a separate GPU rerun.
  • git diff --check passes; the final diff is limited to the shim and its configuration reference.

Relevant implementation: vLLM native model resolution, classification adapter, and pooling metadata readers.

oliverholworthy changed pull request title from Remove redundant artifacts from the vLLM checkpoint to Remove the unused Transformers shim
oliverholworthy changed pull request status to open
oliverholworthy changed pull request status to merged

Sign up or log in to comment