Views
No views yet
nn.Module classes, ensuring that the internal gating and recurrence logic are explicitly defined rather than using high-level black-box wrappers.plain.txt corpus.uv for dependency management. All tasks are entry-pointed through main.py.1# Train and Evaluate RNN
2uv run main.py task1_rnn --mode both
3
4# Train and Evaluate LSTM
5uv run main.py task1_lstm --mode both1# Next Word Prediction (SSM)
2uv run main.py task2_ssm --mode both
3
4# Masked Language Modeling (Bi-LSTM)
5uv run main.py task2_bilstm --mode both1# Run Pipeline with SSM
2uv run main.py task3_ssm --mode evaluate
3
4# Run Pipeline with Bi-LSTM (Best Results)
5uv run main.py task3_bilstm --mode evaluate| Model | Metric | Value |
|---|---|---|
| LSTM (Decryptor) | Character Accuracy | 93.45% |
| LSTM (Decryptor) | Word Accuracy | 77.11% |
| LSTM (Decryptor) | Levenshtein Distance | 3.58 |
| Bi-LSTM (LM) | Perplexity (PPL) | 182.78 |
| SSM (LM) | Perplexity (PPL) | 855.81 |
| Pipeline (+Bi-LSTM) | ROUGE-L | 0.5221 |
torch.amp (Mixed Precision) and torch.compile (JIT).outputs/results/.src/utils/checkpoints.py.