Downloads · 30 days
0
Kspsvln/INLP_A3
INLP_A3 is a machine learning model from Kspsvln. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains PyTorch checkpoints for a multi-stage NLP system built for noisy cipher text recovery:
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2026
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.pt1.4 GB · 100%
From the Hugging Face model README
This repository contains PyTorch checkpoints for a multi-stage NLP system built for noisy cipher text recovery:
This is a checkpoint collection, not a single Transformers model.
Inference uses custom project code (main.py, src/task1/*, src/task2/*, src/task3/*).
Primary checkpoints currently used by configs:
checkpoints/task1/rnn_task4_complex_best.ptcheckpoints/task1/lstm_task4_complex_best.ptcheckpoints/task2/bilstm_complex_best.ptcheckpoints/task2/ssm_complex_best.ptAssociated vocab files:
checkpoints/task1/rnn_vocab.jsoncheckpoints/task1/lstm_vocab.jsoncheckpoints/task2/bilstm_vocabv2.jsoncheckpoints/task2/ssm_vocabv2.jsonAdditional historical checkpoints (epoch snapshots and earlier best versions) are also included under checkpoints/task1/, checkpoints/task2/, and checkpoints/task3/.
Not intended for:
data/plain.txtdata/cipher_00.txt to data/cipher_04.txtThe models are trained and evaluated within this assignment dataset setup.
config/task1/rnn.yamlrnn_task4_complex_best.ptconfig/task1/lstm.yamllstm_task4_complex_best.ptconfig/task2/bilstm.yamlbilstm_complex_best.ptconfig/task2/ssm.yamlssm_complex_best.ptoutputs/task1_rnn.txt, outputs/task1_lstm.txt)| Model | Loss | Accuracy | Perplexity | Character Accuracy | Word Accuracy | Levenshtein Distance |
|---|---|---|---|---|---|---|
| RNN | 1.495032 | 0.579503 | 4.459479 | 0.579503 | 0.390902 | 20.781357 |
| LSTM | 1.331345 | 0.631559 | 3.786133 | 0.580139 | 0.433234 | 19.153613 |
outputs/task2_bilstm.txt, outputs/task2_ssm.txt)| Model | Validation Loss | Perplexity |
|---|---|---|
| BiLSTM MLM | 5.5569 | 259.01 |
| SSM NWP | 6.0509 | 424.50 |
outputs/task3_*.csv, noise levels cipher_01..cipher_04)Average metrics:
This repo uses a custom CLI (uv + main.py) rather than the Transformers pipeline API.
uv sync
uv run main.py task1_rnn --mode evaluate --config config/task1/rnn.yaml
uv run main.py task1_lstm --mode evaluate --config config/task1/lstm.yaml
uv run main.py task2_bilstm --mode evaluate --config config/task2/bilstm.yaml
uv run main.py task2_ssm --mode evaluate --config config/task2/ssm.yaml
uv run main.py task3_bilstm --mode evaluate --config config/task3/bilstm.yaml
uv run main.py task3_ssm --mode evaluate --config config/task3/ssm.yaml
The code attempts Hugging Face model download first when huggingface.repo_id and filenames are configured, then falls back to local checkpoints.
AutoModel for generic HF inference.config/task1/, config/task2/, config/task3/.If you use this work, cite the repository and assignment context.
Owner: Kspsvln/INLP_A3