]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
model-conversion : pass config to from_pretrained (#16963)
authorDaniel Bevenius <redacted>
Mon, 3 Nov 2025 17:01:59 +0000 (18:01 +0100)
committerGitHub <redacted>
Mon, 3 Nov 2025 17:01:59 +0000 (18:01 +0100)
commited8aa63320393512bdcfe4b05b5ae01ba91888e1
tree144c6d8f054ec00091014bbdc3e2099cf7d1a27d
parent48bd26501b08a3f0bff1249db47f313641f7bebb
model-conversion : pass config to from_pretrained (#16963)

This commit modifies the script `run-org-model.py` to ensure that the
model configuration is explicitly passed to the `from_pretrained` method
when loading the model. It also removes a duplicate configuration
loading which was a mistake.

The motivation for this change is that enables the config object to be
modified and then passed to the model loading function, which can be
useful when testing new models.
examples/model-conversion/scripts/causal/run-org-model.py