E0006: base64 decode error
What happened
The weight or bias data for a layer is stored as base64-encoded bytes in the .thx artifact. The base64 decoder rejected the data — it is not valid base64.
Why
The artifact was corrupted after compilation. This can happen from:
- Truncated file transfer
- Text encoding conversion (e.g. Windows line endings inserted by a text editor)
- Git LFS or S3 metadata corruption
How to fix
- Recompile the model:
thx.compile(model, "model.thx").
- If the artifact was downloaded, download it again and verify the checksum.
- Never open
.thx files in a text editor — they contain binary data encoded as base64, and text editors can corrupt it.
Example