Closed jeremyfowers closed 4 months ago
All cache folder names include _turnkey
in the end
Is that necessary?
All cache folder names include
_turnkey
in the end Is that necessary?
@ramkrishna2910 its not all models. The examples/cli/scripts
models all have a label author::turnkey
and the author name is auto-populated into the build dir
Note to reviewers
A large amount of cleanup tasks are already documented in #168
Summary of Changes
Discovery is now a stage called
discover
, which takes one input python script, discovers the models within, and passes one model/inputs to the next Stage.New feature: all calls to turnkey have a stats.yaml and state.yaml file now, even if discovery fails.
New feature:
discover
is no longer a mandatory way to start the sequence.onnx-load
is now an alternative way to start the sequence, which does not invoke the discovery code path whatsoever.A lot of functionality has moved out of the
turnkeyml.analysis
moduleturnkeyml.analysis
is now only responsible for discovering models. It no longer does error handling, stats, nor does it callbuild_model()
build_model()
and saves the high-level statsSequence
is responsible for all error handling.Only one model is passed from
discover
to subsequent stages.::HASH
postfix, as before, however now only one HASH is allowed.turnkey -i SCRIPT.py discover
will name the buildSCRIPT
turnkey -i SCRIPT.py::HASH discover
will name the buildSCRIPT_HASH
The concept of an
evaluation_id
has been eliminated.stats.yaml
is flat now; there is noevaluations
section.save_stat()
, instead ofsave_model_stat()
andsave_model_eval_stat()
The concept of a
ModelType
enum has been eliminated.