Repository navigation
model-maker 0.3.1
model-maker 0.3.1: safer model folders, a question judge that no longer grows, and the dependency warnings
explained.
Nothing new to install: no new model, no new package and no new download. The same prompt with the same seeds makes
the same object as with 0.3.0: nothing is made differently.
Fixed:
- The question judge kept earlier prompts in memory, growing to about 17 GiB over a long batch (17.2
and 17.5 GiB in two measured runs); it now stays at about 10 GB (9.6-9.7 GiB) and flat. Its answers are unchanged. Measured on the
same 160 pictures; every answer the same to the last digit.
What changes for you:
- Offline, always. model-maker never fetches anything from the model hub while it runs. Before, it switched the hub
off only when nothing else had said otherwise; now it switches it off whatever your environment says, and for
every way in: the command, setup's own test, and any program that imports model-maker's Python package. --no-verifystill refuses unknown code.--no-verifyskips reading every model file to check its fingerprint
(its sha256), to save time when the check was just done. It used to skip every check of the model folders. Now
model-maker still looks through the model folders and refuses to start if one holds code or a pickle file that the
model list (registry/models.toml) does not name. Looking costs nothing next to loading the models.- The model folders are looked through whole. Code now means every kind of file Python can run a module from
(.py, and also.pyc,.pyo,.pyw, and the compiled.soand.pyd, which Python tries before a.pyof the
same name), and pickles under every usual name (.pickleand.joblibtoo). The hub's.cachefolder inside a
model folder is looked through like the rest (its own bookkeeping files are let be), and a models folder kept under
a.cachefolder of your own, such as~/.cache, is now checked: before, it was skipped. A linked folder inside a
model folder is refused, because the check does not follow links (./setup.shmakes none; a model folder that is
itself a link is fine), and so is a folder the check cannot read. When something is refused, the message says what
to do: remove the file, or set the models up again with./setup.shin an empty folder. - Unknown settings files are refused too. The libraries decide what to load from a model's settings files
(.json) and chat templates (.jinja). Every one model-maker needs was already on the model list with its
fingerprint; now a.jsonor.jinjafile in a model folder that is not on the list stops the run, as unknown code
does. A folder made by./setup.shholds none: you will not see this unless something was added by hand.
The dependency warnings, explained:
- GitHub shows 31 security warnings for the machine-learning packages model-maker uses (torch, transformers,
diffusers, accelerate), and our own audit lists 50 (some have more than one name). We read every one again for this
version. None of them can be reached in model-maker as released. Most need a booby-trapped model file, settings file
or pickle: model-maker checks the fingerprint of every listed file before loading it, and refuses code, pickles and
settings files that are not listed; it loads weights only in the safetensors format (which cannot run code), and
nothing from the hub at run time. With--no-verifythe fingerprints are your own responsibility. The rest are in parts of the packages
model-maker never uses (training, model conversion, other models' tokenizers, compiling a model). And model-maker
is a program you run on your own computer: it serves nothing on a network. - Each one, with why it does not apply, is listed in
tools/ci/pip-audit-ignore.toml, with the names GitHub shows
(GHSA and CVE). Every entry is read again by the end of December. - Why not simply update the packages? Because a new torch changes what is made. In a trial with the same seeds, 3 of
12 runs went from passing to failing, and 1 the other way. So the update comes with the version that adds animals, measured on both
cards against how much two runs of the same version differ, not in a patch.
How we know: the test suite passes (485 tests). The regression set judges again the objects and pictures each check
has caught: with every change of this version it holds all 54 of its cases, and none is broken. The question judge's answers were asked again with the change, on 160
pictures and on 29 finished objects with 44 of their pictures: every one is the same to the last digit.
Known:
- Benches and long tables come out small: their size is taken for the longest side.
--sizesets another size.
Sizing by height comes in a later version, checked on made objects. - A linked or read-only
__pycache__folder in a model folder, or a listed file that cannot be read, stops the run
with a Python error before anything is loaded. Nothing is made.