Skip to content

Cannot set kv cache quantization type when loading a model. #107

@12bitmisfit

Description

@12bitmisfit

If I set a config dict like:

config = {
  "contextLength": 131072,
  "offloadKVCacheToGpu": True,
  "llamaKCacheQuantizationType": "q8_0",
  "llamaVCacheQuantizationType": "q8_0",
  "flashAttention": True,
  "gpu": {
    "disabledGpus": [],
    "ratio": 1.0
  },
  "gpuStrictVramCap": True,

  "tryMmap": True
}

and pass the config like:

import lmstudio as lms

with lms.Client() as client:
    client.llm.model("model_key", config=config)

LM Studio will not set kv cache quantization types. It respects other changes like flashAttention and contextLength so I don't think I'm setting the config dict wrong.

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