Skip to content

arch and quantization fields blank for deepseek_v4 models despite valid config.json values #358

Description

@True2456

Summary

For a local deepseek_v4 model, the model listing (both /api/v0/models and the GUI's model info) shows blank/missing arch and quantization fields, even though config.json has valid, well-formed values for both ("architectures": ["DeepseekV4ForCausalLM"], and a "quantization" dict in the same base+per-path-override shape used by other working listings, e.g. mlx-community/DeepSeek-V4-Flash-2bit-DQ).

I don't have a confirmed root cause to report — I traced this as far as ~/.lmstudio/.internal/model-index-cache.json, where the cached entry for the model has "metadata": {"configJson": {}} (completely empty, not partially populated), while an otherwise-comparable local model of a different architecture shows a fully populated configJson with the expected fields. The directory scan itself completes cleanly (no entries in the cache's errors array, correct mtime), so this isn't a parse exception — the classifier appears to produce nothing for this field, specifically for this architecture, for a reason I can't pin down from outside the (presumably frontend) code that builds this.

Ruled out while investigating (in case useful): not caused by a missing chat_template.jinja (added one, matching the convention used by other listings for the same architecture family, no change), not caused by the shape of the quantization field (verified byte-for-byte structurally comparable to a listing that displays correctly).

Repro

  1. Load or index a local MLX checkpoint with model_type: deepseek_v4 (config.json has valid top-level architectures and quantization fields).
  2. Check /api/v0/models or the GUI's model card.
  3. arch and quantization are absent/blank, unlike other locally-indexed architectures (e.g. a step3p7 model in the same models folder shows both correctly).

Environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions