dashai-frankenstein
A DashAI plugin that registers Frankenstein Transformer model classes as DashAI components, so end users can train, evaluate, predict, save, and load them from the DashAI UI.
Components registered
| Entry point | Class | DashAI base | Binds to task |
|---|---|---|---|
frankenstein_mlm |
FrankensteinMLMModel |
BaseModel |
TextClassificationTask |
frankenstein_decoder |
FrankensteinDecoderModel |
BaseGenerativeModel |
TextToTextGenerationTask (inference only) |
frankenstein_pretrainer |
FrankensteinPretrainer |
BaseModel |
MaskedLanguageModelingTask (provided by this plugin) |
frankenstein_causal_lm |
FrankensteinCausalLMModel |
BaseModel |
CausalLMPretrainingTask (provided by this plugin) |
frankenstein_vit_cls |
FrankensteinViTClassifier |
BaseModel |
ImageClassificationTask |
frankenstein_vit_seg |
FrankensteinViTSegmenter |
BaseModel |
SegmentationTask (provided by this plugin) |
segmentation_task |
SegmentationTask |
BaseTask |
(new task provided by this plugin) |
masked_language_modeling_task |
MaskedLanguageModelingTask |
BaseTask |
(new task provided by this plugin) |
causal_lm_pretraining_task |
CausalLMPretrainingTask |
BaseTask |
(new task provided by this plugin) |
The use_dashai_dataset checkbox
Every Frankenstein model component exposes a Use DashAI dataset checkbox (default: checked) in its configuration form:
- Checked (default): training consumes the DashAI run dataset
(
x_train/y_train) — the dataset section of the Frankenstein JSON, if any, is overridden. Text is tokenized by the plugin's dataset adapters (masking for MLM, plain ids for causal LM, tokenized+labels for classification) and passed to the engine as a pre-built DataLoader. - Unchecked: the Frankenstein engine itself loads the corpus from the
config pasted in
frankenstein_json:- NLP tasks (
mlm,causal_lm,text_classification) use thetext_datasetblock (HF hubdataset_name,split,text_column, optionallabel_column+use_labels,data_dirwith parquet/json,streaming,max_samples). - Vision tasks use the
vision_datasetblock (HFdataset_nameor localdataset_dir); without either, a dummy smoke dataset is used.
- NLP tasks (
MLM pretraining (Masked Language Modeling)
The FrankensteinPretrainer component runs real BERT-style MLM
pre-training (task: mlm in the Frankenstein engine) on a DashAI text
dataset:
- Create a dataset with a single
Textcolumn. - Create a
MaskedLanguageModelingTasksession and select the same text column as input and output (self-supervised target). - Paste a Frankenstein config (one-line JSON) with
tokenizer.name_or_pathset — the text is tokenized + 15%-masked at collate time (80% [MASK] / 10% random / 10% keep) and consumed by the engine'sTitanTrainer.compute_mlm_loss.
Every optimizer update streams the full telemetry (loss, masked-token
accuracy, learning rate, gradient norms per block, GPU temp/power/mem,
throughput) into the DashAI run's metric store; the trained backbone is
saved via the run's artifact and can be loaded later for classification
fine-tuning with FrankensteinMLMModel.
Schema (v1: passthrough JSON)
Each model exposes a minimal pydantic schema with a single user-facing field:
frankenstein_json, a string containing a full Frankenstein training config as a
single-line JSON. The Frankenstein JSON Schema is the source of truth — the
JSON is validated against it (additionalProperties: false + enums) and
Frankenstein's config loader (cross-component constraints) before any
train/inference launches. Errors surface to the DashAI user as a readable
ValueError.
Build your YAML with the Frankenstein YAML builder, convert it to a one-line JSON string, and paste it into the field:
python -c "import yaml,json,sys; print(json.dumps(yaml.safe_load(open(sys.argv[1]))))" my_config.yaml
Training parameters (device, batch_size, num_epochs, learning rate) are read
from the config's training_runtime block and optimizer parameters — they are NOT
separate DashAI form fields. Generation parameters (max_new_tokens,
temperature, top_k) on the decoder component are kept as DashAI fields (they
are inference-time, not training-time, and the Frankenstein schema has no home
for them).
Note: The field is a single-line text input (DashAI does not yet support a multiline textarea for plugin schema fields), which is why the config is passed as a one-line JSON string rather than a multiline YAML document. A true multiline textarea is tracked as a future upstream improvement to DashAI.
Install
pip install dashai-frankenstein # published on PyPI (0.7.1+)
# or, from this repo:
pip install -e ./dashai-frankenstein
DashAI discovers the plugin via the dashai.plugins entry-points group on
startup — no DashAI source edits required.
Co-install compatibility with DashAI
dashai-frankenstein >= 0.7.0 (with frankenstein-transformer >= 1.6.0)
allows transformers 4.x and 5.x (>=4.45,<6), so installing the plugin
into an existing DashAI environment keeps DashAI's modern stack intact
(transformers 5 / huggingface-hub 1.x / diffusers 0.40) with no downgrades
and no pip check conflicts.
If your environment must stay on transformers 4.x, pin
diffusers<0.40 alongside it — diffusers 0.40.0 requires
huggingface-hub>=1.23, which transformers 4.x (hub <1.0) cannot provide;
diffusers 0.39 works with either hub series.
One dependency is capped: frankenstein-transformer requires
datasets>=3,<4, so installing the plugin into a DashAI environment that
already ships datasets 5.x downgrades it to 3.x. DashAI's own floor
(datasets>=2.20.0) is still satisfied and the plugin's full suite passes
with 3.6.0, but resync/relock DashAI afterwards if your environment relies on
newer datasets behavior.
Testing
The suite is version-tolerant: it runs against a DashAI 0.10.x clone and any DashAI 0.11+ environment (PyPI install included). From a DashAI environment:
cd /path/to/DashAI
uv run --extra cpu pytest /path/to/dashai-frankenstein/tests -v
Verified 43/43 against dashai 0.11.0 (PyPI) and the DashAI 0.10.x clone.
Architecture
See docs/dashai-plugin-audit.md in the Frankenstein repo for the full
integration design (§5 component designs, §6 phased plan, §7 Frankenstein
changes). This package is the Phase 1–3 adapter layer; it consumes the
Frankenstein engine API (src.engine) added in Phase 0.
Metadata
Release files for dashai-frankenstein 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dashai_frankenstein-0.7.1.tar.gz | 44.9 kB | With provenance | Details for dashai_frankenstein-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dashai_frankenstein-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for dashai_frankenstein-0.7.1-py3-none-any.whl |
Total release size: 97.3 kB
Release files / dashai_frankenstein-0.7.1.tar.gz
| Download URL | dashai_frankenstein-0.7.1.tar.gz |
|---|---|
| Size | 44.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9defb69ae00630fd8f945601fc1374cf5afe1a72cb6595bb037bc18fe6adbe3
|
|
BLAKE2b-256 checksum How to use checksums |
4fcb91036043a8163802f807f7e919bc9f6c12f5c169346eea32e8ccb7aa20a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / dashai_frankenstein-0.7.1-py3-none-any.whl
| Download URL | dashai_frankenstein-0.7.1-py3-none-any.whl |
|---|---|
| Size | 52.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e450baa6f2139741ddb956618fbb8965b33bcbc24ced064ea15887e8a37847b
|
|
BLAKE2b-256 checksum How to use checksums |
77ece299ee4663d23a3dfa57f267124cc4c6c97999592f1f222e26b94f787d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for dashai-frankenstein 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dashai_frankenstein-0.7.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.