Use d1-3b's code: D1Model in modeling_d1.py

#1

The code of LiquidAI/d1-3b, so the RC loads as D1Model instead of the older LfmJevModel name.

  • modeling_lfm_jev.py removed, modeling_d1.py added; config.json's auto_map points to it
  • prompt.py and runner.py: training-only helpers removed (row_to_question, cardinality, option_labels, gold_code, SYSTEM, _logz); every public call still runs under torch.inference_mode()
  • Weights, tokenizer, processor, card, LICENSE and assets unchanged

Checked with trust_remote_code on the same weights: three questions on a text, one question, a JSON state, an image, an image with text, and a batch of three give the same 44 probabilities as the current code (max difference 0.0).

EdoardoMosca changed pull request status to merged

Sign up or log in to comment